JP2004180058A - Method and device for encoding digital data - Google Patents

Method and device for encoding digital data Download PDF

Info

Publication number
JP2004180058A
JP2004180058A JP2002344964A JP2002344964A JP2004180058A JP 2004180058 A JP2004180058 A JP 2004180058A JP 2002344964 A JP2002344964 A JP 2002344964A JP 2002344964 A JP2002344964 A JP 2002344964A JP 2004180058 A JP2004180058 A JP 2004180058A
Authority
JP
Japan
Prior art keywords
data
difference
encoded
output
quantization
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
JP2002344964A
Other languages
Japanese (ja)
Inventor
Itaru Kaneko
格 金子
Satoru Miyata
哲 宮田
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.)
Toa Corp
Original Assignee
Toa Corp
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 Toa Corp filed Critical Toa Corp
Priority to JP2002344964A priority Critical patent/JP2004180058A/en
Publication of JP2004180058A publication Critical patent/JP2004180058A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a digital data encoding method and a digital data encoding device which raise a compression rate when transmitting/storing digital data and faithfully restore the original signals. <P>SOLUTION: The digital data encoding method is provided with a means which executes modified discrete cosine transform processing, uniform quantization, and non-uniform quantization based on auditory psychological analysis to input data and arithmetically encoding the processing result to generate encoded output data E1 and performing arithmetic encoding to the difference data generated by the non-uniform quantization processing to generate first encoded difference data E2 and performing arithmetic encoding of the difference data generated by the uniform quantization processing to generate second encoded difference data E3 and synthesizing the encoded output data E1, the first encoded difference data E2, the second encoded difference data E3 and outputting the result. The original signals can be faithfully restored by using this difference data, and the quality of digital data can be kept high, and a high compression rate is realized by arithmetic encoding processing of output data and difference data to allow the data size to be reduced. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、デジタルデータの伝送・蓄積に用いられる符号化・復号化に係り、特に、データサイズを圧縮するとともに原信号を正確に復元することが可能なデジタルデータの符号化方法およびデジタルデータの符号化装置に関する。
【0002】
【従来の技術】
デジタルデータを伝送・蓄積する際にデータサイズを圧縮して符号化する技術は種々提案されている。
デジタルデータの符号化では、たとえば、入力データについて変形離散コサイン変換(MDCT:Modified Discrete Cosine Transform)処理を実行し、その結果を所定のビット数(たとえば、19ビット)で量子化することが行われる。この量子化処理時におけるビット数が大きいほど、原信号に対する忠実度が向上するが、その分データの圧縮率が低減し、データ量が大きくなってしまう。逆に、量子化処理時におけるビット数を小さくすると、圧縮率を高めることができるものの復号した際の再現性が損なわれるという問題がある。
【0003】
特に、MP3(MPEG−1 Audio Layer−3)やAAC(Advanced Audio Coding)などの損失のある圧縮(lossy compression)方式では、データ中にある程度の損失がでることを許容することにより劇的に圧縮率を高めている。このような損失のある圧縮方式で音声データを圧縮する場合には、量子化処理により損失が発生したデータをさらに聴覚心理分析に基づいた不均一量子化器を通すことによって、聞く人間に対して違和感の少ないデータになるように補正することが行われている。したがって、このような損失のある圧縮方式では、通常の量子化処理により生じた損失にさらに不均一量子化処理により生じた損失が上乗せされており、これを復号化しても原信号を忠実に再現することができない。
【0004】
【発明が解決しようとする課題】
本発明では、デジタルデータを伝送・蓄積する際の圧縮率を高めるとともに、原信号を忠実に再現することが可能なデジタルデータの符号化方法およびデジタルデータの符号化装置を提案する。
また、本発明の他の目的は、データ量を小さくする必要のあるときもある程度の品質を維持して圧縮率の高い符号化を可能とし、原信号を忠実に再現可能な品質の高い符号化と圧縮率の高い符号化とを選択することを可能にするデジタルデータの符号化方法およびデジタルデータの符号化装置を提案する。
【0005】
【課題を解決するための手段】
本発明の請求項1に係るデジタルデータの符号化装置は、入力データに対して変形離散コサイン変換処理を実行してMDCTデータを生成するMDCT処理手段と、MDCT処理手段により生成されたMDCTデータに対して第1の量子化処理を実行して第1量子化データを生成する第1量子化処理手段と、第1量子化処理手段により生成された第1量子化データに対して第2の量子化処理を実行して第2量子化データを生成する第2量子化処理手段と、第2量子化処理手段により生成された第2量子化データに対して算術符号化処理を行い符号化出力データを出力する第1算術符号化処理手段と、第2量子化処理手段により生成された第2量子化データに対して第2量子化処理の逆処理を実行して逆量子化データを生成する逆量子化処理手段と、逆量子化処理手段により生成される逆量子化データと第1量子化処理手段により生成される第1量子化データとの差分を算出して第1差分データとして出力する第1差分処理手段と、第1差分処理手段が出力する第1差分データに対して算術符号化処理を行い第1符号化差分データを出力する第2算術符号化処理手段と、第1量子化処理手段により生成される第1量子化データに対して逆変形離散コサイン変換処理を実行しIMDCT出力データを出力するIMDCT処理手段と、IMDCT処理手段が出力するIMDCT出力データと入力データとの差分を演算し第2差分データとして出力する第2差分処理手段と、第2差分処理手段が出力する第2差分データに対して算術符号化処理を実行し第2符号化差分データを出力する第3算術符号化処理手段と、第1算術符号化処理手段が出力する符号化出力データと第2算術符号化処理手段が出力する第1符号化差分データと第3算術符号化処理手段が出力する第2符号化差分データとに基づいて出力データを出力する出力手段とを備える。
【0006】
この場合、符号化出力データとともに、第2の量子化処理により生じた損失を第1差分データとし、第1の量子化処理により生じた損失を第2差分データとして出力しているので、この第1差分データおよび第2差分データを用いて原信号に忠実な信号を再現することが可能となる。また、第1差分データおよび第2差分データは、それぞれ算術符号化処理されて第1符号化差分データ、第2符号化差分データとして出力されるため、圧縮率をそれほど落とすことなく品質の高いデジタルデータの符号化を実現することが可能である。
【0007】
本発明の請求項2に係るデジタルデータの符号化装置は請求項1に記載のデジタルデータの符号化装置であって、第2量子化処理手段が不均一量子化処理を実行するように構成される。
この場合、不均一量子化により生じたロスを算術符号化して第1符号化差分データとして出力するため、復号化時にこの第1符号化差分データを用いて原信号に近いデータを復元することが可能となる。
本発明の請求項3に係るデジタルデータの符号化装置は請求項1または2に記載のデジタルデータの符号化装置であって、第2量子化処理手段が聴覚心理分析に基づく量子化処理を実行するように構成される。
【0008】
この場合、損失のある圧縮方式で用いられる聴覚心理分析に基づく量子化により生じるロスを第1符号化差分データとして出力するため、この第1符号化差分データを用いてロスの少ない原信号に近いデジタルデータを再現することが可能となる。
本発明の請求項4に係るデジタルデータの符号化装置は請求項1〜3のいずれかに記載のデジタルデータの符号化装置であって、第3算術符号化処理手段は第2差分データに対して、
【0009】
【数2】

