Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6574148B2 - Transcoding system, transcoding method, computer-readable recording medium, and encoding apparatus - Google Patents
[go: Go Back, main page]

JP6574148B2 - Transcoding system, transcoding method, computer-readable recording medium, and encoding apparatus - Google Patents

Transcoding system, transcoding method, computer-readable recording medium, and encoding apparatus Download PDF

Info

Publication number
JP6574148B2
JP6574148B2 JP2016138864A JP2016138864A JP6574148B2 JP 6574148 B2 JP6574148 B2 JP 6574148B2 JP 2016138864 A JP2016138864 A JP 2016138864A JP 2016138864 A JP2016138864 A JP 2016138864A JP 6574148 B2 JP6574148 B2 JP 6574148B2
Authority
JP
Japan
Prior art keywords
unit
acquired
block
motion vector
encoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2016138864A
Other languages
Japanese (ja)
Other versions
JP2018011194A (en
Inventor
圭 河村
圭 河村
佳隆 木谷
佳隆 木谷
内藤 整
整 内藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
KDDI Corp
Original Assignee
KDDI 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 KDDI Corp filed Critical KDDI Corp
Priority to JP2016138864A priority Critical patent/JP6574148B2/en
Publication of JP2018011194A publication Critical patent/JP2018011194A/en
Application granted granted Critical
Publication of JP6574148B2 publication Critical patent/JP6574148B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

本発明は、トランスコードシステム、トランスコード方法、コンピュータ可読記録媒体、復号装置および符号化装置に関する。   The present invention relates to a transcoding system, a transcoding method, a computer-readable recording medium, a decoding device, and an encoding device.

イントラ予測(フレーム内予測)またはインター予測(フレーム間予測)と、残差変換と、エントロピー符号化とを用いた動画像符号化方式が提案されている。そのような動画像符号化により生成される動画像のビットストリームから設定の異なる動画像のビットストリームを生成することをトランスコードと呼ぶ。例えば、解像度は同一のままビットレートのみを削減する場合や、解像度を縮小した映像を生成する場合にトランスコードが利用される。   A moving picture coding scheme using intra prediction (intraframe prediction) or inter prediction (interframe prediction), residual conversion, and entropy coding has been proposed. Generating moving image bitstreams having different settings from moving image bitstreams generated by such moving image encoding is called transcoding. For example, transcoding is used when reducing only the bit rate while maintaining the same resolution, or when generating a video with reduced resolution.

非特許文献1には、MPEG−2に準拠したトランスコードに関して、再量子化に用いる量子化パラメータを制限することで、量子化ノイズを抑制する方式が開示されている。   Non-Patent Document 1 discloses a method for suppressing quantization noise by limiting quantization parameters used for re-quantization with respect to transcoding conforming to MPEG-2.

「削減符号量による歪み増加特性を考慮したMPEG-2ビデオトランスコーダ再量子化符号量制御方式に関する基礎検討」、永吉 功ほか、映像情報メディア学会誌、Vol. 55 (2001) No. 12、2001“Basic study on MPEG-2 video transcoder re-quantization code amount control method considering distortion increase characteristics due to reduced code amount”, Isao Nagayoshi et al., Journal of the Institute of Image Information and Television Engineers, Vol. 55 (2001) No. 12, 2001

しかしながら、非特許文献1に記載されるようなMPEG−2を入力ビットストリームとする手法では、デブロッキングフィルタによる平滑化が考慮されていない。したがって、再量子化における強すぎる制約による性能の低下が懸念される。   However, in the method of using MPEG-2 as an input bit stream as described in Non-Patent Document 1, smoothing by a deblocking filter is not considered. Therefore, there is a concern about performance degradation due to too strong restrictions in requantization.

本発明はこうした課題に鑑みてなされたものであり、その目的は、トランスコードにおける処理量の低減とトランスコードによる画質劣化の抑制とを両立できる技術の提供にある。   The present invention has been made in view of these problems, and an object of the present invention is to provide a technique that can achieve both reduction in the amount of processing in transcoding and suppression of image quality deterioration due to transcoding.

本発明のある態様は、トランスコードシステムに関する。このトランスコードシステムは、動画像のビットストリームを取得する第1取得手段と、取得されたビットストリームとは設定の異なる新たなビットストリームを出力する出力手段と、取得されたビットストリームをエントロピー復号する復号手段と、エントロピー復号の結果から、ブロックごとに、動きベクトルと誤差信号の量と動きベクトルの圧縮モードとを取得する第2取得手段と、取得された誤差信号の量に基づいて、新たなビットストリームの生成の際、対応する符号化対象のブロックに対して、取得された動きベクトルを適用するか否かを判定する第1判定手段と、取得された圧縮モードに基づいて、新たなビットストリームの生成の際、符号化対象のブロックに対して取得された圧縮モードを適用するか否かを判定する第2判定手段と、を備える。 One embodiment of the present invention relates to a transcoding system. The transcoding system includes a first acquisition unit that acquires a bit stream of a moving image, an output unit that outputs a new bit stream having a setting different from that of the acquired bit stream, and entropy-decodes the acquired bit stream. Based on the result of the entropy decoding, the decoding means, the second acquisition means for acquiring the motion vector, the amount of the error signal, and the compression mode of the motion vector for each block, based on the acquired amount of the error signal, a new When generating a bitstream, a first determination unit that determines whether or not to apply the acquired motion vector to the corresponding block to be encoded, and a new bit based on the acquired compression mode When generating a stream, a second judgment is made to determine whether or not to apply the acquired compression mode to the encoding target block. And means, the.

なお、以上の構成要素の任意の組み合わせや、本発明の構成要素や表現を装置、方法、システム、コンピュータプログラム、コンピュータプログラムを格納した記録媒体などの間で相互に置換したものもまた、本発明の態様として有効である。   It should be noted that any combination of the above-described constituent elements, or those obtained by replacing the constituent elements and expressions of the present invention with each other between apparatuses, methods, systems, computer programs, recording media storing computer programs, and the like are also included in the present invention. It is effective as an embodiment of

本発明によれば、トランスコードにおける処理量の低減とトランスコードによる画質劣化の抑制とを両立できる。   According to the present invention, it is possible to reduce both the amount of processing in transcoding and the suppression of image quality deterioration due to transcoding.

実施の形態に係るトランスコード装置を備えるケーブルテレビシステムの構成を示す模式図である。It is a schematic diagram which shows the structure of a cable television system provided with the transcoding apparatus which concerns on embodiment. 図1のトランスコード装置の機能および構成を示すブロック図である。It is a block diagram which shows the function and structure of the transcoding apparatus of FIG. 図2の第1インター予測部の機能および構成を示すブロック図である。It is a block diagram which shows the function and structure of the 1st inter estimation part of FIG. 図2の第2インター予測部の機能および構成を示すブロック図である。It is a block diagram which shows the function and structure of the 2nd inter estimation part of FIG. 図2の符号化制御部における一連の処理を示すフローチャートである。It is a flowchart which shows a series of processes in the encoding control part of FIG. 変形例に係るトランスコードシステムの構成を示す模式図である。It is a schematic diagram which shows the structure of the transcoding system which concerns on a modification.

以下、各図面に示される同一または同等の構成要素、部材、処理には、同一の符号を付するものとし、適宜重複した説明は省略する。また、各図面において説明上重要ではない部材の一部は省略して表示する。   Hereinafter, the same or equivalent components, members, and processes shown in the drawings are denoted by the same reference numerals, and repeated description is appropriately omitted. In addition, in the drawings, some of the members that are not important for explanation are omitted.

実施の形態に係るトランスコード装置は、入力されたビットストリームの復号結果から、動きベクトル(Motion Vector, MV)と誤差(残差)信号の有無と符号化単位の復号量子化値とを抽出する。トランスコード装置は、誤差信号の無いブロックについては抽出された動きベクトルと同じ動きベクトルを符号化部に送ると共に誤差信号を送らない。また、トランスコード装置は、入力解像度と出力解像度との違いから補正値QPoffsetを導出する。トランスコード装置は、符号化単位に適用する符号化量子化値を、復号量子化値にQPoffsetを加算して得られる値以上に設定する。この結果、入力ビットストリームに含まれる符号化ノイズ自体の符号化を低減または除去しつつ、動きベクトルを再利用することでトランスコード装置における処理量を低減できる。   The transcoding device according to the embodiment extracts a motion vector (Motion Vector, MV), the presence / absence of an error (residual) signal, and a decoded quantization value of a coding unit from an input bitstream decoding result. . The transcoding device sends the same motion vector as the extracted motion vector to the encoding unit and does not send an error signal for a block having no error signal. Further, the transcoding device derives a correction value QPoffset from the difference between the input resolution and the output resolution. The transcoding device sets the coded quantization value applied to the coding unit to be equal to or greater than the value obtained by adding QPoffset to the decoded quantization value. As a result, it is possible to reduce the amount of processing in the transcoding device by reusing motion vectors while reducing or eliminating the encoding noise itself included in the input bitstream.

図1は、実施の形態に係るトランスコード装置100を備えるケーブルテレビシステム10の構成を示す模式図である。ケーブルテレビシステム10は、放送事業者サーバ12と、センター設備14と、ケーブルネットワーク16と、エンドユーザ18と、を備える。放送事業者サーバ12は放送事業者により運営され、比較的高解像度または高ビットレートの動画像を有線または無線によりセンター設備14に提供する。センター設備14は放送事業者サーバ12およびケーブルネットワーク16と接続される。センター設備14は、実施の形態に係るトランスコード装置100を備える。センター設備14は放送事業者サーバ12から動画像を取得し、取得された動画像の設定すなわち解像度やビットレートを、トランスコード装置100を利用してケーブルネットワーク16の仕様に合うよう変更する。センター設備14は、トランスコードの結果得られた動画像をケーブルネットワーク16に送信する。複数のエンドユーザ18のそれぞれはケーブルネットワーク16と接続され、ケーブルネットワーク16から取得された動画像をセットトップボックスや他の復号装置を使用して再生する。例えば、放送事業者サーバ12が送信する動画像の解像度は4K、ビットレートは35Mbpsであり、センター設備14からケーブルネットワーク16に送信される動画像の解像度はHD(High Definition)、ビットレートは10Mbpsである。   FIG. 1 is a schematic diagram illustrating a configuration of a cable television system 10 including a transcoding device 100 according to an embodiment. The cable television system 10 includes a broadcaster server 12, a center facility 14, a cable network 16, and an end user 18. The broadcaster server 12 is operated by a broadcaster and provides a relatively high resolution or high bit rate moving image to the center facility 14 by wire or wirelessly. The center facility 14 is connected to the broadcaster server 12 and the cable network 16. The center facility 14 includes the transcoding device 100 according to the embodiment. The center facility 14 acquires a moving image from the broadcast provider server 12, and changes the settings of the acquired moving image, that is, the resolution and the bit rate so as to meet the specifications of the cable network 16 using the transcoding device 100. The center facility 14 transmits the moving image obtained as a result of transcoding to the cable network 16. Each of the plurality of end users 18 is connected to the cable network 16 and reproduces a moving image acquired from the cable network 16 using a set-top box or another decoding device. For example, the resolution of the moving image transmitted by the broadcast provider server 12 is 4K and the bit rate is 35 Mbps, the resolution of the moving image transmitted from the center facility 14 to the cable network 16 is HD (High Definition), and the bit rate is 10 Mbps. It is.

なお、ケーブルテレビシステム10は一例であり、実施の形態に係るトランスコード装置100は動画像の復号およびそれに続く符号化を含む任意のシステムやサービスに適用可能である。そのようなシステムやサービスでは、ケーブルネットワーク16の代わりにインターネットや電話網などが用いられてもよい。   The cable television system 10 is an example, and the transcoding device 100 according to the embodiment can be applied to any system or service including decoding of a moving image and subsequent encoding. In such a system or service, the Internet, a telephone network, or the like may be used instead of the cable network 16.

より具体的には、放送事業者サーバ12は動画像を符号化して入力ビットストリームBSIを生成する。トランスコード装置100は放送事業者サーバ12から入力ビットストリームBSIを取得し、取得された入力ビットストリームBSIを復号し、設定を変えて符号化することで出力ビットストリームBSTを生成する。トランスコード装置100は生成された出力ビットストリームBSTをケーブルネットワーク16に出力する。エンドユーザ18はケーブルネットワーク16から出力ビットストリームBSTを取得し、それを復号する。入力ビットストリームBSI、出力ビットストリームBSTはいずれもHEVC(High Efficiency Video Coding)に準拠した構造を有する。   More specifically, the broadcaster server 12 encodes a moving image to generate an input bit stream BSI. The transcoding device 100 acquires the input bit stream BSI from the broadcaster server 12, decodes the acquired input bit stream BSI, and encodes it with different settings to generate an output bit stream BST. The transcoding device 100 outputs the generated output bit stream BST to the cable network 16. The end user 18 obtains the output bit stream BST from the cable network 16 and decodes it. Both the input bit stream BSI and the output bit stream BST have a structure compliant with HEVC (High Efficiency Video Coding).

図2は、図1のトランスコード装置100の機能および構成を示すブロック図である。図2および以降のブロック図に示す各ブロックは、ハードウエア的には、コンピュータのCPUをはじめとする素子や機械装置で実現でき、ソフトウエア的にはコンピュータプログラム等によって実現されるが、ここでは、それらの連携によって実現される機能ブロックを描いている。したがって、これらの機能ブロックはハードウエア、ソフトウエアの組合せによっていろいろなかたちで実現できることは、本明細書に触れた当業者には理解される。   FIG. 2 is a block diagram showing the function and configuration of the transcoding device 100 of FIG. Each block shown in FIG. 2 and the subsequent block diagrams can be realized in hardware by an element such as a CPU of a computer or a mechanical device, and can be realized by a computer program or the like in software. , Depicts functional blocks realized by their cooperation. Therefore, those skilled in the art who have touched this specification will understand that these functional blocks can be realized in various forms by a combination of hardware and software.

トランスコード装置100は、復号部102と、符号化部104と、動き処理部106と、解像度変換部146と、を備える。復号部102は、入力ビットストリームBSIを取得し、取得された入力ビットストリームBSIを復号して動画像を再構成し、再構成動画像を解像度変換部146に出力する。解像度変換部146は、公知の解像度変換技術を使用して再構成動画像の解像度を変換する。解像度変換部146は、解像度が変換された再構成動画像を符号化部104に出力する。符号化部104は、再構成動画像を取得し、取得された再構成動画像を符号化することで新たなビットストリームである出力ビットストリームBSTを生成し、生成された出力ビットストリームBSTをケーブルネットワーク16へ出力する。   The transcoding device 100 includes a decoding unit 102, an encoding unit 104, a motion processing unit 106, and a resolution conversion unit 146. The decoding unit 102 acquires the input bitstream BSI, decodes the acquired input bitstream BSI, reconstructs a moving image, and outputs the reconstructed moving image to the resolution conversion unit 146. The resolution conversion unit 146 converts the resolution of the reconstructed moving image using a known resolution conversion technique. The resolution conversion unit 146 outputs the reconstructed moving image whose resolution has been converted to the encoding unit 104. The encoding unit 104 acquires a reconstructed moving image, encodes the acquired reconstructed moving image to generate an output bitstream BST that is a new bitstream, and connects the generated output bitstream BST to a cable. Output to the network 16.

動き処理部106は、復号部102における入力ビットストリームBSIのパース処理の結果から、動きベクトルの再利用に関する情報を取得する。動き処理部106は、取得された情報に基づいて、動きベクトルを再利用しても画質が担保される場合には動きベクトルを再利用して動き探索をスキップするよう、符号化部104に作用する。動き処理部106はまた、後述のパース処理の結果から得られる復号量子化値と解像度変換部146における入出力間の解像度比とに基づいて、符号化部104における量子化の符号化量子化値を制御する。   The motion processing unit 106 acquires information on the reuse of motion vectors from the result of the parsing processing of the input bitstream BSI in the decoding unit 102. Based on the acquired information, the motion processing unit 106 acts on the encoding unit 104 to reuse the motion vector and skip the motion search when the image quality is ensured even when the motion vector is reused. To do. The motion processing unit 106 also performs the coded quantization value of the quantization in the coding unit 104 based on the decoded quantization value obtained from the result of the parsing process described later and the resolution ratio between input and output in the resolution conversion unit 146. To control.

復号部102は、エントロピー復号部108と、第1フレームバッファ110と、第1インループフィルタ112と、第1逆量子化・逆変換部114と、第1インター予測部116と、第1イントラ予測部118と、第1加算部120と、を含む。   The decoding unit 102 includes an entropy decoding unit 108, a first frame buffer 110, a first in-loop filter 112, a first inverse quantization / inverse transform unit 114, a first inter prediction unit 116, and a first intra prediction. Part 118 and a first addition part 120.

エントロピー復号部108は入力ビットストリームBSIを受信し、受信した入力ビットストリームBSIをエントロピー復号し、レベル値とサイド情報とを取り出す。なお、ビットストリームからサイド情報およびレベル値を得る処理はパース(parse)処理と称される。このようにして得られたサイド情報およびレベル値を用いて画素値を再構成することは、復号処理と称される。   The entropy decoding unit 108 receives the input bit stream BSI, entropy decodes the received input bit stream BSI, and extracts a level value and side information. Note that the process of obtaining side information and level values from the bitstream is referred to as a parse process. Reconstructing the pixel value using the side information and the level value obtained in this way is called a decoding process.

入力ビットストリームBSIが表す動画像のフレームは複数のブロックに分割されている。ブロックのサイズは様々であり、複数のブロックは四分木構造を有する。本実施の形態におけるフレームのブロックへの分割は、HEVCにおけるブロック分割に準じる。すなわち、もっとも大きな処理サイズであるCTU(Coding Tree Unit)のサイズは64×64であり、これを繰り返し四分割した32×32、16×16、8×8のサイズが存在する。   A moving image frame represented by the input bitstream BSI is divided into a plurality of blocks. The block sizes vary, and the plurality of blocks have a quadtree structure. The division of the frame into blocks in the present embodiment is in accordance with the block division in HEVC. That is, the size of CTU (Coding Tree Unit), which is the largest processing size, is 64 × 64, and there are 32 × 32, 16 × 16, and 8 × 8 sizes obtained by repeatedly dividing this into four.

サイド情報は、復号部102やエンドユーザ18に設けられた復号装置において使用される、画素値の再構成に必要な情報であり、イントラ予測またはインター予測の何れを使用したかを示す予測モード、動き情報、量子化値、ブロックサイズ等の関連情報を含む。   Side information is information necessary for reconstruction of pixel values used in a decoding device provided in the decoding unit 102 or the end user 18, and a prediction mode indicating whether intra prediction or inter prediction is used, It includes related information such as motion information, quantized values, and block size.

伝送時の符号量を低減するため、インター予測で用いられる動きベクトルは基本的に圧縮されて伝送される。動きベクトルの圧縮モードには少なくともマージモードと高度予測モードとの2つがある。   In order to reduce the amount of codes during transmission, motion vectors used in inter prediction are basically compressed and transmitted. There are at least two motion vector compression modes, a merge mode and an advanced prediction mode.

マージモードでは、処理対象ブロックの周囲にあるいくつかの符号化済みブロックの動きベクトルを候補とし、候補からマージ先としてひとつの動きベクトルを選択し、選択された動きベクトルを再利用することで処理対象ブロックの動きベクトルを生成する。この場合、動き情報は、符号化のインター予測でマージ先として選択された動きベクトル候補の識別子であるマージ識別子と参照フレーム識別子との組を含む。
高度予測モードでは、処理対象ブロックの周囲にあるいくつかの符号化済みブロックの動きベクトルを候補とし、候補から予測動きベクトルを選択し、選択された予測動きベクトルに差分動きベクトルを加算することにより、処理対象ブロックの動きベクトルを生成する。この場合、動き情報は、符号化のインター予測で予測動きベクトルとして選択された動きベクトル候補の識別子である予測識別子と差分動きベクトルと参照フレーム識別子との組を含む。
In merge mode, processing is performed by selecting motion vectors of several encoded blocks around the block to be processed as candidates, selecting one motion vector as a merge destination from the candidates, and reusing the selected motion vector. A motion vector of the target block is generated. In this case, the motion information includes a set of a merge identifier and a reference frame identifier that are identifiers of motion vector candidates selected as a merge destination in the inter prediction of encoding.
In the advanced prediction mode, motion vectors of several encoded blocks around the processing target block are used as candidates, a prediction motion vector is selected from the candidates, and a difference motion vector is added to the selected prediction motion vector. Then, a motion vector of the processing target block is generated. In this case, the motion information includes a set of a prediction identifier, a difference motion vector, and a reference frame identifier that are identifiers of motion vector candidates selected as prediction motion vectors in the inter prediction of encoding.

第1逆量子化・逆変換部114は、エントロピー復号部108におけるパース処理の結果得られるレベル値をブロックごとに逆量子化および逆変換して誤差信号を生成する。第1加算部120は、復号対象のブロックがイントラ予測されたものであるかインター予測されたものであるかに応じて、第1インター予測部116または第1イントラ予測部118のいずれか一方が出力する復号対象のブロックの予測画像と第1逆量子化・逆変換部114によって生成された復号対象のブロックの誤差信号とを加算し、復号対象のブロックを再生する。第1加算部120は、再生された復号対象のブロックを第1イントラ予測部118と第1インループフィルタ112とに出力する。   The first inverse quantization / inverse transform unit 114 generates an error signal by performing inverse quantization and inverse transform on the level value obtained as a result of the parsing process in the entropy decoding unit 108 for each block. The first addition unit 120 determines whether either the first inter prediction unit 116 or the first intra prediction unit 118 depends on whether the block to be decoded is intra-predicted or inter-predicted. The prediction image of the decoding target block to be output and the error signal of the decoding target block generated by the first inverse quantization / inverse transform unit 114 are added to reproduce the decoding target block. The first addition unit 120 outputs the reproduced block to be decoded to the first intra prediction unit 118 and the first in-loop filter 112.

第1インター予測部116には、第1フレームバッファ110から復号対象のブロックの参照フレームが入力される。第1インター予測部116は、参照フレームに基づくフレーム間予測により復号対象のブロックの予測画像を生成し、出力する。第1イントラ予測部118は、復号対象のブロックが属するフレームの既に再生されたブロックを使用してフレーム内予測を行い、復号対象のブロックの予測画像を生成し、出力する。第1インループフィルタ112は例えばデブロックフィルタである。第1インループフィルタ112は、フレームに対応する局所復号画像を生成して第1フレームバッファ110に出力する。この局所復号画像は、第1インター予測部116におけるフレーム間予測に使用されると同時に、再構成動画像のフレームとして解像度変換部146に出力される。   The first inter prediction unit 116 receives the reference frame of the block to be decoded from the first frame buffer 110. The first inter prediction unit 116 generates and outputs a predicted image of the decoding target block by inter-frame prediction based on the reference frame. The first intra prediction unit 118 performs intra-frame prediction using the already reproduced block of the frame to which the decoding target block belongs, and generates and outputs a predicted image of the decoding target block. The first in-loop filter 112 is a deblock filter, for example. The first in-loop filter 112 generates a locally decoded image corresponding to the frame and outputs it to the first frame buffer 110. This locally decoded image is used for inter-frame prediction in the first inter prediction unit 116, and at the same time, is output to the resolution conversion unit 146 as a frame of a reconstructed moving image.

図3は、第1インター予測部116の機能および構成を示すブロック図である。第1インター予測部116は、MV復元部302と、MVバッファ304と、予測画像生成部306と、を含む。MV復元部302は、エントロピー復号部108から復号対象のブロックの動き情報を取得し、取得された動き情報に基づいて復号対象のブロックの動きベクトルを復元する。MV復元部302は、復元された動きベクトルと取得された動き情報に含まれる参照フレーム識別子とを復号対象のブロックに対応付けてMVバッファ304に登録すると共に、予測画像生成部306に渡す。   FIG. 3 is a block diagram illustrating the function and configuration of the first inter prediction unit 116. The first inter prediction unit 116 includes an MV restoration unit 302, an MV buffer 304, and a predicted image generation unit 306. The MV restoration unit 302 acquires the motion information of the block to be decoded from the entropy decoding unit 108, and restores the motion vector of the block to be decoded based on the acquired motion information. The MV restoration unit 302 registers the restored motion vector and the reference frame identifier included in the acquired motion information in association with the block to be decoded in the MV buffer 304 and passes it to the predicted image generation unit 306.

MV復元部302は、マージモードの場合、MVバッファ304を参照し、動き情報に含まれるマージ識別子によって特定される動きベクトル候補を特定する。MV復元部302は、特定された動きベクトル候補を再利用することで復号対象のブロックの動きベクトルを生成する。MV復元部302は、生成された動きベクトルと動き情報に含まれる参照フレーム識別子とをMVバッファ304および予測画像生成部306に出力する。
MV復元部302は、高度予測モードの場合、MVバッファ304を参照し、動き情報に含まれる予測識別子によって特定される動きベクトル候補を特定する。MV復元部302は、特定された動きベクトル候補と動き情報に含まれる差分動きベクトルとを加算することで復号対象のブロックの動きベクトルを生成する。MV復元部302は、生成された動きベクトルと動き情報に含まれる参照フレーム識別子とをMVバッファ304および予測画像生成部306に出力する。
In the merge mode, the MV restoration unit 302 refers to the MV buffer 304 and specifies a motion vector candidate specified by the merge identifier included in the motion information. The MV restoration unit 302 generates a motion vector of a decoding target block by reusing the identified motion vector candidates. The MV restoration unit 302 outputs the generated motion vector and the reference frame identifier included in the motion information to the MV buffer 304 and the predicted image generation unit 306.
In the case of the advanced prediction mode, the MV restoration unit 302 refers to the MV buffer 304 and specifies a motion vector candidate specified by the prediction identifier included in the motion information. The MV restoration unit 302 generates a motion vector of the decoding target block by adding the identified motion vector candidate and the difference motion vector included in the motion information. The MV restoration unit 302 outputs the generated motion vector and the reference frame identifier included in the motion information to the MV buffer 304 and the predicted image generation unit 306.

予測画像生成部306は、MV復元部302から取得した参照フレーム識別子で特定される参照フレームを第1フレームバッファ110から取得する。予測画像生成部306は、MV復元部302から取得した動きベクトルと第1フレームバッファ110から取得した参照フレームとから、復号対象のブロックの予測画像を生成する。   The predicted image generation unit 306 acquires the reference frame specified by the reference frame identifier acquired from the MV restoration unit 302 from the first frame buffer 110. The predicted image generation unit 306 generates a predicted image of the decoding target block from the motion vector acquired from the MV restoration unit 302 and the reference frame acquired from the first frame buffer 110.

図2に戻り、符号化部104は、第2フレームバッファ122と、第2インループフィルタ124と、第2インター予測部126と、第2イントラ予測部128と、減算部130と、第2加算部132と、変換・量子化部134と、第2逆変換・逆量子化部136と、エントロピー符号化部138と、を含む。解像度変換部146から出力された解像度変換後の再構成動画像のフレームは、ブロックごとに減算部130と第2インター予測部126と第2イントラ予測部128とに入力される。   Returning to FIG. 2, the encoding unit 104 includes a second frame buffer 122, a second in-loop filter 124, a second inter prediction unit 126, a second intra prediction unit 128, a subtraction unit 130, and a second addition. Unit 132, transform / quantization unit 134, second inverse transform / inverse quantization unit 136, and entropy coding unit 138. The frame of the reconstructed moving image after resolution conversion output from the resolution conversion unit 146 is input to the subtraction unit 130, the second inter prediction unit 126, and the second intra prediction unit 128 for each block.

第2インター予測部126には、第2フレームバッファ122から符号化対象のブロックの参照フレームが入力される。第2インター予測部126は、参照フレームに基づくフレーム間予測により符号化対象のブロックの予測画像を生成し、出力する。第2イントラ予測部128には、符号化対象のフレームの既に処理したブロックの画像データが第2加算部132から入力される。第2イントラ予測部128は、符号化対象のフレームの他のブロックに基づき、符号化対象のブロックの予測画像を生成し、出力する。符号化対象のブロックにフレーム間予測を適用するか、フレーム内予測を適用するかに応じて、第2インター予測部126から出力される予測画像または第2イントラ予測部128から出力される予測画像のいずれかが減算部130および第2加算部132に出力される。   The second inter prediction unit 126 receives the reference frame of the block to be encoded from the second frame buffer 122. The second inter prediction unit 126 generates and outputs a prediction image of a block to be encoded by inter-frame prediction based on the reference frame. The second intra prediction unit 128 receives the image data of the already processed block of the encoding target frame from the second addition unit 132. The second intra prediction unit 128 generates and outputs a prediction image of the encoding target block based on the other blocks of the encoding target frame. A prediction image output from the second inter prediction unit 126 or a prediction image output from the second intra prediction unit 128 depending on whether inter-frame prediction or intra-frame prediction is applied to the block to be encoded Is output to the subtractor 130 and the second adder 132.

減算部130は、ブロック単位で符号化対象の画像と予測画像との誤差信号を生成する。減算部130は、符号化対象のブロックと、第2インター予測部126が出力した予測画像または第2イントラ予測部128が出力した予測画像と、の誤差を示す誤差信号を出力する。変換・量子化部134は、ブロック単位で誤差信号を変換(例えば、直交変換)および量子化し、レベル値を生成する。変換・量子化部134は、生成されたレベル値をエントロピー符号化部138および第2逆変換・逆量子化部136に出力する。エントロピー符号化部138は、変換・量子化部134によって生成されたレベル値と第2インター予測部126から提供された動き情報などのサイド情報とをエントロピー符号化して、出力ビットストリームBSTを生成し、出力する。   The subtraction unit 130 generates an error signal between the encoding target image and the predicted image in units of blocks. The subtraction unit 130 outputs an error signal indicating an error between the block to be encoded and the prediction image output by the second inter prediction unit 126 or the prediction image output by the second intra prediction unit 128. The transform / quantization unit 134 transforms (for example, orthogonal transform) and quantizes the error signal in units of blocks, and generates a level value. The transform / quantization unit 134 outputs the generated level value to the entropy coding unit 138 and the second inverse transform / inverse quantization unit 136. The entropy encoding unit 138 entropy encodes the level value generated by the transform / quantization unit 134 and side information such as motion information provided from the second inter prediction unit 126 to generate an output bit stream BST. ,Output.

第2逆変換・逆量子化部136は、変換・量子化部134における処理とは逆の処理を行って誤差信号を生成(再生成)する。第2加算部132は、第2逆変換・逆量子化部136が出力する誤差信号と、第2インター予測部126が出力した予測画像または第2イントラ予測部128が出力した予測画像と、を加算して符号化対象のブロックを生成し、第2イントラ予測部128と第2インループフィルタ124とに出力する。第2インループフィルタ124は、符号化対象のフレームに対応する局所復号画像を生成して第2フレームバッファ122に出力する。この局所復号画像は、第2インター予測部126におけるフレーム間予測に使用される。   The second inverse transform / inverse quantization unit 136 performs processing reverse to the processing in the transform / quantization unit 134 to generate (regenerate) an error signal. The second addition unit 132 receives the error signal output from the second inverse transform / inverse quantization unit 136 and the prediction image output from the second inter prediction unit 126 or the prediction image output from the second intra prediction unit 128. The blocks to be encoded are generated by addition and output to the second intra prediction unit 128 and the second in-loop filter 124. The second in-loop filter 124 generates a locally decoded image corresponding to the encoding target frame and outputs it to the second frame buffer 122. This locally decoded image is used for inter-frame prediction in the second inter prediction unit 126.

動き処理部106は、取得部140と、判定部142と、符号化制御部144と、を含む。取得部140は、エントロピー復号部108における入力ビットストリームBSIのエントロピー復号の結果から、ブロックごとに、動き情報と動きベクトルと動きベクトルの圧縮モードと誤差信号の有無と復号量子化値とを取得する。特に、復号量子化値はCU(Coding Unit)単位で取得される。基本的に動きベクトルはエントロピー復号の結果に直接含まれるわけではない。取得部140は、図3を参照して説明した第1インター予測部116のMV復元部302における復元処理と同様の処理により動きベクトルを生成してもよい。あるいはまた、取得部140は、第1インター予測部116のMVバッファ304を参照して動きベクトルを取得してもよい。   The motion processing unit 106 includes an acquisition unit 140, a determination unit 142, and an encoding control unit 144. The acquisition unit 140 acquires, for each block, motion information, a motion vector, a motion vector compression mode, the presence / absence of an error signal, and a decoded quantization value from the result of entropy decoding of the input bitstream BSI in the entropy decoding unit 108. . In particular, the decoded quantization value is acquired in units of CU (Coding Unit). Basically, motion vectors are not directly included in entropy decoding results. The acquisition unit 140 may generate a motion vector by a process similar to the restoration process in the MV restoration unit 302 of the first inter prediction unit 116 described with reference to FIG. Alternatively, the acquisition unit 140 may acquire a motion vector with reference to the MV buffer 304 of the first inter prediction unit 116.

判定部142は、誤差信号の有無に基づいて、出力ビットストリームBSTの生成の際、対応する符号化対象のブロックに対して、判定部142によって取得された動きベクトルを適用するか否かを判定する。判定部142は、誤差信号が無い場合は適用すると判定し、そうでない場合は適用しないと判定する。判定部142は適用すると判定した場合、取得部140によって取得された動き情報と動きベクトルと圧縮モードとを符号化制御部144に出力する。判定部142は、適用しないと判定した場合、無効値を符号化制御部144に出力する。以下、判定部142の出力を判定出力と称す。誤差信号がある場合には、再符号化による新規動きベクトル探索により、適切な動きベクトルが見つかる可能性があるため、無効値が出力される。誤差信号がない場合には、動き補償予測により正確に予測されているとみなせるため、再符号化においても同一の動きベクトルを利用し、かつ予測誤差信号を送らない方がよい。   Based on the presence / absence of an error signal, the determination unit 142 determines whether to apply the motion vector acquired by the determination unit 142 to the corresponding encoding target block when generating the output bitstream BST. To do. The determination unit 142 determines to apply if there is no error signal, and determines not to apply otherwise. If the determination unit 142 determines to apply, the motion information, the motion vector, and the compression mode acquired by the acquisition unit 140 are output to the encoding control unit 144. If the determination unit 142 determines not to apply, the determination unit 142 outputs an invalid value to the encoding control unit 144. Hereinafter, the output of the determination unit 142 is referred to as a determination output. If there is an error signal, an invalid value is output because an appropriate motion vector may be found by a new motion vector search by re-encoding. When there is no error signal, it can be considered that the prediction is accurately performed by motion compensation prediction. Therefore, it is better to use the same motion vector in re-encoding and not send a prediction error signal.

符号化制御部144は、判定部142の判定出力に基づいて、符号化部104における符号化対象のブロックのインター予測を制御する。以下、符号化制御部144の機能を第2インター予測部126の構成と併せて説明する。   The encoding control unit 144 controls inter prediction of the block to be encoded in the encoding unit 104 based on the determination output of the determination unit 142. Hereinafter, the function of the encoding control unit 144 will be described together with the configuration of the second inter prediction unit 126.

図4は、第2インター予測部126の機能および構成を示すブロック図である。第2インター予測部126は、動き情報生成部402と、MVバッファ404と、予測画像生成部406と、動き探索部408と、を含む。動き探索部408は、符号化対象のブロックを取得する。動き探索部408は、第2フレームバッファ122を参照し、公知の動き探索(Motion Estimation)技術を使用して符号化対象のブロックの動きベクトルおよび参照フレームを決定する。この決定の際、符号化コスト等により最適な動きベクトルの圧縮モードが選択される。動き探索部408は、決定された動きベクトルおよび決定された参照フレームを特定する参照フレーム識別子を、MVバッファ404と予測画像生成部406とに渡す。   FIG. 4 is a block diagram illustrating the function and configuration of the second inter prediction unit 126. The second inter prediction unit 126 includes a motion information generation unit 402, an MV buffer 404, a predicted image generation unit 406, and a motion search unit 408. The motion search unit 408 acquires an encoding target block. The motion search unit 408 refers to the second frame buffer 122 and determines a motion vector and a reference frame of a block to be encoded using a known motion estimation technique. At the time of this determination, an optimal motion vector compression mode is selected according to the coding cost or the like. The motion search unit 408 passes the determined motion vector and the reference frame identifier that specifies the determined reference frame to the MV buffer 404 and the predicted image generation unit 406.

MVバッファ404は、動き探索部408から取得された動きベクトルおよび参照フレーム識別子を符号化対象のブロックに対応付けて保持する。
予測画像生成部406は、動き探索部408から取得された参照フレーム識別子で特定される参照フレームを第2フレームバッファ122から取得する。予測画像生成部406は、動き探索部408から取得された動きベクトルと第2フレームバッファ122から取得した参照フレームとから、符号化対象のブロックの予測画像を生成する。
The MV buffer 404 holds the motion vector and reference frame identifier acquired from the motion search unit 408 in association with the block to be encoded.
The predicted image generation unit 406 acquires a reference frame specified by the reference frame identifier acquired from the motion search unit 408 from the second frame buffer 122. The predicted image generation unit 406 generates a predicted image of the block to be encoded from the motion vector acquired from the motion search unit 408 and the reference frame acquired from the second frame buffer 122.

動き情報生成部402は、動き探索部408においてどの圧縮モードが選択されたかを特定する。特定された圧縮モードがマージモードである場合には、動き情報生成部402は、動き探索部408で決定されたマージ識別子および参照フレーム識別子を含む動き情報を生成し、エントロピー符号化部138に出力する。特定された圧縮モードが高度予測モードである場合には、動き情報生成部402は、動き探索部408で決定された予測識別子、差分動きベクトルおよび参照フレーム識別子を含む動き情報を生成し、エントロピー符号化部138に出力する。   The motion information generation unit 402 identifies which compression mode has been selected by the motion search unit 408. When the identified compression mode is the merge mode, the motion information generation unit 402 generates motion information including the merge identifier and the reference frame identifier determined by the motion search unit 408 and outputs the motion information to the entropy encoding unit 138. To do. When the identified compression mode is the advanced prediction mode, the motion information generation unit 402 generates motion information including the prediction identifier, the difference motion vector, and the reference frame identifier determined by the motion search unit 408, and generates an entropy code. To the conversion unit 138.

以上は、判定部142において適用しないと判定された場合の第2インター予測部126の処理である。すなわち、符号化制御部144が判定出力として無効値を受けた場合、符号化制御部144は第2インター予測部126に作用しない。判定部142において適用すると判定された場合、第2インター予測部126は符号化対象のブロックに対して、取得部140によって取得された動きベクトルを用いてインター予測を行う。すなわち、符号化制御部144が判定出力として動き情報と動きベクトルと圧縮モードとを受けた場合、符号化制御部144は、動き探索を行わずに動きベクトルを再利用するよう第2インター予測部126を制御する。   The above is the processing of the second inter prediction unit 126 when it is determined that the determination unit 142 does not apply. That is, when the encoding control unit 144 receives an invalid value as a determination output, the encoding control unit 144 does not act on the second inter prediction unit 126. When it determines with applying in the determination part 142, the 2nd inter prediction part 126 performs inter prediction with respect to the block of encoding using the motion vector acquired by the acquisition part 140. FIG. That is, when the encoding control unit 144 receives the motion information, the motion vector, and the compression mode as the determination output, the encoding control unit 144 performs the second inter prediction unit so as to reuse the motion vector without performing the motion search. 126 is controlled.

より具体的には、符号化制御部144は、判定部142において適用すると判定された場合、符号化対象のブロックに対する動き探索が行われないよう動き探索部408を非活性化する。併せて符号化制御部144は、判定出力に含まれる動きベクトルおよび参照フレーム識別子をMVバッファ404と予測画像生成部406とに渡し、判定出力に含まれる圧縮モードと動き情報とを動き情報生成部402に渡す。これにより、動き探索部408が非活性化されても、動き情報生成部402、MVバッファ404および予測画像生成部406は予測画像の生成および動き情報の生成のために必要な情報を符号化制御部144から得ることができる。   More specifically, the encoding control unit 144 deactivates the motion search unit 408 so that the motion search is not performed on the block to be encoded when it is determined by the determination unit 142 to apply. In addition, the encoding control unit 144 passes the motion vector and the reference frame identifier included in the determination output to the MV buffer 404 and the predicted image generation unit 406, and the compression mode and the motion information included in the determination output are transferred to the motion information generation unit. 402. As a result, even when the motion search unit 408 is deactivated, the motion information generation unit 402, the MV buffer 404, and the predicted image generation unit 406 perform encoding control on information necessary for generating a predicted image and generating motion information. It can be obtained from the part 144.

図2に戻り、符号化制御部144はさらに、変換・量子化部134を制御する。解像度変換部146は、解像度変換部146に入力される再構成動画像の解像度r_inと解像度変換部146から出力される再構成動画像の解像度r_outとの比であるr_in/r_out(縮小率r_out/r_inの逆数)に比例する補正値QPoffset(負の値)を符号化制御部144に出力する。符号化制御部144は、変換・量子化部134における符号化量子化値を、(1)レート制御から導出される量子化値、(2)取得部140によって取得された復号量子化値+解像度変換部146から取得された補正値QPoffset、のうちの大きい方に設定する。言い換えると、符号化制御部144は、取得部140によって取得された復号量子化値および解像度変換部146から取得された補正値QPoffsetに基づいて、符号化量子化値の下限を設定する。これにより、入力ビットストリームBSIの量子化ノイズの符号化が抑制される。   Returning to FIG. 2, the encoding control unit 144 further controls the transform / quantization unit 134. The resolution conversion unit 146 is a ratio r_in / r_out (reduction ratio r_out /) of the resolution r_in of the reconstructed moving image input to the resolution conversion unit 146 and the resolution r_out of the reconstructed moving image output from the resolution conversion unit 146. The correction value QPoffset (negative value) proportional to the reciprocal of r_in is output to the encoding control unit 144. The encoding control unit 144 includes (1) a quantized value derived from rate control, and (2) a decoded quantized value + resolution acquired by the acquiring unit 140. The correction value QPoffset acquired from the conversion unit 146 is set to the larger one. In other words, the encoding control unit 144 sets the lower limit of the encoded quantized value based on the decoded quantized value acquired by the acquiring unit 140 and the correction value QPoffset acquired from the resolution converting unit 146. Thereby, encoding of quantization noise of the input bitstream BSI is suppressed.

補正値QPoffsetについて、例えば、1/2に縮小する場合、解像度変換部146は補正値QPoffsetとして−6を出力し、1/4に縮小する場合、補正値QPoffsetとして−12を出力する。これは、縮小によって信号の量子化ノイズが低減し、入力ビットストリームBSIに含まれる量子化ノイズが低減するためである。なお、量子化値は6増加するごとに量子化ステップが2倍となるように設計されている。   For example, when the correction value QPoffset is reduced to ½, the resolution conversion unit 146 outputs -6 as the correction value QPoffset, and when it is reduced to ¼, outputs -12 as the correction value QPoffset. This is because the quantization noise of the signal is reduced by the reduction, and the quantization noise included in the input bit stream BSI is reduced. The quantization value is designed to double the quantization step every time it increases by 6.

なお、解像度変換部146がない場合は、符号化制御部144は、変換・量子化部134における符号化量子化値を、(1)レート制御から導出される量子化値、(2)取得部140によって取得された復号量子化値、のうちの大きい方に設定する。   When the resolution conversion unit 146 is not provided, the encoding control unit 144 uses (1) a quantized value derived from rate control as the encoded quantization value in the conversion / quantization unit 134, and (2) an acquisition unit. Set to the larger one of the decoded quantized values acquired by 140.

以上の構成によるトランスコード装置100の動作を説明する。
図5は、図2の符号化制御部144における一連の処理を示すフローチャートである。符号化制御部144は、符号化対象のブロックについて、判定部142の判定出力が無効値か否かを判定する(S502)。無効値である場合(S502のYES)、符号化制御部144は処理を終了する。無効値でない場合(S502のNO)、符号化制御部144は判定出力に含まれる圧縮モードに基づいて、出力ビットストリームBSTの生成の際、符号化対象のブロックに対して取得部140によって取得された圧縮モードを適用するか否かを判定する(S504)。より具体的には、符号化制御部144は判定出力に含まれる圧縮モードがマージモードである場合には適用すると判定し、そうでなければ適用しないと判定する。符号化制御部144は、判定出力に含まれる圧縮モードがマージモードである場合(S504のYES)、第2インター予測部126における動きベクトルの圧縮モードをマージモードに固定する(S506)。マージモードでない場合(S504のNO)またはステップS506の処理の後、符号化制御部144は第2インター予測部126における動き探索を非活性化する(S508)。符号化制御部144は、動き探索の代わりに、判定出力に含まれる動きベクトルおよび参照フレーム識別子を第2インター予測部126のMVバッファ404および予測画像生成部406に提供する(S510)。
The operation of the transcoding device 100 configured as above will be described.
FIG. 5 is a flowchart showing a series of processes in the encoding control unit 144 of FIG. The encoding control unit 144 determines whether the determination output of the determination unit 142 is an invalid value for the block to be encoded (S502). If it is an invalid value (YES in S502), the encoding control unit 144 ends the process. If it is not an invalid value (NO in S502), the encoding control unit 144 is acquired by the acquisition unit 140 for the block to be encoded when generating the output bitstream BST based on the compression mode included in the determination output. It is determined whether to apply the compressed mode (S504). More specifically, the encoding control unit 144 determines to apply when the compression mode included in the determination output is the merge mode, and determines not to apply otherwise. When the compression mode included in the determination output is the merge mode (YES in S504), the encoding control unit 144 fixes the motion vector compression mode in the second inter prediction unit 126 to the merge mode (S506). When not in the merge mode (NO in S504) or after the processing in step S506, the encoding control unit 144 deactivates the motion search in the second inter prediction unit 126 (S508). The encoding control unit 144 provides the motion vector and the reference frame identifier included in the determination output to the MV buffer 404 and the predicted image generation unit 406 of the second inter prediction unit 126 instead of the motion search (S510).

本明細書の記載に基づき、各部を、図示しないCPUや、インストールされたアプリケーションプログラムのモジュールや、システムプログラムのモジュールや、ハードディスクから読み出したデータの内容を一時的に記憶する半導体メモリなどにより実現できることは本明細書に触れた当業者には理解される。   Based on the description in this specification, each unit can be realized by a CPU (not shown), a module of an installed application program, a module of a system program, a semiconductor memory that temporarily stores the contents of data read from a hard disk, or the like. Will be understood by those of ordinary skill in the art having touched this specification.

本実施の形態に係るトランスコード装置100によると、符号化ノイズに起因する予測誤差信号の発生や異なる量子化ステップに起因する差分信号の発生を抑制できる。その結果、再符号化において原画像を参照できないトランスコード装置100においても、入力ビットストリームBSIに含まれる符号化ノイズそのものの符号化を低減できる。   According to transcoding apparatus 100 according to the present embodiment, it is possible to suppress the generation of a prediction error signal due to coding noise and the generation of a difference signal due to a different quantization step. As a result, even in the transcoding device 100 that cannot refer to the original image in re-encoding, the encoding of the encoding noise itself included in the input bitstream BSI can be reduced.

また、本実施の形態に係るトランスコード装置100では、インター予測がよく当たっているブロックについては、再符号化における動き探索が非活性化され、入力ビットストリームBSIから得られた動きベクトルが再利用される。インター予測があまり当たっていないブロックについては、動きベクトルは再利用されず、再符号化において新規に動きベクトルが検出される。したがって、出力ビットストリームBSTが表す動画像の画質を高く保ちつつ、動き探索に係る処理量を低減できる。   Also, in the transcoding device 100 according to the present embodiment, motion search in re-encoding is deactivated for a block that is often subjected to inter prediction, and a motion vector obtained from the input bitstream BSI is reused. Is done. For a block that is not subjected to much inter prediction, a motion vector is not reused, and a new motion vector is detected in re-encoding. Therefore, it is possible to reduce the amount of processing related to motion search while keeping the image quality of the moving image represented by the output bitstream BST high.

また、本実施の形態に係るトランスコード装置100では、入力ビットストリームBSIの復号対象のブロックについてマージモードが選択されている場合、対応する符号化対象のブロックについてもマージモードが選択されるよう構成される。一般に、画像上の同じ物体に属するブロックについてマージモードが選択されることが多い。そこで、復号側でマージモードであったものについては再符号化においてもマージモードに固定することで、「同じ物体」という情報を引き継ぐことができ、画質の維持、向上を図ることができる。また、圧縮モードのなかでもマージモードは符号量削減効果が比較的高いので、マージモードに固定することで出力ビットストリームBSTの符号量を低減できる。   Also, in transcoding apparatus 100 according to the present embodiment, when merge mode is selected for a decoding target block of input bitstream BSI, merge mode is also selected for a corresponding encoding target block. Is done. In general, the merge mode is often selected for blocks belonging to the same object on the image. Therefore, by fixing the merge mode on the decoding side in the re-encoding, the information “same object” can be taken over, and the image quality can be maintained and improved. Further, since the merge mode has a relatively high code amount reduction effect among the compression modes, the code amount of the output bitstream BST can be reduced by fixing the merge mode.

以上、実施の形態に係るトランスコード装置100の構成と動作について説明した。この実施の形態は例示であり、各構成要素や各処理の組み合わせにいろいろな変形例が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解される。   The configuration and operation of transcoding apparatus 100 according to the embodiment have been described above. This embodiment is an exemplification, and it will be understood by those skilled in the art that various modifications can be made to each component and combination of processes, and such modifications are within the scope of the present invention.

実施の形態では、判定部142は誤差信号の有無を判定基準としたが、これに限られず、誤差信号の有無を含む誤差信号の量を判定基準としてもよい。例えば、取得部140は誤差信号の量を取得し、判定部142は取得された量と閾値とを比較してもよい。   In the embodiment, the determination unit 142 uses the presence / absence of an error signal as a determination criterion. For example, the acquisition unit 140 may acquire the amount of the error signal, and the determination unit 142 may compare the acquired amount with a threshold value.

実施の形態では、トランスコード装置100が復号部102と符号化部104と動き処理部106と解像度変換部146とを備える場合を説明したが、これに限られない。図6は、変形例に係るトランスコードシステム600の構成を示す模式図である。トランスコードシステム600は、復号装置602と、該復号装置602とは別体の符号化装置604と、を備える。復号装置602は、復号部102と解像度変換部146と取得部140とを備える。符号化装置604は、判定部142と符号化制御部144と符号化部104とを備える。復号装置602と符号化装置604とは有線(例えば、HD−SDI)または無線により接続される。本例では、復号装置602と符号化装置604とは非圧縮映像伝送インタフェース606により接続される。復号装置602は入力ビットストリームBSIを取得する。復号装置602から符号化装置604へ解像度変換後の再構成動画像が映像信号SMPとして非圧縮映像伝送インタフェース606を介して送信される。符号化装置604は出力ビットストリームBSTを出力する。   In the embodiment, the case where the transcoding device 100 includes the decoding unit 102, the encoding unit 104, the motion processing unit 106, and the resolution conversion unit 146 has been described, but the present invention is not limited thereto. FIG. 6 is a schematic diagram showing a configuration of a transcoding system 600 according to a modification. The transcoding system 600 includes a decoding device 602 and an encoding device 604 that is separate from the decoding device 602. The decoding device 602 includes a decoding unit 102, a resolution conversion unit 146, and an acquisition unit 140. The encoding device 604 includes a determination unit 142, an encoding control unit 144, and an encoding unit 104. The decoding device 602 and the encoding device 604 are connected by wire (for example, HD-SDI) or wirelessly. In this example, the decoding device 602 and the encoding device 604 are connected by an uncompressed video transmission interface 606. The decoding device 602 acquires the input bitstream BSI. The reconstructed moving image after resolution conversion is transmitted from the decoding device 602 to the encoding device 604 as the video signal SMP via the uncompressed video transmission interface 606. The encoding device 604 outputs an output bit stream BST.

復号装置602は、非圧縮映像伝送インタフェース606を通じて伝送される映像信号SMPに、取得部140によって取得された動き情報と動きベクトルと圧縮モードと誤差信号の有無と復号量子化値とを重畳する(または、映像信号SMPに埋め込む)。符号化装置604は非圧縮映像伝送インタフェース606を通じて受信した映像信号SMPから、重畳されている各種情報を抽出する(または、映像信号SMPから取り出す)。埋め込み方法として、例えば輝度成分のLSBを利用してもよい。非圧縮映像は本来ロスレスであるが、そもそも入力ビットストリームBSIを復号して得られる再構成画像には符号化ノイズが含まれているため、符号化に必要なデータを埋め込んでも影響は小さい。本変形例によると、取得部140により取得された情報の伝送のために別途ケーブル等を設ける必要はないので、トランスコードシステム600をよりシンプルに構成できる。   The decoding device 602 superimposes the motion information, the motion vector, the compression mode, the presence / absence of an error signal, and the decoded quantization value acquired by the acquisition unit 140 on the video signal SMP transmitted through the uncompressed video transmission interface 606 ( Alternatively, it is embedded in the video signal SMP). The encoding device 604 extracts various superimposed information from the video signal SMP received through the uncompressed video transmission interface 606 (or extracts it from the video signal SMP). As an embedding method, for example, LSB of a luminance component may be used. Although uncompressed video is inherently lossless, since the reconstructed image obtained by decoding the input bitstream BSI originally contains coding noise, the influence of embedding data necessary for coding is small. According to this modification, it is not necessary to provide a separate cable or the like for transmitting the information acquired by the acquisition unit 140, so that the transcoding system 600 can be configured more simply.

10 ケーブルテレビシステム、 12 放送事業者サーバ、 14 センター設備、 16 ケーブルネットワーク、 18 エンドユーザ、 100 トランスコード装置。   10 cable TV system, 12 broadcaster server, 14 center equipment, 16 cable network, 18 end user, 100 transcoding device.

Claims (11)

動画像のビットストリームを取得する第1取得手段と、
取得された前記ビットストリームとは設定の異なる新たなビットストリームを出力する出力手段と、
取得された前記ビットストリームをエントロピー復号する復号手段と、
エントロピー復号の結果から、ブロックごとに、動きベクトルと誤差信号の量と動きベクトルの圧縮モードとを取得する第2取得手段と、
取得された前記誤差信号の量に基づいて、前記新たなビットストリームの生成の際、対応する符号化対象のブロックに対して、取得された前記動きベクトルを適用するか否かを判定する第1判定手段と、
取得された前記圧縮モードに基づいて、前記新たなビットストリームの生成の際、前記符号化対象のブロックに対して取得された前記圧縮モードを適用するか否かを判定する第2判定手段と、を備えるトランスコードシステム。
First acquisition means for acquiring a bit stream of a moving image;
Output means for outputting a new bitstream having a different setting from the acquired bitstream;
Decoding means for entropy decoding the acquired bitstream;
Second acquisition means for acquiring, for each block, a motion vector, an amount of an error signal, and a motion vector compression mode from the result of entropy decoding;
First determining whether to apply the acquired motion vector to a corresponding encoding target block when generating the new bitstream based on the acquired amount of the error signal A determination means;
Second determination means for determining whether to apply the acquired compression mode to the block to be encoded when generating the new bitstream based on the acquired compression mode; Transcoding system comprising.
前記第1判定手段によって適用すると判定された場合、前記符号化対象のブロックに対して、取得された前記動きベクトルを用いてインター予測を行う予測手段をさらに備える請求項1に記載のトランスコードシステム。 2. The transcoding system according to claim 1, further comprising a prediction unit that performs inter prediction on the block to be encoded using the acquired motion vector when it is determined to be applied by the first determination unit. . 前記第1判定手段によって適用すると判定された場合、前記符号化対象のブロックに対する動き探索を非活性化する制御手段をさらに備える請求項1または2に記載のトランスコードシステム。 3. The transcoding system according to claim 1, further comprising a control unit that deactivates a motion search for the block to be encoded when it is determined to be applied by the first determination unit . 前記第1判定手段は、取得された前記誤差信号の量がゼロの場合は適用すると判定し、そうでない場合は適用しないと判定する請求項1から3のいずれか1項に記載のトランスコードシステム。   4. The transcoding system according to claim 1, wherein the first determination unit determines to apply when the amount of the acquired error signal is zero and determines not to apply otherwise. 5. . 前記第2判定手段は、取得された前記圧縮モードが他のブロックの動きベクトルを再利用するモードである場合、適用すると判定する請求項1から4のいずれか1項に記載のトランスコードシステム。 5. The transcoding system according to claim 1, wherein the second determination unit determines to apply when the acquired compression mode is a mode in which a motion vector of another block is reused . 6. 前記第2取得手段は、エントロピー復号の結果から、ブロックごとに、量子化値をさらに取得し、
本トランスコードシステムはさらに、取得された前記量子化値に基づいて、前記符号化対象のブロックの量子化における量子化値の下限を設定する設定手段を備える請求項1から5のいずれか1項に記載のトランスコードシステム。
The second acquisition means further acquires a quantization value for each block from the result of entropy decoding,
6. The transcoding system according to claim 1, further comprising a setting unit configured to set a lower limit of a quantization value in quantization of the block to be encoded based on the acquired quantization value. The transcoding system described in 1.
前記設定手段は、取得された前記ビットストリームの解像度と前記新たなビットストリームの解像度との比および取得された前記量子化値に基づいて、前記下限を設定する請求項6に記載のトランスコードシステム。 The transcoding system according to claim 6, wherein the setting means sets the lower limit based on a ratio between the resolution of the acquired bit stream and the resolution of the new bit stream and the acquired quantization value. . 復号装置と前記復号装置とは別体の符号化装置とを備え、
前記復号装置は前記第1取得手段と前記復号手段と前記第2取得手段とを含み、
前記符号化装置は前記出力手段と前記第1判定手段と前記第2判定手段とを含み、
前記復号装置と前記符号化装置とは非圧縮映像伝送インタフェースにより接続され、前記復号装置は前記非圧縮映像伝送インタフェースの映像信号に前記第2取得手段により取得される情報を重畳し、前記符号化装置は前記映像信号に重畳された情報を抽出する請求項1から7のいずれか1項に記載のトランスコードシステム。
A decoding device and an encoding device separate from the decoding device;
The decoding device includes the first acquisition unit, the decoding unit, and the second acquisition unit,
The encoding device includes the output means, the first determination means, and the second determination means,
The decoding device and the encoding device are connected by an uncompressed video transmission interface, and the decoding device superimposes information acquired by the second acquisition means on a video signal of the uncompressed video transmission interface, and the encoding The transcoding system according to claim 1, wherein the apparatus extracts information superimposed on the video signal .
動画像のビットストリームを取得することと、
取得された前記ビットストリームとは設定の異なる新たなビットストリームを出力することと、
取得された前記ビットストリームをエントロピー復号することと、
エントロピー復号の結果から、ブロックごとに、動きベクトルと誤差信号の量と動きベクトルの圧縮モードとを取得することと、
取得された前記誤差信号の量に基づいて、前記新たなビットストリームの生成の際、対応する符号化対象のブロックに対して、取得された前記動きベクトルを適用するか否かを判定することと、
取得された前記圧縮モードに基づいて、前記新たなビットストリームの生成の際、前記符号化対象のブロックに対して取得された前記圧縮モードを適用するか否かを判定することと、を含むトランスコード方法
Getting a video bitstream,
Outputting a new bit stream having a different setting from the acquired bit stream;
Entropy decoding the acquired bitstream;
Obtaining the motion vector, the amount of error signal, and the motion vector compression mode for each block from the result of entropy decoding;
Determining whether to apply the acquired motion vector to a corresponding block to be encoded when generating the new bitstream based on the amount of the acquired error signal; ,
Determining whether or not to apply the acquired compression mode to the block to be encoded when generating the new bitstream based on the acquired compression mode. Code method .
請求項1から8のいずれか1項に記載のトランスコードシステムとしてコンピュータを機能させるプログラムを有することを特徴とするコンピュータ可読記録媒体。A computer-readable recording medium comprising a program that causes a computer to function as the transcoding system according to claim 1. 請求項1から8のいずれか1項に記載のトランスコードシステムに含まれる前記出力手段と前記第1判定手段と前記第2判定手段とを備える符号化装置。An encoding apparatus comprising the output unit, the first determination unit, and the second determination unit included in the transcoding system according to any one of claims 1 to 8.
JP2016138864A 2016-07-13 2016-07-13 Transcoding system, transcoding method, computer-readable recording medium, and encoding apparatus Active JP6574148B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016138864A JP6574148B2 (en) 2016-07-13 2016-07-13 Transcoding system, transcoding method, computer-readable recording medium, and encoding apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016138864A JP6574148B2 (en) 2016-07-13 2016-07-13 Transcoding system, transcoding method, computer-readable recording medium, and encoding apparatus

Publications (2)

Publication Number Publication Date
JP2018011194A JP2018011194A (en) 2018-01-18
JP6574148B2 true JP6574148B2 (en) 2019-09-11

Family

ID=60995873

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016138864A Active JP6574148B2 (en) 2016-07-13 2016-07-13 Transcoding system, transcoding method, computer-readable recording medium, and encoding apparatus

Country Status (1)

Country Link
JP (1) JP6574148B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000244921A (en) * 1999-02-24 2000-09-08 Matsushita Electric Ind Co Ltd Video encoding method and apparatus
JP4193406B2 (en) * 2002-04-16 2008-12-10 三菱電機株式会社 Video data conversion apparatus and video data conversion method
JP2006295503A (en) * 2005-04-08 2006-10-26 Pioneer Electronic Corp Reencoding apparatus and method, and program for reencoding
JP2006295734A (en) * 2005-04-13 2006-10-26 Pioneer Electronic Corp Re-encoding apparatus, re-encoding method, and re-encoding program
JP2007060258A (en) * 2005-08-24 2007-03-08 Matsushita Electric Ind Co Ltd Video format conversion apparatus and method
JP2007300209A (en) * 2006-04-27 2007-11-15 Pioneer Electronic Corp Moving picture re-encoding apparatus and motion vector discrimination method thereof
JP2015186120A (en) * 2014-03-25 2015-10-22 沖電気工業株式会社 Encoding method conversion apparatus and program

Also Published As

Publication number Publication date
JP2018011194A (en) 2018-01-18

Similar Documents

Publication Publication Date Title
KR102165340B1 (en) Methods of determination for chroma quantization parameter and apparatuses for using the same
CN103891293B (en) Method and apparatus for the adaptive loop filter of chromatic component
JP4927207B2 (en) Encoding method, decoding method and apparatus
KR101955374B1 (en) Method and Apparatus for Image Encoding/Decoding By Fast Coding Unit Mode Decision
US10291934B2 (en) Modified HEVC transform tree syntax
JP6704932B2 (en) Residual transform and inverse transform method in video coding system
JP2015508250A (en) Method and apparatus for providing an adaptive low resolution update mode
KR20130051384A (en) Method and apparatus video encoding and decoding using skip mode
JP2015516780A (en) Apparatus and method for estimating the number of bits in a bitstream
KR100694137B1 (en) A video encoding apparatus, a video decoding apparatus, and a method thereof, and a recording medium having recorded thereon a program for implementing the same.
KR20160078318A (en) Method and Apparatus for Video Encoding/Decoding
JPWO2010052838A1 (en) Video encoding apparatus and video decoding apparatus
KR102356481B1 (en) Method and Apparatus for Video Encoding and Video Decoding
KR20140022122A (en) Video encoding apparatus and method using rate distortion optimization
US10582206B2 (en) Methods, encoder, and transcoder for transcoding
KR20090103675A (en) Method for coding/decoding a intra prediction mode of video and apparatus for the same
JP6574148B2 (en) Transcoding system, transcoding method, computer-readable recording medium, and encoding apparatus
JP6030989B2 (en) Image encoding method, image decoding method, image encoding device, image decoding device, program thereof, and recording medium recording the program
KR100987922B1 (en) A video compression encoder and decoder using a motion compensation technique using a selective reference image and a selective reference image determination method for motion compensation
JP6577426B2 (en) Transcoding system, transcoding method, computer-readable recording medium, decoding device, and encoding device
KR102020953B1 (en) Image Reencoding Method based on Decoding Data of Image of Camera and System thereof
CN112655213B (en) Conversion device, decoding device, conversion method, and decoding method
WO2017115482A1 (en) Bitstream conversion device, bitstream conversion method, delivery system, moving image encoding device, moving image encoding method, and computer-readable recording medium
JP6154753B2 (en) Moving picture decoding apparatus, moving picture decoding method, and program
KR20180019511A (en) Systems and methods for inclusion of accompanying message data in a compressed video bitstream

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20170202

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20170202

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20170223

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20170224

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180928

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20181001

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190528

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190531

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190703

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190806

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190815

R150 Certificate of patent or registration of utility model

Ref document number: 6574148

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150