JP2019097030A - Image coding apparatus, imaging apparatus, image coding method, and program - Google Patents
Image coding apparatus, imaging apparatus, image coding method, and program Download PDFInfo
- Publication number
- JP2019097030A JP2019097030A JP2017224855A JP2017224855A JP2019097030A JP 2019097030 A JP2019097030 A JP 2019097030A JP 2017224855 A JP2017224855 A JP 2017224855A JP 2017224855 A JP2017224855 A JP 2017224855A JP 2019097030 A JP2019097030 A JP 2019097030A
- Authority
- JP
- Japan
- Prior art keywords
- image
- code amount
- quantization
- encoding
- target
- 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
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
本発明は、画像符号化装置、撮像装置、画像符号化方法、及びプログラムに関する。 The present invention relates to an image coding apparatus, an imaging apparatus, an image coding method, and a program.
動画像の国際標準符号化規格である、HEVC(High Efficiency Video Coding)符号化方式が普及し始めている。このHEVC符号化方式において、新たに静止画プロファイルというものが導入された(非特許文献1参照)。これは、動画像符号化方式のHEVCにより静止画を符号化するためのプロファイルである。これにより、今後HEVCを用いた静止画ファイルが普及するものと期待されている。 High efficiency video coding (HEVC) coding, which is an international standard coding standard for moving pictures, is beginning to spread. In the HEVC encoding scheme, a still picture profile has been newly introduced (see Non-Patent Document 1). This is a profile for encoding a still picture by HEVC of a moving picture coding scheme. This is expected to spread still image files using HEVC in the future.
HEVCでは、エントロピー符号化にCABAC(Context-based Adaptive Binary Arithmetic Coding)が用いられている。CABACには、圧縮率が高いという利点があるが、並列処理が困難であるという特徴がある。符号化処理を1ビットずつ逐次処理で行うため、符号量に比例して処理時間がかかることになる。なお、CABACは、HEVCだけでなくH.264でも採用されている。 In HEVC, CABAC (Context-based Adaptive Binary Arithmetic Coding) is used for entropy coding. Although CABAC has an advantage of high compression rate, it has a feature that parallel processing is difficult. Since the encoding process is sequentially performed bit by bit, it takes a processing time in proportion to the code amount. In addition, CABAC is not only HEVC but H. H.264 is also adopted.
HEVCの静止画ファイルのコンテナ形式の1つとして、MPF(Multi Picture Format)の利用が想定されている。これは、複数の静止画を1つのファイルに収めることを想定した形式である。例えば、1つのファイルに対して、通常の撮影画像である静止画(メイン画像)に加えて、2kサイズ又は4kサイズなどに解像度変換を行った静止画(サブ画像)を同時に含めることができる。 The use of MPF (Multi Picture Format) is assumed as one of the container formats of HEVC still image files. This is a format that assumes that a plurality of still images are stored in one file. For example, in addition to a still image (main image) which is a normal captured image, one file can simultaneously include still images (sub-images) subjected to resolution conversion to 2 k size or 4 k size.
従来の静止画用の符号化規格であるJPEG(Joint Photographic Experts Group)では、画面内では量子化値が一定であり、一般的にノーマルやファインといった画質モードごとに量子化テーブルが用意されていた。例えば画像の符号化難易度(複雑性)に応じて量子化テーブルを変更するというようなことはされていない。これは、画質モードごとに画質レベルを一定にしたいためである。 In JPEG (Joint Photographic Experts Group), which is a coding standard for conventional still images, the quantization value is constant in the screen, and a quantization table is generally prepared for each image quality mode such as normal or fine. . For example, the quantization table is not changed according to the encoding difficulty (complexity) of the image. This is because it is desirable to make the image quality level constant for each image quality mode.
HEVCでこれと同様の処理を行う場合、画質モードごとに画面内の量子化値を一定にすることになる。本来、HEVCではCU(Coding Unit)ごとに量子化値を変化させることができるのだが、画質モードごとに予め決められた一定の量子化値を用いることにより、画質レベルを一定に保つことが可能となる。 When the same processing is performed in HEVC, the quantization value in the screen is made constant for each image quality mode. Originally, in HEVC, it is possible to change the quantization value for each CU (Coding Unit), but it is possible to keep the image quality level constant by using a fixed quantization value predetermined for each image quality mode. It becomes.
しかしながら、メイン画像及びサブ画像の両方について画質優先の量子化制御(例えば、画質モードに応じた、画面内で一定の量子化値を用いる制御)を行った場合、画像の符号化難易度(複雑性)によっては大幅に符号量が増大してしまう可能性がある。 However, when quantization control with priority on image quality (for example, control using a constant quantization value in the screen according to the image quality mode) is performed for both the main image and the sub image, the coding difficulty of the image (complex) Depending on the nature of the code, the code amount may increase significantly.
本発明はこのような状況に鑑みてなされたものであり、2つの画像を符号化する際に、そのうちの1つの画像については目標画質に基づく量子化制御を行いつつ、全体の発生符号量の増大を抑制する技術を提供することを目的とする。 The present invention has been made in view of such a situation, and when encoding two images, while performing quantization control based on the target image quality for one of the images, It aims at providing the technology which controls increase.
上記課題を解決するために、本発明は、第1の画像及び第2の画像に対して量子化を伴う符号化処理を行う符号化手段であって、前記第1の画像及び前記第2の画像のうちの一方は前記第1の画像及び前記第2の画像のうちの他方に基づいて生成された画像である、符号化手段と、目標画質に基づいて前記第1の画像の前記量子化を制御し、目標符号量に基づいて前記第2の画像の前記量子化を制御する制御手段と、を備えることを特徴とする画像符号化装置を提供する。 In order to solve the above-mentioned problems, the present invention is an encoding means for performing encoding processing involving quantization on a first image and a second image, wherein the first image and the second image are encoded. Coding means, one of the images being an image generated based on the other of the first image and the second image, and the quantization of the first image based on a target image quality Control means for controlling the quantization of the second image based on a target code amount, and an image coding apparatus characterized by comprising:
なお、その他の本発明の特徴は、添付図面及び以下の発明を実施するための形態における記載によって更に明らかになるものである。 Other features of the present invention will become more apparent from the description in the accompanying drawings and the following detailed description of the invention.
本発明によれば、2つの画像を符号化する際に、そのうちの1つの画像については目標画質に基づく量子化制御を行いつつ、全体の発生符号量の増大を抑制することが可能となる。 According to the present invention, when encoding two images, it is possible to suppress an increase in the overall generated code amount while performing quantization control based on the target image quality for one of the images.
以下、添付図面を参照して、本発明の実施形態を説明する。なお、本発明の技術的範囲は、特許請求の範囲によって確定されるのであって、以下の個別の実施形態によって限定されるわけではない。また、実施形態の中で説明されている特徴の組み合わせすべてが、本発明に必須とは限らない。また、別々の実施形態の中で説明されている特徴を適宜組み合せることも可能である。 Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. The technical scope of the present invention is determined by the scope of the claims, and is not limited by the following individual embodiments. Moreover, not all combinations of features described in the embodiments are essential to the present invention. Also, features described in different embodiments may be combined as appropriate.
[第1の実施形態]
図1は、第1の実施形態に係る画像符号化装置を含む撮像装置100の構成を示すブロック図である。以下では、HEVC符号化方式により符号化を行う例について説明するが、本実施形態の符号化方式はHEVC符号化方式に限定されない。
First Embodiment
FIG. 1 is a block diagram showing the configuration of an
本実施形態においては、撮像装置100は、メイン画像とサブ画像の2つの画像(静止画)に対して符号化処理を行い、符号化された2つの画像を相互に関連付けて1つのファイルに記録する場合の処理について説明する。以下、複数の画像を1つのファイルに記録する記録方式をMPF(Multi Picture Format)と呼ぶ。
In the present embodiment, the
最初に、静止画1枚の符号化処理について説明する。なお、図1において、動画像に関するHEVCの機能ブロックについては図示を省略している。被写体からの光束が、レンズ101を通して撮像部102に入力される。撮像部102は、入力された光束をデジタル画素データに変換し、現像処理部103へ出力する。
First, encoding processing for one still picture will be described. In FIG. 1, the functional blocks of HEVC regarding moving images are omitted. A light flux from a subject is input to the
現像処理部103は、ディベイヤー処理、キズ補正、ノイズ除去、YCbCr形式への色変換などの各種画像処理を行う。画像処理後の、圧縮符号化を行うことができる形式になった画像が、これから符号化を行う対象である符号化対象画像として符号化フレームバッファ104に入力される。
The
イントラ予測部106は、符号化対象画像のブロックごとにイントラ予測(画面内予測)を行う。イントラ予測においては、イントラ予測部106は、符号化フレームバッファ104に格納されている符号化対象画像とイントラ予測部106の内部に保存されている過去に符号化済みの画面内の周辺画像とに基づいてイントラ予測を行い、予測モードを決定する。イントラ予測部106は、符号化対象画像と、決定された予測モードに従うイントラ予測画像との間で画素の差分を求め、差分画像を生成する。生成された差分画像は直交変換部107に出力される。
The
直交変換部107は、差分画像に対して離散コサイン変換を行うことにより変換係数を生成し、量子化部108に出力する。
The
量子化部108は、直交変換部107から送られてきた変換係数に対して、量子化制御部109が出力する量子化ステップ(量子化値)に従って量子化を行う。量子化された変換係数は、符号化ストリーム作成のために可変長符号化部110へ出力される。また、量子化された変換係数は、適応オフセット処理のパラメータ算出の際に必要となるローカルデコード画像を作成するために、逆量子化部112へ出力される。
The
可変長符号化部110は、量子化された変換係数に対してジグザグスキャン又はオルタネートスキャン等を行い、可変長符号化を行う。また、可変長符号化部110は、イントラ予測モード、量子化値、ブロック分割情報、適応オフセット処理用パラメータなどの符号化方式情報に対して可変長符号化を行う。可変長符号化部110は、符号化された変換係数に対して符号化された符号化方式情報を付加することにより、符号化ストリームを生成する。生成された符号化ストリームは、ストリームバッファ111に保存される。また、可変長符号化部110は、符号化の際にブロックごとの発生符号量を算出し、量子化制御部109に出力する。
The variable-
符号化方式設定部113は、量子化制御部109での量子化制御方式を決定する。量子化制御部109は、可変長符号化部110から送られてくる発生符号量、及び符号化方式設定部113で決定された量子化制御方式に従い、量子化値を決定する。量子化制御部109での量子化制御方法の詳細については後述する。
The coding
逆量子化部112は、量子化部108から送られてきた量子化後の変換係数に対して逆量子化を行い、ローカルデコード用の変換係数を生成する。この変換係数は逆直交変換部114に出力される。
The
逆直交変換部114は、送られてきた変換係数に対して逆離散コサイン変換を行うことにより差分画像を生成する。生成された差分画像は動き補償部115に出力される。
The inverse
動き補償部115は、イントラ予測部106から送られてきた予測画像と、逆直交変換部114から送られてきた差分画像とを加算することにより、ローカルデコード用の画像データを生成する。生成された画像データは、デブロッキングフィルタ部116に出力される。
The
デブロッキングフィルタ部116は、送られてきた画像データに対してデブロッキングフィルタをかける。デブロッキングフィルタ後の画像は、適応オフセット処理部117に出力される。
The
適応オフセット処理部117は、バンドオフセット処理、エッジオフセット処理、又は何も処理をしない、のいずれかの選択を行い、適応オフセット処理を行うバンド位置、エッジ方向、オフセット値などを決定する。適応オフセット処理部117は、適応オフセット処理用のパラメータ(適応オフセット処理としてどの処理を選択したかの情報、バンド位置、エッジ方向、オフセット値など)を符号化ストリームに含めるために、可変長符号化部110に出力する。
The adaptive offset processing unit 117 selects any of band offset processing, edge offset processing, or no processing, and determines a band position, an edge direction, an offset value, etc. for which the adaptive offset processing is to be performed. The adaptive offset processing unit 117 performs variable-length coding to include parameters for adaptive offset processing (information on which processing has been selected as adaptive offset processing, band position, edge direction, offset value, etc.) in a coded stream. Output to the
以上の処理により、1枚の静止画の符号化ストリームが作成される。 By the above processing, a coded stream of one still image is created.
次に、1枚の静止画を撮影し、縮小処理を行わないメイン画像、及び縮小処理を行ったサブ画像の2枚の静止画を相互に関連付けて記録する場合の動作について説明する。ここでは、上で説明した現像処理部103により符号化フレームバッファ104に入力される符号化対象画像がメイン画像として用いられるものとする。
Next, an operation in the case where one still image is photographed and two still images of the main image not subjected to reduction processing and the sub image subjected to the reduction processing are mutually associated and recorded will be described. Here, it is assumed that the encoding target image input to the
現像処理部103は、メイン画像を、符号化フレームバッファ104に加えて縮小処理部105へも出力する。縮小処理部105は、メイン画像に対して縮小処理を行い、サブ画像を生成する。生成されたサブ画像は、符号化フレームバッファ104に格納される。
The
符号化フレームバッファ104に格納されたメイン画像に対して、前述のように符号化処理が行われ、メイン画像の符号化ストリームがストリームバッファ111に保存される。メイン画像の符号化処理が行われた後に、サブ画像の符号化処理が行われ、サブ画像の符号化ストリームがストリームバッファ111に保存される。
The encoding process is performed on the main image stored in the encoded
メイン画像とサブ画像の両方の符号化ストリームが生成された後、それら2つの符号化ストリームは多重化部118に入力される。多重化部118は、MPFに従って2つの符号化ストリームの多重化処理を行い、MPFストリームを生成する。多重化部118は、MPFストリームを1つのファイルとして記録メディア119に記録する。
After the coded streams of both the main image and the sub image are generated, these two coded streams are input to the
次に、撮像装置100が実行する量子化制御の詳細について説明する。一般的に、静止画においては画面内で量子化値を一定にして符号化を行う。また、量子化値としては、画質モードなどに応じて予め決められた値が用いられる。このように決められた量子化値を用いて符号化を行うことで、画質レベルを保つことができるが、発生符号量は入力画像(符号化対象画像)に依存する。
Next, details of quantization control performed by the
符号化方式設定部113は、目標画質及び目標符号量を保持している。また、符号化方式設定部113は、現在の符号化対象画像がメイン画像であるかサブ画像であるかを示す情報を保持している。なお、ユーザが目標画質及び目標符号量を設定可能なように撮像装置100を構成してもよい。
The encoding
現在の符号化対象画像がメイン画像である場合、符号化方式設定部113は、量子化制御部109に対して目標画質を通知し、画質優先の量子化制御を行うように指示する。量子化制御部109は、その指示に従って量子化制御を行う。例えば、画質優先の量子化制御として、量子化制御部109は、従来の静止画の量子化制御と同様に、目標画質に基づいて画面内(画面全体)で一定の量子化値を決定する。このように量子化制御を行うことで、メイン画像の画質レベルを保つことができる。
If the current image to be encoded is a main image, the encoding
現在の符号化対象画像がサブ画像である場合、符号化方式設定部113は、量子化制御部109に対して目標符号量を通知し、符号量優先の量子化制御を行うように指示する。量子化制御部109は、その指示に従って量子化制御を行う。例えば、符号化方式設定部113は、発生符号量が目標符号量に収まるように量子化制御を行う。この場合、可変長符号化部110は、CUごとに発生符号量を算出して量子化制御部109に入力する。量子化制御部109は、CUごとに発生符号量と目標符号量との乖離を見て、次のCUに使用する量子化値を決定する。このようにして、画面全体の発生符号量が目標符号量に収まるように量子化制御を行うことができる。
If the current image to be encoded is a sub-image, the encoding
サブ画像の発生符号量は予め決められた(又はユーザにより設定された)目標符号量に抑えられるため、サブ画像が複雑な場合であっても発生符号量の増大が抑制される。そのため、一般的に、画面内で量子化値が一定の場合と比較して、少ない符号量でサブ画像の符号化を行うことができる。即ち、メイン画像及びサブ画像の両方を画面内で一定の量子化値を用いて量子化する場合と比較して、メイン画像の符号量とサブ画像の符号量の合計を少なくすることができる。 Since the generated code amount of the sub image is suppressed to a predetermined (or set by the user) target code amount, an increase in the generated code amount is suppressed even if the sub image is complicated. Therefore, in general, the sub-image can be encoded with a smaller code amount as compared to the case where the quantization value is constant in the screen. That is, the sum of the code amount of the main image and the code amount of the sub image can be reduced compared to the case where both the main image and the sub image are quantized using a constant quantization value in the screen.
図2は、通常の量子化制御の場合の発生符号量と、第1の実施形態における発生符号量とを比較する概念図である。通常の量子化制御では、メイン画像及びサブ画像の両方について、画面内で一定の量子化値を用いた符号化が行われる。メイン画像の発生符号量201、サブ画像の発生符号量202の合計が全体の発生符号量となる。
FIG. 2 is a conceptual diagram comparing the generated code amount in the case of normal quantization control with the generated code amount in the first embodiment. In normal quantization control, encoding is performed using constant quantization values in the screen for both the main image and the sub-image. The sum of the generated
本実施形態における量子化制御では、メイン画像については画面内(画面全体)で一定の量子化値を用いた符号化が行われる。また、サブ画像については発生符号量が目標符号量Target_Picに収まるように(発生符号量が目標符号量を超えないように)符号化が行われる。メイン画像の発生符号量203は、通常の量子化制御におけるメイン画像の発生符号量201と同じになる。サブ画像の発生符号量204は、Target_Picに収まるように量子化制御が行われるため、通常の量子化制御におけるサブ画像の発生符号量202よりも少なくなる。その結果、通常の量子化制御と比較し、サブ画像の発生符号量204が少ない分、全体としての発生符号量も少なくすることができる。
In the quantization control in the present embodiment, encoding is performed using a fixed quantization value in the screen (entire screen) for the main image. Also, for the sub-image, encoding is performed such that the generated code amount falls within the target code amount Target_Pic (so that the generated code amount does not exceed the target code amount). The generated code amount 203 of the main image is the same as the generated
HEVCでは、可変長符号化の方式として算術符号化であるCABAC(Context-based Adaptive Binary Arithmetic Coding)を用いて符号化を行っている。CABACでは、符号の発生確率を1ビットずつ更新するため、並列に処理を行うことが困難である。そのため、CABACの処理性能は、CABACに入力される符号量に依存する。符号量が少ないほど処理時間が短くなり、処理性能が上がることになる。 In HEVC, coding is performed using CABAC (Context-based Adaptive Binary Arithmetic Coding), which is arithmetic coding, as a method of variable-length coding. In CABAC, since the code occurrence probability is updated bit by bit, it is difficult to perform processing in parallel. Therefore, the processing performance of CABAC depends on the code amount input to CABAC. The smaller the code amount, the shorter the processing time and the higher the processing performance.
本実施形態によれば、通常の量子化制御が行われる符号化と比較し、メイン画像とサブ画像の合計の符号量を少なくすることができる。そのため、符号量を少なくした分、CABACにおける処理性能を上げることが可能となる。 According to the present embodiment, it is possible to reduce the total code amount of the main image and the sub image, as compared to encoding in which normal quantization control is performed. Therefore, it is possible to increase the processing performance in CABAC as the amount of code is reduced.
図3は、撮像装置100が実行する符号化処理のフローチャートである。なお、ここでは符号化処理のうち主に量子化制御に関係する処理について説明を行うものとし、その他の処理(例えば、イントラ予測処理など)については説明を省略する。また、本フローチャートにおける量子化部108、量子化制御部109、及び可変長符号化部110の機能は、任意のハードウェア又はソフトウェアにより実装可能である。例えば、ソフトウェアによる実装の場合、撮像装置100のCPUがROMに格納された制御プログラムをRAMに展開して実行することにより、これらの機能を実現することができる。
FIG. 3 is a flowchart of the encoding process performed by the
S301で、量子化制御部109は、符号化方式設定部113から目標画質及び目標符号量を取得する。
In step S301, the
S302で、量子化制御部109は、目標画質に基づいてメイン画像用の量子化値を決定し、決定した量子化値を量子化部108に通知する。
In step S302, the
S303で、量子化部108は、量子化制御部109から通知されたメイン画像用の量子化値に基づいてメイン画像を量子化する。
In step S303, the
S304で、可変長符号化部110は、量子化されたメイン画像に対して可変長符号化を行う。
In S304, the variable-
続くS305乃至S307の処理は、サブ画像の全CUの符号化が完了するまで、CUごとに繰り返し実行される。 The subsequent processing of S305 to S307 is repeatedly performed for each CU until encoding of all CUs of the sub-image is completed.
S305で、量子化制御部109は、目標符号量、可変長符号化部110からこれまでに通知されたサブ画像の発生符号量の合計、及び残りのCUの数に基づき、サブ画像全体の発生符号量が目標符号量に収まるようにサブ画像用の量子化値を決定する。量子化制御部109は、決定した量子化値を量子化部108に通知する。
In step S305, the
S306で、量子化部108は、S305において量子化制御部109から通知されたサブ画像用の量子化値に基づいてサブ画像のCUを量子化する。
In step S306, the
S307で、可変長符号化部110は、S306において量子化されたサブ画像のCUに対して可変長符号化を行い、発生符号量を量子化制御部109に通知する。
In S307, the variable-
サブ画像の全CUについてS305乃至S307の処理が行われると、メイン画像及びサブ画像の符号化が完了する。 When the processing of S305 to S307 is performed for all CUs of the sub-image, encoding of the main image and the sub-image is completed.
以上説明したように、第1の実施形態によれば、撮像装置100は、目標画質に基づいてメイン画像の量子化を制御し、目標符号量に基づいてサブ画像の量子化を制御する。これにより、全体の発生符号量の増大を抑制することが可能となる。
As described above, according to the first embodiment, the
なお、上の説明においては、サブ画像はメイン画像のサイズを縮小することにより生成されるものとした。しかしながら、本実施形態のサブ画像はメイン画像の縮小画像に限定されず、メイン画像に基づいて生成された任意の種類の画像をサブ画像として使用することができる。 In the above description, the sub image is generated by reducing the size of the main image. However, the sub-image of the present embodiment is not limited to the reduced image of the main image, and any type of image generated based on the main image can be used as the sub-image.
また、上の説明においては、目標画質に基づいてメイン画像(一方の画像)の量子化を制御し、目標符号量に基づいてサブ画像(他方の画像)の量子化を制御するものとしたが、メイン画像とサブ画像の関係は逆であってもよい。即ち、目標画質に基づいてサブ画像の量子化を制御し、目標符号量に基づいてメイン画像の量子化を制御するように撮像装置100を構成してもよい。
In the above description, the quantization of the main image (one image) is controlled based on the target image quality, and the quantization of the sub image (the other image) is controlled based on the target code amount. The relationship between the main image and the sub image may be reversed. That is, the
また、上の説明においては、目標符号量に基づく量子化制御の例として、サブ画像の発生符号量が目標符号量を超えないように制御する構成を挙げた。しかしながら、目標符号量に基づく量子化制御はこれに限定されず、目標符号量を任意の観点で考慮した任意の量子化制御を、本実施形態における目標符号量に基づく量子化制御として採用することができる。例えば、撮像装置100は、サブ画像の発生符号量が目標符号量の近傍になるように量子化制御を行ってもよい。
Further, in the above description, as an example of quantization control based on the target code amount, a configuration has been described in which the generated code amount of the sub image is controlled not to exceed the target code amount. However, the quantization control based on the target code amount is not limited to this, and any quantization control in which the target code amount is considered from any point of view is adopted as the quantization control based on the target code amount in this embodiment. Can. For example, the
[第2の実施形態]
第2の実施形態では、メイン画像の発生符号量に基づいてサブ画像の目標符号量を決定する構成について説明する。本実施形態において、撮像装置100の基本的な構成は第1の実施形態と同様である(図1参照)。以下、主に第1の実施形態と異なる点について説明する。
Second Embodiment
In the second embodiment, a configuration will be described in which the target code amount of the sub image is determined based on the generated code amount of the main image. In the present embodiment, the basic configuration of the
図3のS301で、量子化制御部109は、符号化方式設定部113からサブ画像の目標符号量を取得する代わりに、メイン画像とサブ画像を合わせた合計目標符号量を取得する。合計目標符号量は、例えば、必要とする性能に応じて予め決定される。例えば、連写性能等の制約などから符号化の処理時間が決められている場合に、その処理時間に間にあうような所定の符号量が合計目標符号量として用いられる。
In S301 of FIG. 3, instead of acquiring the target code amount of the sub image from the encoding
図3のS304で、可変長符号化部110は、メイン画像に対して可変長符号化を行った後に、メイン画像全体の発生符号量を量子化制御部109に通知する。その後、量子化制御部109は、下記の式(1)に従って合計目標符号量からメイン画像全体の発生符号量を減じることにより、サブ画像の目標符号量を決定する。
Sub_Target_Pic = Total_Target_Pic − Main_Pic ・・・(1)
ここで、Sub_Target_Picはサブ画像の目標符号量、Total_Target_Picは合計目標符号量、Main_Picはメイン画像全体の発生符号量を示す。
In S304 of FIG. 3, after performing variable-length coding on the main image, the variable-
Sub_Target_Pic = Total_Target_Pic-Main_Pic (1)
Here, Sub_Target_Pic indicates the target code amount of the sub image, Total_Target_Pic indicates the total target code amount, and Main_Pic indicates the generated code amount of the entire main image.
図3のその他の処理は、第1の実施形態と同様である。本実施形態の符号化処理によれば、メイン画像とサブ画像の合計の発生符号量が合計目標符号量(Total_Target_Pic)に収まるようにサブ画像の発生符号量が制御される。これにより、全体の発生符号量の増大を抑制することが可能となる。また、CABACの場合に、発生符号量の増大に伴う性能低下を抑制することが可能となる。 The other processes in FIG. 3 are the same as in the first embodiment. According to the encoding process of this embodiment, the generated code amount of the sub image is controlled such that the generated code amount of the sum of the main image and the sub image falls within the total target code amount (Total_Target_Pic). This makes it possible to suppress an increase in the overall generated code amount. In addition, in the case of CABAC, it becomes possible to suppress the performance deterioration associated with the increase in the generated code amount.
図4は、第2の実施形態における発生符号量の概念図である。メイン画像の符号化終了時に、メイン画像の発生符号量401が量子化制御部109に通知される。量子化制御部109は、上述の式(1)に従って、合計目標符号量(Total_Target_Pic)からメイン画像の発生符号量401を減じることにより、サブ画像の目標符号量(Sub_Target_Pic)を決定する。そして、量子化制御部109は、サブ画像の発生符号量402がサブ画像の目標符号量(Sub_Target_Pic)に収まるように、サブ画像の量子化制御を行う。その結果、メイン画像の発生符号量401とサブ画像の発生符号量402の合計が、合計目標符号量(Total_Target_Pic)に収まる。
FIG. 4 is a conceptual diagram of generated code amounts in the second embodiment. At the end of encoding of the main image, the generated
以上説明したように、第2の実施形態によれば、撮像装置100は、メイン画像の発生符号量に基づいてサブ画像の目標符号量を決定する。これにより、全体の発生符号量の増大を抑制することが可能となる。
As described above, according to the second embodiment, the
[その他の実施形態]
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
Other Embodiments
The present invention supplies a program that implements one or more functions of the above-described embodiments to a system or apparatus via a network or storage medium, and one or more processors in a computer of the system or apparatus read and execute the program. Can also be realized. It can also be implemented by a circuit (eg, an ASIC) that implements one or more functions.
100…撮像装置、105…縮小処理部、107…直交変換部、108…量子化部、109…量子化制御部、110…可変長符号化部、111…ストリームバッファ、113…符号化方式設定部、118…多重化部、119…記録メディア 100: imaging device, 105: reduction processing unit, 107: orthogonal transform unit, 108: quantization unit, 109: quantization control unit, 110: variable length coding unit, 111: stream buffer, 113: coding scheme setting unit , 118 ... multiplexing unit, 119 ... recording medium
Claims (13)
目標画質に基づいて前記第1の画像の前記量子化を制御し、目標符号量に基づいて前記第2の画像の前記量子化を制御する制御手段と、
を備えることを特徴とする画像符号化装置。 Encoding means for performing encoding processing involving quantization on a first image and a second image, wherein one of the first image and the second image is the first image and the second image. Encoding means, which is an image generated based on the other of the second images;
Control means for controlling the quantization of the first image based on a target image quality and controlling the quantization of the second image based on a target code amount;
An image coding apparatus comprising:
ことを特徴とする請求項1に記載の画像符号化装置。 The image coding apparatus according to claim 1, further comprising a determination unit that determines the target code amount based on a code amount of the first image generated by the encoding process.
ことを特徴とする請求項2に記載の画像符号化装置。 The image coding apparatus according to claim 2, wherein the determination means uses a value obtained by subtracting the code amount of the first image from a predetermined code amount as the target code amount.
ことを特徴とする請求項1乃至3のいずれか1項に記載の画像符号化装置。 The control means controls the quantization of the first image so that a constant quantization value is used in the entire screen of the first image. The image coding apparatus as described in a term.
ことを特徴とする請求項1乃至4のいずれか1項に記載の画像符号化装置。 The control means controls the quantization of the second image such that the code amount of the second image generated by the encoding process does not exceed the target code amount. The image coding apparatus according to any one of items 1 to 4.
ことを特徴とする請求項1乃至5のいずれか1項に記載の画像符号化装置。 The image according to any one of claims 1 to 5, further comprising recording means for correlating and recording the first image and the second image subjected to the encoding process. Encoding device.
ことを特徴とする請求項6に記載の画像符号化装置。 The image coding apparatus according to claim 6, wherein the recording unit records the first image and the second image subjected to the coding process as one file.
ことを特徴とする請求項1乃至7のいずれか1項に記載の画像符号化装置。 The image coding apparatus according to any one of claims 1 to 7, wherein the second image is an image generated based on the first image.
ことを特徴とする請求項8に記載の画像符号化装置。 The image coding apparatus according to claim 8, wherein the second image is an image generated by reducing the size of the first image.
ことを特徴とする請求項1乃至9のいずれか1項に記載の画像符号化装置。 The image coding apparatus according to any one of claims 1 to 9, wherein the coding process includes context-based adaptive binary arithmetic coding (CABAC).
前記第1の画像及び前記第2の画像のうちの前記他方を生成する撮像手段と、
前記第1の画像及び前記第2の画像のうちの前記他方に基づいて前記第1の画像及び前記第2の画像のうちの前記一方を生成する生成手段と、
を備えることを特徴とする撮像装置。 An image coding apparatus according to any one of claims 1 to 10.
Imaging means for generating the other of the first image and the second image;
Generation means for generating the one of the first image and the second image based on the other of the first image and the second image;
An imaging apparatus comprising:
第1の画像及び第2の画像に対して量子化を伴う符号化処理を行う符号化工程であって、前記第1の画像及び前記第2の画像のうちの一方は前記第1の画像及び前記第2の画像のうちの他方に基づいて生成された画像である、符号化工程と、
目標画質に基づいて前記第1の画像の前記量子化を制御し、目標符号量に基づいて前記第2の画像の前記量子化を制御する制御工程と、
を備えることを特徴とする画像符号化方法。 An image coding method performed by an image coding apparatus, comprising:
An encoding process for performing encoding with quantization on a first image and a second image, wherein one of the first image and the second image is the first image and the second image. An encoding step, which is an image generated based on the other of the second images;
A control step of controlling the quantization of the first image based on a target image quality and controlling the quantization of the second image based on a target code amount;
An image coding method comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017224855A JP2019097030A (en) | 2017-11-22 | 2017-11-22 | Image coding apparatus, imaging apparatus, image coding method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017224855A JP2019097030A (en) | 2017-11-22 | 2017-11-22 | Image coding apparatus, imaging apparatus, image coding method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2019097030A true JP2019097030A (en) | 2019-06-20 |
Family
ID=66972088
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017224855A Pending JP2019097030A (en) | 2017-11-22 | 2017-11-22 | Image coding apparatus, imaging apparatus, image coding method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2019097030A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11215498A (en) * | 1998-01-27 | 1999-08-06 | Canon Inc | Image processor, image processing method and program storage medium thereof |
JP2001169280A (en) * | 1999-12-09 | 2001-06-22 | Sharp Corp | Image compression device, image compression method and storage medium |
JP2002374533A (en) * | 2001-06-13 | 2002-12-26 | Fuji Xerox Co Ltd | Image coder, image decoder and method therefor |
JP2007081595A (en) * | 2005-09-13 | 2007-03-29 | Fuji Xerox Co Ltd | Encoder, decoder, encoding method, decoding method and their program |
JP2012080551A (en) * | 2001-09-14 | 2012-04-19 | Nokia Corp | Method and system for context-based adaptive binary arithmetic coding |
-
2017
- 2017-11-22 JP JP2017224855A patent/JP2019097030A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11215498A (en) * | 1998-01-27 | 1999-08-06 | Canon Inc | Image processor, image processing method and program storage medium thereof |
JP2001169280A (en) * | 1999-12-09 | 2001-06-22 | Sharp Corp | Image compression device, image compression method and storage medium |
JP2002374533A (en) * | 2001-06-13 | 2002-12-26 | Fuji Xerox Co Ltd | Image coder, image decoder and method therefor |
JP2012080551A (en) * | 2001-09-14 | 2012-04-19 | Nokia Corp | Method and system for context-based adaptive binary arithmetic coding |
JP2007081595A (en) * | 2005-09-13 | 2007-03-29 | Fuji Xerox Co Ltd | Encoder, decoder, encoding method, decoding method and their program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101298389B1 (en) | Method and system for video coder and decoder joint optimization | |
JP4799477B2 (en) | Image coding apparatus and image coding method | |
JPWO2009078150A1 (en) | Moving picture coding apparatus, method, program, and integrated circuit | |
JP7357736B2 (en) | Encoding device, decoding device, and program | |
JP4574444B2 (en) | Image decoding apparatus and method, image encoding apparatus and method, computer program, and storage medium | |
JP2024015184A (en) | Image decoding device and method, and program | |
JP6077811B2 (en) | Image coding apparatus, image coding method, and program | |
JP6985546B2 (en) | Image decoder, image decoding method and program | |
JP6906324B2 (en) | Coding device, coding method, and program | |
JP2014007469A (en) | Image coding device and image coding method | |
US20230122782A1 (en) | Image encoding apparatus, image encoding method, image decoding apparatus, image decoding method, and non-transitory computer-readable storage medium | |
JP2010050911A (en) | Encoding apparatus | |
JP7030246B2 (en) | Intra predictor, image decoder, and program | |
JP2022093657A (en) | Encoding device, decoding device, and program | |
US8306110B2 (en) | Moving image coding apparatus and method using copy pictures depending on virtual buffer verifier occupancy | |
JP2019097030A (en) | Image coding apparatus, imaging apparatus, image coding method, and program | |
JP2018032909A (en) | Image coding device, control method therefor, imaging apparatus and program | |
JP2008193501A (en) | Image encoding device and image encoding method | |
WO2017104010A1 (en) | Moving-image coding apparatus and moving-image coding method | |
JP7431549B2 (en) | Encoding device, imaging device, control method, and program | |
JP2014003587A (en) | Image encoder and encoding method | |
JP2019161411A (en) | Image encoding device, image decoding device, control method thereof, and program | |
US20220377354A1 (en) | Image encoding method and image decoding method | |
US20230007311A1 (en) | Image encoding device, image encoding method and storage medium, image decoding device, and image decoding method and storage medium | |
JP6018012B2 (en) | Image encoding method, image decoding method, image encoding device, image decoding device, program thereof, and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20201009 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20210103 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210113 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210715 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210730 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20220204 |