Figure 2004180058
【0010】
の確率密度関数に基づく算術符号化処理を実行する。
この場合、第2差分データを算術符号化処理する際に、効率の高い符号化を実現することが可能となる。
本発明の請求項5に係るデジタルデータの符号化装置は請求項1〜4のいずれかに記載のデジタルデータの符号化装置であって、符号化出力データと第1符号化差分データと第2符号化差分データとを全て含むロスレス出力データ、符号化出力データと第1符号化差分データとを含む擬似ロスレス出力データ、符号化出力データのみで構成されるロッシー出力データのうちいずれかを出力データとして選択する出力選択手段をさらに備える。
【0011】
この場合、第1符号化差分データ、第2符号化差分データのいずれかまたは双方を出力しないことで、符号化出力データをある程度の品質に維持したまま、データサイズを小さくすることが可能であり、品質の高い符号化と圧縮率の高い符号化を選択することが可能となる。
本発明の請求項6に係るデジタルデータの復号化装置は、算術符号化処理された符号化入力データと、第2の量子化処理時に生じる第1差分データを算術符号化処理した第1符号化差分データと、第1の量子化処理時に生じる第2差分データを算術符号化処理した第2符号化差分データとを入力データとするデジタルデータの復号化装置であって、符号化入力データについて算術復号化処理を実行して復号化データを生成する第1算術復号化処理手段と、第1符号化差分データについて算術復号化処理を実行して第1復号化差分データを生成する第2算術復号化処理手段と、第2符号化差分データについて算術復号化処理を実行して第2復号化差分データを生成する第3算術復号化処理手段と、第1算術復号化処理手段により復号化された復号化データについて第2の量子化処理の逆処理を実行して逆量子化データを生成する逆量子化処理手段と、逆量子化処理手段により生成される逆量子化データと第2算術復号化処理手段により生成される第1復号化差分データとを加算処理して第1加算データを生成する第1加算処理手段と、第1加算処理手段により生成される第1加算データについて逆変形離散コサイン変換処理を実行してIMDCT出力データを生成するIMDCT処理手段と、IMDCT処理手段により生成されるIMDCT出力データと第3算術復号化処理手段により生成される第2復号化差分データとを加算して復元データを出力する第2加算処理手段とを備える。
【0012】
この場合、入力される第1符号化差分データおよび第2符号化差分データをそれぞれ復号化して、復号化した符号化入力データに加算することで、原信号を忠実に再現することが可能となる。
本発明の請求項7に係るデジタルデータの復号化装置は請求項6に記載のデジタルデータの復号化装置であって、第2の量子化処理が不均一量子化処理であることを特徴とする。
この場合、不均一量子化処理された際のロスを復元して損失の少ない高品質のデジタルデータを再現することが可能となる。
【0013】
本発明の請求項8に係るデジタルデータの復号化装置は請求項6または7に記載のデジタルデータの復号化装置であって、第2の量子化処理が聴覚心理分析に基づく量子化処理であることを特徴とする。
この場合、通常の損失のある圧縮方式で符号化されたでデジタルデータについても、原信号に近いデジタルデータを再現することが可能となる。
本発明の請求項9に係るデジタルデータの符号化方法は、入力データに対して変形離散コサイン変換処理を実行してMDCTデータを生成する段階と、MDCTデータに対して第1の量子化処理を実行して第1量子化データを生成する段階と、第1量子化データに対して第2の量子化処理を実行して第2量子化データを生成する段階と、第2量子化データに対して算術符号化処理を行い符号化出力データを生成する段階と、第2量子化データに対して第2の量子化処理の逆処理を実行して逆量子化データを生成する段階と、逆量子化データと第1量子化データとの差分を算出して第1差分データを生成する段階と、第1差分データに対して算術符号化処理を行い第1符号化差分データを生成する段階と、均一量子化データに対して逆変形離散コサイン変換処理を実行しIMDCT出力データを生成する段階と、IMDCT出力データと入力データとの差分を演算し第2差分データを生成する段階と、第2差分データに対して算術符号化処理を実行し第2符号化差分データを生成する段階と、符号化出力データ、第1符号化差分データおよび第2符号化差分データを合成して出力する段階とを含む。
【0014】
この場合、符号化出力データとともに、第2の量子化処理により生じた損失を第1差分データとし、第1の量子化処理により生じた損失を第2差分データとして出力しているので、この第1差分データおよび第2差分データを用いて原信号に忠実な信号を再現することが可能となる。また、第1差分データおよび第2差分データは、それぞれ算術符号化処理されて第1符号化差分データ、第2符号化差分データとして出力されるため、圧縮率をそれほど落とすことなく品質の高いデジタルデータの符号化を実現することが可能である。
【0015】
本発明の請求項10に係るデジタルデータの符号化方法は請求項9に記載のデジタルデータの符号化方法であって、第2の量子化処理が不均一量子化処理であることを特徴とする。
この場合、不均一量子化処理された際のロスを復元して損失の少ない高品質のデジタルデータを再現することが可能となる。
本発明の請求項11に係るデジタルデータの符号化方法は請求項9または10に記載のデジタルデータの符号化方法であって、第2の量子化処理が聴覚心理分析に基づく量子化処理であることを特徴とする。
【0016】
この場合、通常の損失のある圧縮方式で符号化されたでデジタルデータについても、原信号に近いデジタルデータを再現することが可能となる。
本発明の請求項12に係るデジタルデータの符号化方法は請求項9〜11のいずれかに記載のデジタルデータの符号化方法であって、符号化出力データと第1符号化差分データと第2符号化差分データとを全て含むロスレス出力データ、符号化出力データと第1符号化差分データとを含む擬似ロスレス出力データ、符号化出力データのみで構成されるロッシー出力データのうちいずれかを出力データとして選択する段階をさらに備える。
【0017】
この場合、第1符号化差分データ、第2符号化差分データのいずれかまたは双方を出力しないことで、符号化出力データをある程度の品質に維持したまま、データサイズを小さくすることが可能であり、品質の高い符号化と圧縮率の高い符号化を選択することが可能となる。
本発明の請求項13に係るデジタルデータの復号化方法は、算術符号化処理された符号化入力データと、第2量子化処理時に生じる第1差分データを算術符号化処理した第1符号化差分データと、第1の量子化処理時に生じる第2差分データを算術符号化処理した第2符号化差分データとを入力データとし原デジタルデータを復元するデジタルデータの復号化方法であって、符号化入力データについて算術復号化処理を実行して復号化データを生成する段階と、第1符号化差分データについて算術復号化処理を実行して第1復号化差分データを生成する段階と、第2符号化差分データについて算術復号化処理を実行して第2復号化差分データを生成する段階と、復号化データについて第2の量子化処理の逆処理を実行して逆量子化データを生成する段階と、逆量子化データと前記第1復号化差分データとを加算処理して第1加算データを生成する段階と、第1加算データについて逆変形離散コサイン変換処理を実行してIMDCT出力データを生成する段階と、IMDCT出力データと前記第2復号化差分データとを加算して復元データを出力する段階とを含む。
【0018】
この場合、入力される第1符号化差分データおよび第2符号化差分データをそれぞれ復号化して、復号化した符号化入力データに加算することで、原信号を忠実に再現することが可能となる。
本発明の請求項14に係るデジタルデータの復号化方法は請求項13に記載のデジタルデータの復号化方法であって、第2の量子化処理が不均一量子化処理であることを特徴とする。
この場合、不均一量子化処理された際のロスを復元して損失の少ない高品質のデジタルデータを再現することが可能となる。
【0019】
本発明の請求項15に係るデジタルデータの復号化方法は請求項13または14に記載のデジタルデータの復号化方法であって、第2の量子化処理が聴覚心理分析に基づく量子化処理であることを特徴とする。
この場合、通常の損失のある圧縮方式で符号化されたデジタルデータについても、原信号に近いデジタルデータを再現することが可能となる。
【0020】
【発明の実施の形態】
〔エンコーダー〕
本発明の1実施形態に採用されるデジタルデータの符号化装置の簡略ブロック図を図1に示す。
このデジタルデータ符号化装置1は、損失のある符号化器(Lossy Encoder)10と、第1算術符号化器14と、逆不均一量子化器15と、第1差分演算器16と、第2算術符号化器17と、第1データ加算器18と、IMDCT部19と、第2差分演算器20と、第3算術符号化器21と、第2データ加算器22とを備えている。
【0021】
損失のある符号化器10は、入力データに対して変形離散コサイン変換処理を実行してMDCTデータを生成するMDCT部11、MDCT部11により生成されたMDCTデータに対して所定のビット数による均一量子化処理を実行して均一量子化データを生成する均一量子化器12、均一量子化器12により生成された均一量子化データに対して聴覚心理分析に基づく不均一量子化処理を実行して不均一量子化データを生成する不均一量子化器13を備えている。
均一量子化器12は、MDCT部11により生成されたMDCTデータのMDCT係数を所定のビット数に量子化するものであって、たとえば、19ビットのデータとして均一量子化されたMDCT係数群を生成する。
【0022】
不均一量子化器13は、均一量子化器12により均一量子化処理を行った際に生じた損失を補正して、聞く人間に違和感を与えないような量子化を行うものである。たとえば、人間の耳に認識できないような周波数領域では量子化ビット数を小さくし、人間が感知できる周波数領域では量子化ビット数を大きくするなどの予め設定された量子化テーブルを用いることにより、不均一量子化処理を実行することができる。
第1算術符号化器14では、所定の確率密度関数に基づいて、入力された数値群について算術符号化処理を行い、符号化出力データE1を出力する。入力データが正規分布の確率密度関数である、
【0023】
【数3】
Figure 2004180058
【0024】
に近似するような分布状態である場合には、第1算術符号化器14はこの確率密度関数に基づいて算術符号化処理を行う。算術符号化処理については周知の技術であり、ここでは詳細な説明を省略する。
逆不均一量子化器15は、不均一量子化器13による量子化処理の逆処理を実行するものである。たとえば、不均一量子化器13で用いた量子化テーブルの逆変換テーブルを用意しておき、この逆変換テーブルを用いて逆不均一量子化処理を実行することができる。
【0025】
第1差分演算器16は、均一量子化器12が出力する均一量子化データと、逆不均一量子化器15が出力する逆不均一量子化データとの差分を演算して第1差分データとして出力する。
第2算術符号化器17は、第1差分演算器16から出力される第1差分データについて算術符号化処理を実行し、第1符号化差分データE2を出力する。この第2算術符号化器17では、第1差分データの分布状態に応じた確率密度関数に基づいて算術符号化処理を行うものであり、前述したような正規分布に近似する分布状態であるような場合には圧縮率を高めることが可能となる。
【0026】
IMDCT部19は、均一量子化器12から出力される均一量子化データを入力として、これを逆変形離散コサイン変換処理(Inverse Modified Discrete CosineTransform)してIMDCT出力データを出力する。このIMDCT部19は、MDCT部11で実行される変形離散コサイン変換処理の逆変換を行うものである。
第2差分演算器20は、入力データとIMDCT部19から出力されるIMDCT出力データとの差分を演算して第2差分データとして出力する。
第3算術符号化器21は、第2差分演算器20から出力される第2差分データについて算術符号化処理を実行し、第2符号化差分データE3を出力する。ここで、第2差分データは、ガウス分布に近い分布状態となっているものと考えられ、確率密度関数として、
【0027】
【数4】
Figure 2004180058
【0028】
を用いて算術符号化処理を行うことで圧縮効率を高めることができる。
第1データ加算器18は、第1算術符号化器14から出力される符号化出力データと、第2算術符号化器17から出力される第1符号化差分データとを合成して第1合成データを出力する。
第2データ加算器22は、第1データ加算器18から出力される第1合成データと、第3算術符号化器21から出力される第2符号化差分データとを合成して第2合成データを出力する。
【0029】
このことにより、第2データ加算器22からは、符号化出力データE1、第1符号化差分データE2および第2符号化差分データE3とを備える第2合成データが出力されることとなる。
〔デコーダー〕
上述のようなデジタルデータの符号化装置により符号化された符号化デジタルデータを復号するための復号化装置の簡略ブロック図を図2に示す。
デジタルデータ復号化装置3は、第1算術復号化器31、損失のある符号化データに対する復号化装置30、第2算術復号化器35、第3算術復号化器36、第2データ加算器37を備えている。
【0030】
第1算術復号化器31は、入力される符号化デジタルデータのうち符号化入力データE1(符号化出力データE1)について算術復号化処理を実行する。この場合、前述のデジタルデータ符号化装置1の第1算術符号化器14により実行される算術符号化処理の逆変換を行うこととなる。
第2算術復号化器35は、入力される符号化デジタルデータのうち第1符号化差分データE2について算術復号化処理を実行して第1復号化差分データを出力する。この場合、前述のデジタルデータ符号化装置1の第2算術符号化器17により実行される算術符号化処理の逆変換を行うこととなる。
【0031】
第3算術復号化器36は、入力される符号化デジタルデータのうち第2符号化差分データE3について算術復号化処理を実行して第2復号化差分データを出力する。この場合、前述のデジタルデータ符号化装置1の第3算術符号化器21により実行される算術符号化処理の逆変換を行うこととなる。
損失のある符号化データに対する復号化装置30は、逆不均一量子化器32、第1データ加算器33、IMDCT部34を備えている。
逆不均一量子化器32は、第1算術復号化器31から出力される復号化データを入力としてこれを不均一量子化器13による量子化処理の逆処理を実行するものであり、デジタルデータ符号化装置1の逆不均一量子化器15と同等の機能を有する。
【0032】
第1データ加算器33は、逆不均一量子化器32から出力される逆不均一量子化データと、第2算術復号化器35から出力される第1復号化差分データとの加算処理を実行して第1加算データを出力する。
IMDCT部34は、第1データ加算器33から出力される第1加算データについて逆変形離散コサイン変換処理を実行してIMDCT出力データを出力する。このIMDCT部34は、デジタルデータ符号化装置1のIMDCT部19と同等の機能を有し、MDCT部11による変形離散コサイン変換処理の逆変換処理を実行する。
【0033】
第2データ加算器37は、IMDCT部34から出力されるIMDCT出力データと、第3算術復号化器36から出力される第2復号化差分データとの加算処理を実行して復号化デジタルデータを出力する。
このように構成した本発明の実施形態では、デジタルデータ符号化装置1において、符号化デジタルデータE1とともに、聴覚心理分析による不均一量子化処理を行った際の第1差分データを算術符号化処理して第1符号化差分データとして出力しているため、符号化デジタルデータE1に対して算術復号化処理を実行した後、第1符号化差分データE2に対して算術復号化処理を実行した結果を加算し、さらにIMDCT部34で逆変形離散コサイン変換処理を実行することで、損失のある符号化装置(Lossy Encoder)10の聴覚心理分析による不均一量子化処理時に生じた損失を含まないデータを再現することができる。
【0034】
また、デジタルデータ符号化装置1は、均一量子化器12により生じた差分データについて算術符号化処理を行って、第2符号化差分データE3として出力しているため、この第2符号化差分データE3に対して算術復号化処理を行って、この結果を損失のある符号化データに対する復号化装置(Lossy Decoder)30の出力データに加算することで、原信号を忠実に再現することが可能となる。
第2差分データは、前述したように、ガウス分布に基づく確率密度関数を用いて算術符号化処理を行うことで、圧縮効率を高めることが可能である。
【0035】
また、デジタルデータ符号化装置1側で、符号化出力データE1のみを出力することにより、データ量を低減することが可能であり、MP3やAACなどの損失のあるデジタルデータ符号化方式(Lossy Compression)と同程度の圧縮率および品質の符号化・復号化を実現することが可能となる。
デジタルデータ符号化装置1側で、符号化出力データE1および第1符号化差分データE2のみを出力することにより、聴覚心理分析による不均一量子化処理に基づいて生じた損失を回復させて、均一量子化器12による損失のみを含んだデジタルデータを再現できる。
【0036】
したがって、伝送路の状態や帯域、蓄積メディアの容量に応じて、高品質の符号化と高圧縮率の符号化とを選択して出力データを構成することが可能となる。
【0037】
【発明の効果】
本発明では、符号化出力データとともにデジタルデータを量子化する際に生じる差分データを出力するように構成しているため、この差分データを用いて原信号を忠実に再現することを可能とし、デジタルデータの品質を高く維持することを可能にするとともに、出力データおよび差分データを算術符号化処理を行って高圧縮率を実現しデータサイズを縮小させることが可能となる。また、符号化差分データを出力データ中に含ませるか否かを選択することで、伝送路の状態や帯域、蓄積メディアの容量などに応じた符号化を選択することが可能となる。
【図面の簡単な説明】
【図1】本発明の1実施形態に採用されるデジタルデータ符号化装置の簡略ブロック図。
【図2】本発明の1実施形態に採用されるデジタルデータ復号化装置の簡略ブロック図。[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to encoding / decoding used for transmission / storage of digital data, and in particular, to a digital data encoding method and a digital data encoding method capable of accurately restoring an original signal while compressing a data size. The present invention relates to an encoding device.
[0002]
[Prior art]
Various techniques for compressing and encoding a data size when transmitting and storing digital data have been proposed.
In encoding digital data, for example, a modified discrete cosine transform (MDCT) process is performed on input data, and the result is quantized by a predetermined number of bits (for example, 19 bits). . As the number of bits at the time of the quantization process increases, the fidelity to the original signal improves, but the data compression ratio decreases and the data amount increases accordingly. Conversely, if the number of bits during the quantization process is reduced, the compression ratio can be increased, but the reproducibility at the time of decoding is impaired.
[0003]
In particular, a lossy compression method such as MP3 (MPEG-1 Audio Layer-3) or AAC (Advanced Audio Coding) dramatically reduces compression by allowing a certain amount of loss in data. Increasing rates. When audio data is compressed using such a lossy compression method, the data that has been lost due to the quantization process is further passed through a non-uniform quantizer based on psychoacoustic analysis. Correction is performed so that the data has less discomfort. Therefore, in such a lossy compression method, the loss caused by the non-uniform quantization processing is added to the loss caused by the normal quantization processing, and the original signal is faithfully reproduced even if it is decoded. Can not do it.
[0004]
[Problems to be solved by the invention]
The present invention proposes a digital data encoding method and a digital data encoding device that can increase the compression ratio when transmitting and storing digital data and can faithfully reproduce the original signal.
Another object of the present invention is to provide high-quality encoding that can maintain a certain level of quality even when it is necessary to reduce the amount of data, and that enables high-compression encoding. The present invention proposes a digital data encoding method and a digital data encoding device that enable to select between encoding with high compression ratio.
[0005]
[Means for Solving the Problems]
An apparatus for encoding digital data according to claim 1 of the present invention includes an MDCT processing unit that performs a modified discrete cosine transform process on input data to generate MDCT data, and an MDCT data generated by the MDCT processing unit. A first quantization processing unit for performing a first quantization process on the first quantization data to generate first quantized data; and a second quantization processing unit configured to perform a second quantization on the first quantized data generated by the first quantization processing unit. Second quantization processing means for executing the quantization processing to generate second quantized data, and performing arithmetic coding processing on the second quantized data generated by the second quantization processing means to perform encoded output data A first arithmetic coding processing means for outputting the inverse quantization data, and an inverse processing for performing inverse processing of the second quantization processing on the second quantized data generated by the second quantization processing means to generate inverse quantized data. Quantization processing And first difference processing means for calculating a difference between the inversely quantized data generated by the inverse quantization processing means and the first quantized data generated by the first quantization processing means and outputting the difference as first difference data A second arithmetic coding unit for performing an arithmetic coding process on the first difference data output from the first difference processing unit and outputting the first coded difference data; IMDCT processing means for performing inverse modified discrete cosine transform processing on the first quantized data to output IMDCT output data, and calculating a difference between the input data and the IMDCT output data output from the IMDCT processing means. A second difference processing unit that outputs the data as data, and a third unit that performs arithmetic coding processing on the second difference data output by the second difference processing unit and outputs second encoded difference data. Arithmetic encoding processing means, encoded output data output by the first arithmetic encoding processing means, first encoded difference data output by the second arithmetic encoding processing means, and third encoded arithmetic data output by the third arithmetic encoding processing means. Output means for outputting output data based on the two encoded difference data.
[0006]
In this case, the loss caused by the second quantization process is output as the first difference data together with the encoded output data, and the loss caused by the first quantization process is output as the second difference data. A signal faithful to the original signal can be reproduced using the first difference data and the second difference data. Further, the first difference data and the second difference data are arithmetically coded and output as the first coded difference data and the second coded difference data, respectively. It is possible to realize data encoding.
[0007]
A digital data encoding apparatus according to a second aspect of the present invention is the digital data encoding apparatus according to the first aspect, wherein the second quantization processing means performs a non-uniform quantization processing. You.
In this case, since the loss caused by the non-uniform quantization is arithmetically encoded and output as first encoded difference data, it is possible to restore data close to the original signal using the first encoded difference data during decoding. It becomes possible.
A digital data encoding device according to claim 3 of the present invention is the digital data encoding device according to claim 1 or 2, wherein the second quantization processing means executes a quantization process based on psychoacoustic analysis. It is configured to
[0008]
In this case, since the loss caused by quantization based on the psychoacoustic analysis used in the lossy compression method is output as the first encoded difference data, the first encoded difference data is used to approximate a lossless original signal. Digital data can be reproduced.
A digital data encoding device according to claim 4 of the present invention is the digital data encoding device according to any one of claims 1 to 3, wherein the third arithmetic encoding processing unit performs an arithmetic operation on the second differential data. hand,
[0009]
(Equation 2)
Figure 2004180058
[0010]
Performs arithmetic coding processing based on the probability density function of
In this case, when the second difference data is arithmetically encoded, it is possible to realize highly efficient encoding.
A digital data encoding device according to claim 5 of the present invention is the digital data encoding device according to any one of claims 1 to 4, wherein the encoded output data, the first encoded difference data, and the second encoded Any one of lossless output data including all encoded differential data, pseudo lossless output data including encoded output data and first encoded differential data, and lossy output data including only encoded output data And output selection means for selecting as (1).
[0011]
In this case, by not outputting one or both of the first encoded difference data and the second encoded difference data, it is possible to reduce the data size while maintaining the encoded output data at a certain quality. , It is possible to select high-quality encoding and high-compression encoding.
According to a sixth aspect of the present invention, there is provided a digital data decoding apparatus comprising: a first encoding device that performs an arithmetic encoding process on encoded input data that has been subjected to an arithmetic encoding process and first difference data that is generated during a second quantization process; An apparatus for decoding digital data, wherein differential data and second encoded differential data obtained by arithmetically encoding second differential data generated at the time of a first quantization process are input data, wherein arithmetic operation is performed on encoded input data. First arithmetic decoding processing means for executing decoding processing to generate decoded data, and second arithmetic decoding for executing arithmetic decoding processing on the first encoded difference data to generate first decoded difference data Decoding processing means, third arithmetic decoding processing means for performing arithmetic decoding processing on the second encoded difference data to generate second decoded difference data, and decoding by the first arithmetic decoding processing means. Return Inverse quantization processing means for performing inverse processing of the second quantization processing on the quantized data to generate inversely quantized data, and inversely quantized data generated by the inverse quantization processing means and second arithmetic decoding processing First addition processing means for adding the first decoded difference data generated by the means to generate first addition data, and inverse modified discrete cosine transform for the first addition data generated by the first addition processing means IMDCT processing means for executing processing and generating IMDCT output data, and adding and restoring the IMDCT output data generated by the IMDCT processing means and the second decoded difference data generated by the third arithmetic decoding processing means Second addition processing means for outputting data.
[0012]
In this case, the original encoded signal can be faithfully reproduced by decoding the input first encoded difference data and the second encoded difference data, and adding the decoded first and second encoded difference data to the decoded encoded input data. .
A digital data decoding apparatus according to claim 7 of the present invention is the digital data decoding apparatus according to claim 6, wherein the second quantization processing is a non-uniform quantization processing. .
In this case, it is possible to restore the loss caused by the non-uniform quantization processing and reproduce high-quality digital data with little loss.
[0013]
The digital data decoding device according to claim 8 of the present invention is the digital data decoding device according to claim 6 or 7, wherein the second quantization process is a quantization process based on psychoacoustic analysis. It is characterized by the following.
In this case, it is possible to reproduce digital data close to the original signal even for digital data encoded by a normal lossy compression method.
According to a ninth aspect of the present invention, there is provided a digital data encoding method comprising: performing a modified discrete cosine transform process on input data to generate MDCT data; and performing a first quantization process on the MDCT data. Executing the first quantized data to generate a second quantized data; performing a second quantizing process on the first quantized data to generate the second quantized data; Generating encoded output data by performing arithmetic coding processing on the data; performing inverse processing of the second quantization processing on the second quantized data to generate inversely quantized data; Calculating a difference between the coded data and the first quantized data to generate first difference data; performing an arithmetic coding process on the first difference data to generate first coded difference data; Inverse deformation discrete for uniform quantized data Performing a sine transform process to generate IMDCT output data; calculating a difference between the IMDCT output data and the input data to generate second difference data; and performing an arithmetic encoding process on the second difference data And generating the second encoded difference data, and combining and outputting the encoded output data, the first encoded difference data, and the second encoded difference data.
[0014]
In this case, the loss caused by the second quantization process is output as the first difference data together with the encoded output data, and the loss caused by the first quantization process is output as the second difference data. A signal faithful to the original signal can be reproduced using the first difference data and the second difference data. Further, the first difference data and the second difference data are arithmetically coded and output as the first coded difference data and the second coded difference data, respectively. It is possible to realize data encoding.
[0015]
A digital data encoding method according to a tenth aspect of the present invention is the digital data encoding method according to the ninth aspect, wherein the second quantization processing is a non-uniform quantization processing. .
In this case, it is possible to restore the loss caused by the non-uniform quantization processing and reproduce high-quality digital data with little loss.
The digital data encoding method according to claim 11 of the present invention is the digital data encoding method according to claim 9 or 10, wherein the second quantization processing is a quantization processing based on psychoacoustic analysis. It is characterized by the following.
[0016]
In this case, it is possible to reproduce digital data close to the original signal even for digital data encoded by a normal lossy compression method.
A digital data encoding method according to claim 12 of the present invention is the digital data encoding method according to any one of claims 9 to 11, wherein the encoded output data, the first encoded difference data, and the second encoded Any one of lossless output data including all encoded differential data, pseudo lossless output data including encoded output data and first encoded differential data, and lossy output data including only encoded output data The method further comprises the step of selecting
[0017]
In this case, by not outputting one or both of the first encoded difference data and the second encoded difference data, it is possible to reduce the data size while maintaining the encoded output data at a certain quality. , It is possible to select high-quality encoding and high-compression encoding.
A digital data decoding method according to a thirteenth aspect of the present invention is a digital data decoding method, wherein arithmetically encoded input data and first differential data generated at the time of the second quantization processing are arithmetically encoded with a first encoded difference. A digital data decoding method for restoring original digital data using data and second encoded difference data obtained by arithmetically encoding second difference data generated during a first quantization process as input data, comprising: Performing an arithmetic decoding process on the input data to generate decoded data; performing an arithmetic decoding process on the first encoded difference data to generate first decoded difference data; Performing an arithmetic decoding process on the decoded difference data to generate second decoded difference data, and performing an inverse process of the second quantization process on the decoded data to generate the inverse quantized data. Performing an addition process on the inversely quantized data and the first decoded difference data to generate first addition data; and performing an inverse modified discrete cosine transform process on the first addition data to obtain the IMDCT output data. And outputting the restored data by adding the IMDCT output data and the second decoded difference data.
[0018]
In this case, the original encoded signal can be faithfully reproduced by decoding the input first encoded difference data and the second encoded difference data, and adding the decoded first and second encoded difference data to the decoded encoded input data. .
A digital data decoding method according to a fourteenth aspect of the present invention is the digital data decoding method according to the thirteenth aspect, wherein the second quantization processing is a non-uniform quantization processing. .
In this case, it is possible to restore the loss caused by the non-uniform quantization processing and reproduce high-quality digital data with little loss.
[0019]
A digital data decoding method according to claim 15 of the present invention is the digital data decoding method according to claim 13 or 14, wherein the second quantization process is a quantization process based on psychoacoustic analysis. It is characterized by the following.
In this case, it is possible to reproduce digital data close to the original signal even for digital data encoded by a normal lossy compression method.
[0020]
BEST MODE FOR CARRYING OUT THE INVENTION
〔encoder〕
FIG. 1 shows a simplified block diagram of a digital data encoding device employed in one embodiment of the present invention.
The digital data encoding apparatus 1 includes a lossy encoder (Lossy Encoder) 10, a first arithmetic encoder 14, an inverse non-uniform quantizer 15, a first difference calculator 16, and a second difference calculator 16. An arithmetic encoder 17, a first data adder 18, an IMDCT unit 19, a second difference calculator 20, a third arithmetic encoder 21, and a second data adder 22 are provided.
[0021]
The lossy encoder 10 performs a modified discrete cosine transform process on the input data to generate MDCT data. The MDCT unit 11 generates a MDCT data. A uniform quantizer 12 that executes a quantization process to generate uniform quantized data, and performs a non-uniform quantization process based on psychoacoustic analysis on the uniform quantized data generated by the uniform quantizer 12. A non-uniform quantizer 13 for generating non-uniform quantized data is provided.
The uniform quantizer 12 quantizes the MDCT coefficients of the MDCT data generated by the MDCT unit 11 into a predetermined number of bits, and generates a uniform quantized MDCT coefficient group as, for example, 19-bit data. I do.
[0022]
The non-uniform quantizer 13 corrects a loss generated when the uniform quantizer 12 performs the uniform quantization processing, and performs quantization so as not to give a sense of strangeness to a listening person. For example, by using a predetermined quantization table such as reducing the number of quantization bits in a frequency region that cannot be recognized by the human ear and increasing the number of quantization bits in a frequency region that can be recognized by a human, A uniform quantization process can be performed.
The first arithmetic encoder 14 performs an arithmetic encoding process on the input numerical value group based on a predetermined probability density function, and outputs encoded output data E1. The input data is a normally distributed probability density function,
[0023]
[Equation 3]
Figure 2004180058
[0024]
In the case where the distribution state is close to the following, the first arithmetic encoder 14 performs an arithmetic encoding process based on the probability density function. The arithmetic coding process is a well-known technique, and a detailed description thereof will be omitted here.
The inverse non-uniform quantizer 15 performs an inverse process of the quantization process by the non-uniform quantizer 13. For example, an inverse transformation table of the quantization table used in the non-uniform quantizer 13 is prepared, and the inverse non-uniform quantization processing can be executed using the inverse transformation table.
[0025]
The first difference calculator 16 calculates a difference between the uniform quantized data output from the uniform quantizer 12 and the inverse non-uniform quantized data output from the inverse non-uniform quantizer 15 to obtain first differential data. Output.
The second arithmetic encoder 17 performs an arithmetic encoding process on the first difference data output from the first difference calculator 16, and outputs first encoded difference data E2. The second arithmetic encoder 17 performs an arithmetic encoding process based on a probability density function corresponding to the distribution state of the first difference data, and the distribution state approximates the normal distribution as described above. In such a case, the compression ratio can be increased.
[0026]
The IMDCT unit 19 receives the uniform quantized data output from the uniform quantizer 12 as an input, and performs inverse modified discrete cosine transform (Inverse Modified Discrete Cosine Transform) on the data to output IMDCT data. The IMDCT unit 19 performs an inverse transform of the modified discrete cosine transform process performed by the MDCT unit 11.
The second difference calculator 20 calculates a difference between the input data and the IMDCT output data output from the IMDCT unit 19, and outputs the result as second difference data.
The third arithmetic coder 21 performs an arithmetic coding process on the second difference data output from the second difference calculator 20, and outputs second coded difference data E3. Here, the second difference data is considered to be in a distribution state close to a Gaussian distribution, and as a probability density function,
[0027]
(Equation 4)
Figure 2004180058
[0028]
, The compression efficiency can be increased by performing arithmetic coding processing.
The first data adder 18 combines the coded output data output from the first arithmetic coder 14 with the first coded difference data output from the second arithmetic coder 17 to perform a first synthesis. Output data.
The second data adder 22 combines the first combined data output from the first data adder 18 and the second encoded difference data output from the third arithmetic encoder 21 to generate second combined data. Is output.
[0029]
As a result, the second data adder 22 outputs the second combined data including the encoded output data E1, the first encoded difference data E2, and the second encoded difference data E3.
[Decoder]
FIG. 2 is a simplified block diagram of a decoding device for decoding encoded digital data encoded by the above-described digital data encoding device.
The digital data decoding device 3 includes a first arithmetic decoder 31, a decoding device 30 for lossy encoded data, a second arithmetic decoder 35, a third arithmetic decoder 36, and a second data adder 37. It has.
[0030]
The first arithmetic decoder 31 performs an arithmetic decoding process on the encoded input data E1 (encoded output data E1) among the inputted encoded digital data. In this case, the inverse transform of the arithmetic encoding process performed by the first arithmetic encoder 14 of the digital data encoding device 1 described above is performed.
The second arithmetic decoder 35 performs an arithmetic decoding process on the first encoded difference data E2 of the input encoded digital data, and outputs first decoded difference data. In this case, the inverse transform of the arithmetic encoding process performed by the second arithmetic encoder 17 of the digital data encoding device 1 described above is performed.
[0031]
The third arithmetic decoder 36 performs an arithmetic decoding process on the second encoded difference data E3 of the input encoded digital data, and outputs second decoded difference data. In this case, the inverse transform of the arithmetic encoding process performed by the third arithmetic encoder 21 of the digital data encoding device 1 is performed.
The decoding device 30 for lossy encoded data includes an inverse non-uniform quantizer 32, a first data adder 33, and an IMDCT unit 34.
The inverse non-uniform quantizer 32 receives the decoded data output from the first arithmetic decoder 31 as an input, and executes the inverse process of the quantization process by the non-uniform quantizer 13. It has the same function as the inverse non-uniform quantizer 15 of the encoding device 1.
[0032]
The first data adder 33 performs an addition process on the inversely non-uniform quantized data output from the inverse non-uniform quantizer 32 and the first decoded difference data output from the second arithmetic decoder 35. And outputs the first addition data.
The IMDCT unit 34 performs an inverse modified discrete cosine transform process on the first addition data output from the first data adder 33, and outputs IMDCT output data. The IMDCT unit 34 has a function equivalent to that of the IMDCT unit 19 of the digital data encoding device 1 and performs an inverse transform process of the modified discrete cosine transform process by the MDCT unit 11.
[0033]
The second data adder 37 performs an addition process on the IMDCT output data output from the IMDCT unit 34 and the second decoded difference data output from the third arithmetic decoder 36 to convert the decoded digital data. Output.
In the embodiment of the present invention configured as described above, in the digital data encoding device 1, the first difference data obtained by performing the non-uniform quantization processing based on the psychoacoustic analysis together with the encoded digital data E1 is arithmetically encoded. Output as the first encoded difference data, the result of executing the arithmetic decoding process on the encoded digital data E1 and then performing the arithmetic decoding process on the first encoded difference data E2 Is added, and the inverse transformed discrete cosine transform process is performed by the IMDCT unit 34, so that data that does not include loss generated during the non-uniform quantization process by the psychoacoustic analysis of the lossy encoder 10 (Lossy Encoder) Can be reproduced.
[0034]
Further, the digital data encoding device 1 performs the arithmetic encoding process on the difference data generated by the uniform quantizer 12 and outputs the result as the second encoded difference data E3. An arithmetic decoding process is performed on E3, and the result is added to the output data of the decoding device (lossy decoder) 30 for the encoded data with loss, so that the original signal can be faithfully reproduced. Become.
As described above, the compression efficiency of the second difference data can be increased by performing an arithmetic coding process using a probability density function based on a Gaussian distribution.
[0035]
Also, by outputting only the encoded output data E1 on the digital data encoding device 1 side, the data amount can be reduced, and a lossy digital data encoding scheme (Lossy Compression) such as MP3 or AAC is used. ), It is possible to realize encoding / decoding with the same compression ratio and quality.
By outputting only the encoded output data E1 and the first encoded difference data E2 on the digital data encoding device 1 side, the loss caused by the non-uniform quantization processing based on psychoacoustic analysis is recovered, and Digital data including only the loss due to the quantizer 12 can be reproduced.
[0036]
Therefore, it is possible to configure the output data by selecting high-quality encoding and high-compression-rate encoding in accordance with the state and band of the transmission path and the capacity of the storage medium.
[0037]
【The invention's effect】
In the present invention, since the differential data generated when quantizing the digital data together with the encoded output data is configured to be output, it is possible to faithfully reproduce the original signal using this differential data, In addition to maintaining high data quality, it is also possible to reduce the data size by realizing a high compression rate by performing arithmetic coding on output data and difference data. Further, by selecting whether or not to include the encoded difference data in the output data, it is possible to select the encoding in accordance with the state and band of the transmission path, the capacity of the storage medium, and the like.
[Brief description of the drawings]
FIG. 1 is a simplified block diagram of a digital data encoding device employed in an embodiment of the present invention.
FIG. 2 is a simplified block diagram of a digital data decoding device employed in one embodiment of the present invention.

Claims (15)

入力データに対して変形離散コサイン変換処理を実行してMDCTデータを生成するMDCT処理手段と、
前記MDCT処理手段により生成されたMDCTデータに対して第1の量子化処理を実行して第1量子化データを生成する第1量子化処理手段と、
前記第1量子化処理手段により生成された第1量子化データに対して第2の量子化処理を実行して第2量子化データを生成する第2量子化処理手段と、
前記第2量子化処理手段により生成された第2量子化データに対して算術符号化処理を行い符号化出力データを出力する第1算術符号化処理手段と、
前記第2量子化処理手段により生成された第2量子化データに対して前記第2量子化処理の逆処理を実行して逆量子化データを生成する逆量子化処理手段と、前記逆量子化処理手段により生成される逆量子化データと前記第1量子化処理手段により生成される第1量子化データとの差分を算出して第1差分データとして出力する第1差分処理手段と、
前記第1差分処理手段が出力する第1差分データに対して算術符号化処理を行い第1符号化差分データを出力する第2算術符号化処理手段と、
前記第1量子化処理手段により生成される第1量子化データに対して逆変形離散コサイン変換処理を実行しIMDCT出力データを出力するIMDCT処理手段と、
前記IMDCT処理手段が出力するIMDCT出力データと入力データとの差分を演算し第2差分データとして出力する第2差分処理手段と、
前記第2差分処理手段が出力する第2差分データに対して算術符号化処理を実行し第2符号化差分データを出力する第3算術符号化処理手段と、
前記第1算術符号化処理手段が出力する符号化出力データと前記第2算術符号化処理手段が出力する第1符号化差分データと前記第3算術符号化処理手段が出力する第2符号化差分データとに基づいて出力データを出力する出力手段と、
を備えるデジタルデータの符号化装置。
MDCT processing means for performing a modified discrete cosine transform process on input data to generate MDCT data;
First quantization processing means for performing first quantization processing on the MDCT data generated by the MDCT processing means to generate first quantized data;
Second quantization processing means for performing a second quantization processing on the first quantization data generated by the first quantization processing means to generate second quantized data;
First arithmetic coding processing means for performing arithmetic coding processing on the second quantized data generated by the second quantization processing means and outputting coded output data;
Inverse quantization processing means for performing inverse processing of the second quantization processing on the second quantized data generated by the second quantization processing means to generate inversely quantized data; First difference processing means for calculating a difference between the inversely quantized data generated by the processing means and the first quantized data generated by the first quantization processing means and outputting the difference as first difference data;
Second arithmetic coding means for performing an arithmetic coding process on the first difference data output by the first difference processing means and outputting first coded difference data;
IMDCT processing means for performing inverse modified discrete cosine transform processing on the first quantized data generated by the first quantization processing means and outputting IMDCT output data;
Second difference processing means for calculating a difference between the IMDCT output data output from the IMDCT processing means and the input data and outputting the calculated difference as second difference data;
Third arithmetic encoding processing means for performing arithmetic encoding processing on the second differential data output by the second differential processing means and outputting second encoded differential data;
The coded output data output by the first arithmetic coding processing means, the first coded difference data output by the second arithmetic coding processing means, and the second coded difference data output by the third arithmetic coding processing means Output means for outputting output data based on the data and
Digital data encoding device comprising:
前記第2量子化処理手段は不均一量子化処理を実行する、請求項1に記載のデジタルデータの符号化装置。2. The digital data encoding device according to claim 1, wherein said second quantization processing means performs a non-uniform quantization process. 前記第2量子化処理手段は、聴覚心理分析に基づく量子化処理を実行する、請求項1または2に記載のデジタルデータの符号化装置。The digital data encoding device according to claim 1, wherein the second quantization processing unit performs a quantization process based on psychoacoustic analysis. 前記第3算術符号化処理手段は、前記第2差分データに対して、
Figure 2004180058
の確率密度関数に基づく算術符号化処理を実行する、請求項1〜3のいずれかに記載のデジタルデータの符号化装置。
The third arithmetic encoding processing means:
Figure 2004180058
The digital data encoding device according to any one of claims 1 to 3, which performs arithmetic encoding processing based on the probability density function of (1).
前記符号化出力データと第1符号化差分データと第2符号化差分データとを全て含むロスレス出力データ、前記符号化出力データと第1符号化差分データとを含む擬似ロスレス出力データ、前記符号化出力データのみで構成されるロッシー出力データのうちいずれかを出力データとして選択する出力選択手段をさらに備える、請求項1〜4のいずれかに記載のデジタルデータの符号化装置。Lossless output data including all of the encoded output data, first encoded difference data, and second encoded difference data; pseudo lossless output data including the encoded output data and first encoded difference data; The digital data encoding device according to any one of claims 1 to 4, further comprising an output selection unit that selects any one of lossy output data composed of only output data as output data. 算術符号化処理された符号化入力データと、第2量子化処理時に生じる第1差分データを算術符号化処理した第1符号化差分データと、第1量子化処理時に生じる第2差分データを算術符号化処理した第2符号化差分データとを入力データとするデジタルデータの復号化装置であって、
前記符号化入力データについて算術復号化処理を実行して復号化データを生成する第1算術復号化処理手段と、
前記第1符号化差分データについて算術復号化処理を実行して第1復号化差分データを生成する第2算術復号化処理手段と、
前記第2符号化差分データについて算術復号化処理を実行して第2復号化差分データを生成する第3算術復号化処理手段と、
前記第1算術復号化処理手段により復号化された復号化データについて第2の量子化処理の逆処理を実行して逆量子化データを生成する逆量子化処理手段と、前記逆量子化処理手段により生成される逆量子化データと前記第2算術復号化処理手段により生成される第1復号化差分データとを加算処理して第1加算データを生成する第1加算処理手段と、
前記第1加算処理手段により生成される第1加算データについて逆変形離散コサイン変換処理を実行してIMDCT出力データを生成するIMDCT処理手段と、
前記IMDCT処理手段により生成されるIMDCT出力データと前記第3算術復号化処理手段により生成される第2復号化差分データとを加算して復元データを出力する第2加算処理手段と、
を備えるデジタルデータの復号化装置。
Arithmetic encoding of encoded input data, first encoded differential data obtained by arithmetic encoding of first differential data generated at the time of second quantization processing, and second differential data generated at the time of first quantization are arithmetically performed. An apparatus for decoding digital data using the encoded second encoded difference data as input data,
First arithmetic decoding processing means for performing arithmetic decoding processing on the encoded input data to generate decoded data;
Second arithmetic decoding processing means for performing arithmetic decoding on the first encoded difference data to generate first decoded difference data;
Third arithmetic decoding processing means for performing an arithmetic decoding process on the second encoded difference data to generate second decoded difference data,
Inverse quantization processing means for performing inverse processing of a second quantization processing on the decoded data decoded by the first arithmetic decoding processing means to generate inverse quantized data; and the inverse quantization processing means First addition processing means for adding the inverse quantized data generated by the above and the first decoded difference data generated by the second arithmetic decoding processing means to generate first addition data;
IMDCT processing means for performing inverse modified discrete cosine transform processing on the first addition data generated by the first addition processing means to generate IMDCT output data;
Second addition processing means for adding the IMDCT output data generated by the IMDCT processing means and the second decoded difference data generated by the third arithmetic decoding processing means to output restored data;
Digital data decoding device comprising:
前記第2の量子化処理は不均一量子化処理である、請求項6に記載のデジタルデータの復号化装置。The digital data decoding device according to claim 6, wherein the second quantization process is a non-uniform quantization process. 前記第2量子化処理は聴覚心理分析に基づく量子化処理である、請求項6または7に記載のデジタルデータの復号化装置。The digital data decoding device according to claim 6, wherein the second quantization process is a quantization process based on psychoacoustic analysis. 入力データに対して変形離散コサイン変換処理を実行してMDCTデータを生成する段階と、
前記MDCTデータに対して第1の量子化処理を実行して第1量子化データを生成する段階と、
前記第1量子化データに対して第2の量子化処理を実行して第2量子化データを生成する段階と、
前記第2量子化データに対して算術符号化処理を行い符号化出力データを生成する段階と、
前記第2量子化データに対して前記第2の量子化処理の逆処理を実行して逆量子化データを生成する段階と、
前記逆量子化データと前記第1量子化データとの差分を算出して第1差分データを生成する段階と、
前記第1差分データに対して算術符号化処理を行い第1符号化差分データを生成する段階と、
前記第1量子化データに対して逆変形離散コサイン変換処理を実行しIMDCT出力データを生成する段階と、
前記IMDCT出力データと入力データとの差分を演算し第2差分データを生成する段階と、
前記第2差分データに対して算術符号化処理を実行し第2符号化差分データを生成する段階と、
前記符号化出力データ、第1符号化差分データおよび第2符号化差分データに基づいて出力データを出力する段階と、
を含む、デジタルデータの符号化方法。
Performing a modified discrete cosine transform process on the input data to generate MDCT data;
Performing a first quantization process on the MDCT data to generate first quantization data;
Performing a second quantization process on the first quantized data to generate second quantized data;
Performing an arithmetic encoding process on the second quantized data to generate encoded output data;
Performing inverse processing of the second quantization processing on the second quantized data to generate inversely quantized data;
Calculating a difference between the dequantized data and the first quantized data to generate first difference data;
Performing an arithmetic encoding process on the first difference data to generate first encoded difference data;
Performing an inverse modified discrete cosine transform process on the first quantized data to generate IMDCT output data;
Calculating a difference between the IMDCT output data and the input data to generate second difference data;
Performing arithmetic coding on the second difference data to generate second coded difference data;
Outputting output data based on the encoded output data, the first encoded difference data, and the second encoded difference data;
And a method for encoding digital data.
前記第2の量子化処理は不均一量子化処理である、請求項9に記載のデジタルデータの符号化方法。10. The digital data encoding method according to claim 9, wherein the second quantization process is a non-uniform quantization process. 前記第2の量子化処理は聴覚心理分析に基づく量子化処理である、請求項9または10に記載のデジタルデータの符号化方法。The digital data encoding method according to claim 9, wherein the second quantization process is a quantization process based on psychoacoustic analysis. 前記符号化出力データと第1符号化差分データと第2符号化差分データとを全て含むロスレス出力データ、前記符号化出力データと第1符号化差分データとを含む擬似ロスレス出力データ、前記符号化出力データのみで構成されるロッシー出力データのうちいずれかを出力データとして選択する段階をさらに備える請求項9〜11に記載のデジタルデータの符号化方法。Lossless output data including all of the encoded output data, first encoded difference data, and second encoded difference data; pseudo lossless output data including the encoded output data and first encoded difference data; The digital data encoding method according to any one of claims 9 to 11, further comprising the step of selecting any of lossy output data composed of only output data as output data. 算術符号化処理された符号化入力データと、第2の量子化処理時に生じる第1差分データを算術符号化処理した第1符号化差分データと、第1量子化処理時に生じる第2差分データを算術符号化処理した第2符号化差分データとを入力データとし原デジタルデータを復元するデジタルデータの復号化方法であって、
前記符号化入力データについて算術復号化処理を実行して復号化データを生成する段階と、
前記第1符号化差分データについて算術復号化処理を実行して第1復号化差分データを生成する段階と、
前記第2符号化差分データについて算術復号化処理を実行して第2復号化差分データを生成する段階と、
前記復号化データについて第2の量子化処理の逆処理を実行して逆量子化データを生成する段階と、
前記逆量子化データと前記第1復号化差分データとを加算処理して第1加算データを生成する段階と、
前記第1加算データについて逆変形離散コサイン変換処理を実行してIMDCT出力データを生成する段階と、
前記IMDCT出力データと前記第2復号化差分データとを加算して復元データを出力する段階と、
を含むデジタルデータの復号化方法。
The coded input data subjected to the arithmetic coding processing, the first coded difference data obtained by arithmetically coding the first difference data generated at the time of the second quantization processing, and the second difference data generated at the time of the first quantization processing are A decoding method of digital data for restoring original digital data using second encoded difference data subjected to arithmetic encoding processing as input data,
Performing arithmetic decoding processing on the encoded input data to generate decoded data;
Performing arithmetic decoding processing on the first encoded difference data to generate first decoded difference data;
Performing an arithmetic decoding process on the second encoded difference data to generate second decoded difference data;
Performing inverse processing of a second quantization processing on the decoded data to generate inversely quantized data;
Adding the inversely quantized data and the first decoded difference data to generate first added data;
Performing an inverse modified discrete cosine transform process on the first sum data to generate IMDCT output data;
Adding the IMDCT output data and the second decoded difference data to output restored data;
And a method for decoding digital data.
前記第2の量子化処理は不均一量子化処理である、請求項13に記載のデジタルデータの復号化方法。14. The digital data decoding method according to claim 13, wherein the second quantization process is a non-uniform quantization process. 前記第2の量子化処理は聴覚心理分析に基づく量子化処理である、請求項13または14に記載の復号化方法。The decoding method according to claim 13, wherein the second quantization process is a quantization process based on psychoacoustic analysis.
JP2002344964A 2002-11-28 2002-11-28 Method and device for encoding digital data Pending JP2004180058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002344964A JP2004180058A (en) 2002-11-28 2002-11-28 Method and device for encoding digital data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002344964A JP2004180058A (en) 2002-11-28 2002-11-28 Method and device for encoding digital data

Publications (1)

Publication Number Publication Date
JP2004180058A true JP2004180058A (en) 2004-06-24

Family

ID=32706261

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002344964A Pending JP2004180058A (en) 2002-11-28 2002-11-28 Method and device for encoding digital data

Country Status (1)

Country Link
JP (1) JP2004180058A (en)

Similar Documents

Publication Publication Date Title
RU2555221C2 (en) Complex transformation channel coding with broadband frequency coding
JP5292498B2 (en) Time envelope shaping for spatial audio coding using frequency domain Wiener filters
JP2024003010A (en) Device and method for encoding or decoding directional audio coding parameters using quantization and entropy coding
JP5539203B2 (en) Improved transform coding of speech and audio signals
KR100986924B1 (en) Information Signal Encoding
US10121480B2 (en) Method and apparatus for encoding audio data
US20100027625A1 (en) Apparatus for encoding and decoding
KR100840439B1 (en) Audio coding apparatus and audio decoding apparatus
JPH10282999A (en) Method and device for coding audio signal, and method and device decoding for coded audio signal
JPWO2005004113A1 (en) Audio encoding device
JPWO2009001874A1 (en) Audio encoding method, audio decoding method, audio encoding device, audio decoding device, program, and audio encoding / decoding system
JP4063508B2 (en) Bit rate conversion device and bit rate conversion method
JPWO2010016270A1 (en) Quantization apparatus, encoding apparatus, quantization method, and encoding method
US20020173969A1 (en) Method for decompressing a compressed audio signal
JPH0748698B2 (en) Audio signal coding method
JP2000338998A (en) Audio signal encoding method and decoding method, device therefor, and program recording medium
JP2004184975A (en) Audio decoding method and apparatus for reconstructing high-frequency component with less computation
JP2004180058A (en) Method and device for encoding digital data
JP2002091497A (en) Audio signal encoding method and decoding methods, and storage medium stored with program to execute these methods
US20130197919A1 (en) &#34;method and device for determining a number of bits for encoding an audio signal&#34;
JP4273062B2 (en) Encoding method, encoding apparatus, decoding method, and decoding apparatus
JP2001148632A (en) Encoding device, encoding method and recording medium
JP2004180057A (en) Method and device for encoding digital data
JPH0918348A (en) Acoustic signal encoding device and acoustic signal decoding device
JP2001109497A (en) Audio signal encoding device and audio signal encoding method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041028

A977 Report on retrieval

Effective date: 20051121

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051129

A521 Written amendment

Effective date: 20060130

Free format text: JAPANESE INTERMEDIATE CODE: A523

A02 Decision of refusal

Effective date: 20060214

Free format text: JAPANESE INTERMEDIATE CODE: A02