JP2022103284A - Video encoder, video decoder, and their program - Google Patents

Video encoder, video decoder, and their program Download PDF

Info

Publication number
JP2022103284A
JP2022103284A JP2022080144A JP2022080144A JP2022103284A JP 2022103284 A JP2022103284 A JP 2022103284A JP 2022080144 A JP2022080144 A JP 2022080144A JP 2022080144 A JP2022080144 A JP 2022080144A JP 2022103284 A JP2022103284 A JP 2022103284A
Authority
JP
Japan
Prior art keywords
difference vector
positive
block
code
screen
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.)
Granted
Application number
JP2022080144A
Other languages
Japanese (ja)
Other versions
JP7361838B2 (en
Inventor
和久 井口
Kazuhisa Iguchi
俊輔 岩村
Shunsuke Iwamura
敦郎 市ヶ谷
Atsuro Ichigaya
菊文 神田
Kikufumi Kanda
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.)
Japan Broadcasting Corp
Original Assignee
Nippon Hoso Kyokai NHK
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 Nippon Hoso Kyokai NHK filed Critical Nippon Hoso Kyokai NHK
Priority to JP2022080144A priority Critical patent/JP7361838B2/en
Publication of JP2022103284A publication Critical patent/JP2022103284A/en
Application granted granted Critical
Publication of JP7361838B2 publication Critical patent/JP7361838B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a video encoder, a video decoder, and their programs configured to allow for improvement in compression efficiency related to the positive and negative signs of a differential vector in video encoding system using motion compensation prediction.
SOLUTION: A video encoder 1 includes a finite vector code estimation part 13 generating an estimation code of differential vector according to a restriction predetermined for the differential vector related to a prescribed block, a right/wrong flag generation part 14 generating a right/wrong flag indicating authenticity of estimation code, and a context adaptive reversible compression part 15 for reversibly compressing the right/wrong flag. The video decoder 2 includes a finite difference vector code estimation part 27 corresponding to the finite vector code estimation part 13, a context adaptive reversible decoding part 26 for decoding the compressed right/wrong flag, a finite difference vector code determination part 28 for determining the positive negative code of the finite difference vector by using the decoded right/wrong flag and the estimation code, and a finite difference vector restoration unit 22 for restoring the finite difference vector.
SELECTED DRAWING: Figure 1
COPYRIGHT: (C)2022,JPO&INPIT

Description

本発明は、動き補償予測を用いた映像符号化方式における映像符号化装置、映像復号装置、及びこれらのプログラムに関する。 The present invention relates to a video coding device, a video decoding device, and a program thereof in a video coding method using motion compensation prediction.

一般的に、動き補償予測を用いた映像符号化方式では、動きベクトルや差分ベクトルの正負符号(+,-)は、出現頻度に偏りがないため圧縮符号化を行う意義が無いとされ、圧縮(可逆圧縮)を行わないものとなっている。 Generally, in a video coding method using motion compensation prediction, it is considered meaningless to perform compression coding because the positive and negative codes (+,-) of motion vectors and difference vectors are not biased in appearance frequency, and are compressed. (Lossless compression) is not performed.

例えば、MPEG-H HEVC/H.265方式においては、動きベクトルは予測ベクトル(PMV)と差分ベクトル(MVD)の和として表現される(例えば、非特許文献1参照)。 For example, in the MPEG-H HEVC / H.265 method, the motion vector is expressed as the sum of the prediction vector (PMV) and the difference vector (MVD) (see, for example, Non-Patent Document 1).

差分ベクトルは、ベクトルの絶対値が0の場合と、0以外の場合で表現が異なり、これはabs_mvd_greater0_flagで表され、abs_mvd_greater0_flagが0の場合、差分ベクトルは0となる。一方、abs_mvd_greater0_flagが1の場合、差分ベクトルは、差分ベクトルの絶対値と、mvd_sign_flagと呼ばれる差分ベクトルの正負符号の組合せで表現される。この正負符号の+と-は、一般に出現頻度に偏りがないため、mvd_sign_flagは可逆圧縮を行わずに、正負符号の+/-を1/0のビット表現とし、可逆圧縮を行わないバイパスモードで算術符号化して当該差分ベクトルの絶対値に対応付けて伝送している。即ち、MPEG-H HEVC/H.265方式では差分ベクトルの正負符号は全く圧縮が行われていない。 The expression of the difference vector differs depending on whether the absolute value of the vector is 0 or other than 0. This is represented by abs_mvd_greater0_flag, and when abs_mvd_greater0_flag is 0, the difference vector is 0. On the other hand, when abs_mvd_greater0_flag is 1, the difference vector is represented by a combination of the absolute value of the difference vector and the positive / negative sign of the difference vector called mvd_sign_flag. Since the + and-of these positive and negative codes are generally not biased in appearance frequency, mvd_sign_flag does not perform lossless compression, but +/- of the positive and negative codes is used as a 1/0 bit representation, and in bypass mode without lossless compression. It is arithmetically encoded and transmitted in association with the absolute value of the difference vector. That is, in the MPEG-H HEVC / H.265 method, the positive and negative signs of the difference vector are not compressed at all.

ITU-T Recommendation H.265 (2013) ,High efficiency video coding;ISO/IEC 23008-2:2013, Information technology High efficiency coding and media delivery in heterogeneous environments Part 2: High efficiency video coding, 2003, 〈https://www.iso.org/standard/35424.html〉ITU-T Recommendation H.265 (2013), High efficiency video coding; ISO / IEC 23008-2: 2013, Information technology High efficiency coding and media delivery in heterogeneous environments Part 2: High efficiency video coding, 2003, 〈https: / /www.iso.org/standard/35424.html>

上述したように、MPEG-H HEVC/H.265方式等で代表される一般的な映像符号化方式では、差分ベクトルの正負符号の出現頻度に偏りがないため圧縮符号化を行う意義が無いとされ、圧縮(可逆圧縮)を行わないものとなっている。 As described above, in a general video coding method represented by the MPEG-H HEVC / H.265 method or the like, there is no bias in the appearance frequency of the positive and negative codes of the difference vector, so that there is no point in performing compression coding. It is not compressed (lossless compression).

しかしながら、フレーム内の着目ブロックの位置によっては、差分ベクトルの正負符号(+,-)についても発生確率に偏りが生じる場合があり、このためコンテキスト適応型の可逆圧縮により圧縮が可能となる場合がある。このため、差分ベクトルの正負符号(+,-)について圧縮(可逆圧縮)を可能とし、映像符号化に係る圧縮効率をより向上させる技法が望まれる。 However, depending on the position of the block of interest in the frame, the probability of occurrence of the positive and negative signs (+,-) of the difference vector may also be biased, so compression may be possible by context-adaptive lossless compression. be. Therefore, a technique that enables compression (lossless compression) for the positive and negative codes (+,-) of the difference vector and further improves the compression efficiency related to video coding is desired.

そこで、本発明の目的は、上述の問題に鑑みて、動き補償予測を用いた映像符号化方式における差分ベクトルの正負符号(+,-)に係る圧縮効率を向上可能に構成した映像符号化装置、映像復号装置、及びこれらのプログラムを提供することにある。 Therefore, an object of the present invention is an image coding device configured to improve the compression efficiency related to the positive and negative codes (+,-) of the difference vector in the image coding method using motion compensation prediction in view of the above-mentioned problems. , A video decoder, and programs thereof.

本発明の映像符号化装置は、動き補償予測を用いた映像符号化方式における映像符号化装置であって、フレーム内の所定のブロックについて動き補償予測に基づく差分ベクトルを生成する差分ベクトル生成手段と、前記所定のブロックに関する情報、前記差分ベクトルの絶対値、及び前記差分ベクトルに係る予測ベクトルを基にした予め定めた規則に従って前記差分ベクトルの正負符号を推定することにより、前記差分ベクトルの推定符号を決定する差分ベクトル符号推定手段と、前記差分ベクトル生成手段から得られる前記差分ベクトルの正負符号と、前記差分ベクトル符号推定手段から得られる前記差分ベクトルの推定符号とを比較して、両者が等しい場合は真、異なる場合は偽を示す正誤フラグを生成する正誤フラグ生成手段と、前記正誤フラグ生成手段によって生成した前記正誤フラグに対し、前記所定のブロックの位置に応じたコンテキストに適応させた可逆圧縮処理を施すコンテキスト適応型の可逆圧縮手段と、当該可逆圧縮処理を施した前記正誤フラグを前記差分ベクトルの絶対値に対応付けて伝送するためのストリームを生成するストリーム生成手段と、を備えることを特徴とする。 The video coding device of the present invention is a video coding device in a video coding method using motion compensation prediction, and is a difference vector generation means for generating a difference vector based on motion compensation prediction for a predetermined block in a frame. , The estimated code of the difference vector by estimating the positive and negative signs of the difference vector according to a predetermined rule based on the information about the predetermined block, the absolute value of the difference vector, and the prediction vector related to the difference vector. The difference vector code estimation means for determining the above, the positive and negative codes of the difference vector obtained from the difference vector generation means, and the estimation code of the difference vector obtained from the difference vector code estimation means are compared and both are equal. A correct / incorrect flag generation means that generates a correct / incorrect flag indicating true if the case is true and false if different, and the correct / incorrect flag generated by the correct / incorrect flag generation means are reversible adapted to the context according to the position of the predetermined block. It is provided with a context-adaptive reversible compression means for performing compression processing and a stream generation means for generating a stream for transmitting the correct / incorrect flag subjected to the reversible compression processing in association with the absolute value of the difference vector. It is characterized by.

また、本発明の映像符号化装置において、前記差分ベクトル符号推定手段は、前記所定のブロックに関する情報、前記差分ベクトルの絶対値、及び前記予測ベクトルを用いて正側及び負側の候補ベクトルを算出し、各候補ベクトルのそれぞれに対応するブロックの位置と前記フレームの画面端との位置関係に応じて、或いは前記所定のブロックの座標及び大きさ、前記正側及び負側の候補ベクトル、並びに前記フレームの画面幅の位置関係に応じて、場合分けした予め定めた規則に基づいて前記差分ベクトルの正負符号を推定することを特徴とする。 Further, in the video coding apparatus of the present invention, the difference vector code estimation means calculates positive and negative candidate vectors using the information about the predetermined block, the absolute value of the difference vector, and the prediction vector. Then, depending on the positional relationship between the position of the block corresponding to each candidate vector and the screen edge of the frame, or the coordinates and size of the predetermined block, the positive and negative candidate vectors, and the said. It is characterized in that the positive / negative sign of the difference vector is estimated based on a predetermined rule divided into cases according to the positional relationship of the screen width of the frame.

また、本発明の映像符号化装置において、前記フレームにおける画面中央の領域と画面端の所定範囲内の領域とに分け、少なくとも前記画面端の所定範囲内の領域に前記所定のブロックが収まっている際に、前記正誤フラグ生成手段を作動させるよう制御する制御手段を更に備えることを特徴とする。 Further, in the video coding apparatus of the present invention, the frame is divided into a region in the center of the screen and a region within a predetermined range at the edge of the screen, and the predetermined block is contained in at least a region within the predetermined range at the edge of the screen. At that time, it is further provided with a control means for controlling the operation of the correctness flag generation means.

また、本発明の映像符号化装置において、前記制御手段は、複数分割された前記画面端の所定範囲内の領域のうちいずれの領域に前記所定のブロックが収まっているかに基づいて、前記差分ベクトルの水平成分と垂直成分のそれぞれで前記正誤フラグを使用する成分を切り替えるように制御する手段を有することを特徴とする。 Further, in the video coding apparatus of the present invention, the control means has the difference vector based on which region of the regions within the predetermined range of the screen edge divided into a plurality of regions contains the predetermined block. It is characterized by having a means for controlling to switch the component using the correctness flag for each of the horizontal component and the vertical component of the above.

また、本発明の映像符号化装置において、前記制御手段は、前記所定のブロックが前記フレームの画面の上下辺より左右辺に近い場合は、前記差分ベクトル符号推定手段に対し前記差分ベクトルの水平成分の正負符号を先に決定させ、前記所定のブロックが前記フレームの画面の左右辺より上下辺に近い場合は、前記差分ベクトル符号推定手段に対し前記差分ベクトルの垂直成分の正負符号を先に決定させ、前記所定のブロックが前記フレームの画面の左右辺及び上下辺から等距離にある場合は、前記差分ベクトル符号推定手段に対し予め定めた順序で差分ベクトルの水平成分及び垂直成分の正負符号を決定させるように制御する手段を有することを特徴とする。 Further, in the video coding apparatus of the present invention, when the predetermined block is closer to the left and right sides than the upper and lower sides of the screen of the frame, the control means has a horizontal component of the difference vector with respect to the difference vector code estimation means. If the predetermined block is closer to the upper and lower sides than the left and right sides of the screen of the frame, the positive and negative codes of the vertical components of the difference vector are determined first by the difference vector code estimation means. When the predetermined block is at equal distances from the left and right sides and the top and bottom sides of the screen of the frame, the positive and negative codes of the horizontal component and the vertical component of the difference vector are assigned to the difference vector code estimation means in a predetermined order. It is characterized by having a means for controlling to make a decision.

更に、本発明の映像復号装置は、本発明の映像符号化装置によって伝送されるストリームを入力して読み込み、復号対象のフレーム内の所定のブロックについて前記差分ベクトルの絶対値及び前記可逆圧縮処理が施された正誤フラグを抽出するストリーム読込手段と、該所定のブロックに関する情報、前記差分ベクトルの絶対値、及び前記差分ベクトルに係る予測ベクトルを基にした予め定めた規則に従って前記差分ベクトルの正負符号を推定することにより、前記差分ベクトルの推定符号を決定する差分ベクトル符号推定手段と、前記可逆圧縮処理が施された正誤フラグに対し、当該所定のブロックの位置に応じたコンテキストに適応させた可逆復号処理を施すことにより復号した正誤フラグを生成するコンテキスト適応型の可逆復号手段と、当該復号した前記正誤フラグが真を示すときは、該差分ベクトルの推定符号を当該所定のブロックの差分ベクトルの正負符号とし、偽を示すときは、該差分ベクトルの推定符号を反転した符号を差分ベクトルの正負符号として決定する差分ベクトル符号決定手段と、当該所定のブロックの画像を復元するために、当該抽出した前記差分ベクトルの絶対値、及び前記差分ベクトル符号決定手段によって決定した差分ベクトルの正負符号を用いて、前記復号対象のフレーム内の当該所定のブロックの差分ベクトルを復元する差分ベクトル復元手段と、を備えることを特徴とする。 Further, the video decoding device of the present invention inputs and reads a stream transmitted by the video coding device of the present invention, and performs the absolute value of the difference vector and the reversible compression process for a predetermined block in the frame to be decoded. A positive / negative sign of the difference vector according to a predetermined rule based on a stream reading means for extracting the applied correctness flag, information about the predetermined block, an absolute value of the difference vector, and a prediction vector related to the difference vector. By estimating, the difference vector code estimation means for determining the estimated code of the difference vector and the correctness flag subjected to the reversible compression process are reversible adapted to the context according to the position of the predetermined block. A context-adaptive reversible decoding means that generates a decoded correct / incorrect flag by performing a decoding process, and when the decoded correct / incorrect flag indicates true, the estimated code of the difference vector is used as the difference vector of the predetermined block. When a positive / negative sign is used and a false sign is indicated, a difference vector code determining means for determining a code obtained by inverting the estimated code of the difference vector as a positive / negative code of the difference vector, and the extraction to restore the image of the predetermined block. A difference vector restoration means for restoring the difference vector of the predetermined block in the frame to be decoded by using the absolute value of the difference vector and the positive / negative sign of the difference vector determined by the difference vector sign determining means. It is characterized by having.

また、本発明の映像復号装置において、前記コンテキスト適応型の可逆復号手段は、当該所定のブロックの画面内の位置に応じてコンテキストとして参照するブロックとして予め定められた位置のブロックを参照して、前記可逆圧縮処理が施された正誤フラグに対し前記可逆復号処理を施すことを特徴とする。 Further, in the video decoding device of the present invention, the context-adaptive lossless decoding means refers to a block at a predetermined position as a block to be referred to as a context according to the position of the predetermined block in the screen. It is characterized in that the lossless decoding process is performed on the correct / incorrect flag to which the lossless compression process is performed.

また、本発明の映像復号装置において、前記コンテキスト適応型の可逆復号手段は、当該所定のブロックの画面内の位置に応じてコンテキストとして参照するブロックとして、当該所定のブロックが画面上下辺よりも画面左右辺に近い場合、当該所定のブロックの直上のブロックを参照し、当該所定のブロックが画面左右辺よりも画面上下辺に近い場合、当該所定のブロックの直左のブロックを参照し、当該所定のブロックが画面左右辺よりも画面上下辺から等距離にある場合、当該所定のブロックの直左、直左上、直上、及び直右上のうち予め定めた1以上のブロックを参照して、前記可逆圧縮処理が施された正誤フラグに対し前記可逆復号処理を施すことを特徴とする。 Further, in the video decoding device of the present invention, the context-adaptive reversible decoding means is a block referred to as a context according to the position of the predetermined block in the screen, and the predetermined block is a screen rather than the upper and lower sides of the screen. If it is close to the left and right sides, it refers to the block directly above the predetermined block, and if the predetermined block is closer to the upper and lower sides of the screen than the left and right sides of the screen, it refers to the block directly to the left of the predetermined block. When the block of is at an equal distance from the upper and lower sides of the screen than the left and right sides of the screen, the reversible of the block is referred to one or more predetermined blocks of the predetermined block directly to the left, to the upper left, to the upper left, and to the upper right of the screen. It is characterized in that the reversible decoding process is performed on the correct / incorrect flag that has been compressed.

更に、本発明のプログラムは、コンピューターを、本発明の映像符号化装置として機能させるためのプログラムとして構成する。 Further, the program of the present invention is configured as a program for operating the computer as the video coding apparatus of the present invention.

更に、本発明のプログラムは、コンピューターを、本発明の映像復号装置として機能させるためのプログラムとして構成する。 Further, the program of the present invention is configured as a program for operating the computer as the video decoding device of the present invention.

本発明によれば、動き補償予測を用いた映像符号化方式における差分ベクトルの正負符号(+,-)に関して可逆圧縮が可能となり、少なくとも映像を構成するフレームの画面端に位置する予測対象の着目ブロックにおける差分ベクトルの正負符号(+,-)に係る圧縮効率が向上可能となる。 According to the present invention, lossless compression is possible with respect to the positive and negative codes (+,-) of the difference vector in the video coding method using motion compensation prediction, and attention is paid to the prediction target located at least at the screen edge of the frame constituting the video. The compression efficiency related to the positive and negative signs (+,-) of the difference vector in the block can be improved.

本発明による一実施形態の映像符号化装置の概略構成を示すブロック図である。It is a block diagram which shows the schematic structure of the image coding apparatus of one Embodiment by this invention. 本発明による一実施形態の映像復号装置の概略構成を示すブロック図である。It is a block diagram which shows the schematic structure of the image decoding apparatus of one Embodiment by this invention. 本発明による一実施形態の映像符号化装置及び映像復号装置における実施例1の差分ベクトルの正負符号の推定処理を示すフローチャートである。It is a flowchart which shows the estimation process of the positive / negative code of the difference vector of Example 1 in the image coding apparatus and the image decoding apparatus of one Embodiment by this invention. (a),(b)は、本発明による一実施形態の映像符号化装置及び映像復号装置における実施例1の差分ベクトルの正負符号の推定処理に係る処理の説明図である。(A) and (b) are explanatory views of the process relating to the estimation process of the positive / negative code of the difference vector of Example 1 in the image coding apparatus and the image decoding apparatus of one Embodiment by this invention. (a),(b),(c)は、本発明による一実施形態の映像復号装置における実施例1の差分ベクトルの正負符号の推定処理に係る着目ブロックと候補ベクトル、及び候補ベクトルにそれぞれ対応するブロックに関する説明図である。(A), (b), and (c) correspond to the block of interest, the candidate vector, and the candidate vector related to the estimation processing of the positive and negative signs of the difference vector of Example 1 in the video decoding apparatus of one embodiment according to the present invention, respectively. It is explanatory drawing about the block to do. 本発明による一実施形態の映像符号化装置及び映像復号装置における実施例1の差分ベクトルの正負符号の推定処理に係るパン動作時の説明図である。It is explanatory drawing at the time of a pan operation which concerns on the estimation processing of the positive and negative code of the difference vector of Example 1 in the video coding apparatus and the video decoding apparatus of one Embodiment by this invention. 本発明による一実施形態の映像符号化装置及び映像復号装置に係る正誤フラグを利用する領域と、従来技法と同様に正負符号の+/-を1/0のビット表現とする領域を持つフレームの説明図である。A frame having a region for using a correct / incorrect flag according to the video coding device and the video decoding device according to the present invention and a region where +/- of a positive / negative code is represented by 1/0 as in the conventional technique. It is explanatory drawing. 本発明による一実施形態の映像復号装置における一実施例の差分ベクトルの正負符号の決定処理を示すフローチャートである。It is a flowchart which shows the determination process of the positive / negative sign of the difference vector of one Example in the video decoding apparatus of one Embodiment by this invention. (a),(b),(c)は、本発明による一実施形態の映像符号化装置及び映像復号装置におけるコンテキスト適応型の可逆圧縮/復号処理に係るコンテキストとして参照するブロックの説明図である。(A), (b), and (c) are explanatory views of a block referred to as a context related to a context-adaptive lossless compression / decoding process in the video coding device and the video decoding device of one embodiment according to the present invention. .. 本発明による一実施形態の映像符号化装置及び映像復号装置における実施例2の差分ベクトルの正負符号の推定処理を示すフローチャートである。It is a flowchart which shows the estimation process of the positive / negative code of the difference vector of Example 2 in the image coding apparatus and the image decoding apparatus of one Embodiment by this invention. 本発明による一実施形態の映像符号化装置及び映像復号装置における実施例3の差分ベクトルの正負符号の推定処理を示すフローチャートである。It is a flowchart which shows the estimation process of the positive / negative code of the difference vector of Example 3 in the image coding apparatus and the image decoding apparatus of one Embodiment by this invention.

(用語の定義)
まず、動きベクトルに関して、MPEG-2/H.262方式のように動きベクトルそのものを伝送する場合や、MPEG-H HEVC/H.265方式のように予測ベクトルと差分ベクトルの和として伝送する場合などがある。そこで、本発明に係る映像符号化装置1及び映像復号装置2にて用いる動きベクトルに関して、一般化して述べるために、式(1)を満たすものとして説明する。
(Definition of terms)
First, regarding the motion vector, when the motion vector itself is transmitted as in the MPEG-2 / H.262 method, or when it is transmitted as the sum of the prediction vector and the difference vector as in the MPEG-H HEVC / H.265 method, etc. There is. Therefore, in order to generalize the motion vector used in the video coding device 1 and the video decoding device 2 according to the present invention, the motion vector will be described as satisfying the equation (1).

動きベクトル = 予測ベクトル + 差分ベクトル(1) Motion vector = Prediction vector + Difference vector (1)

式(1)の「予測ベクトル」は、そのベクトルそのものを伝送せずに、所定の番号等を伝送し、その番号等から予め定められた規則によりベクトルを算出するデータを意味する。また、式(1)の「差分ベクトル」は、ベクトルそのものを伝送するデータを意味する。 The "prediction vector" in the equation (1) means data in which a predetermined number or the like is transmitted without transmitting the vector itself, and a vector is calculated from the number or the like according to a predetermined rule. Further, the "difference vector" in the equation (1) means data for transmitting the vector itself.

本発明は式(1)の予測ベクトルには直接関連せず、差分ベクトルの正負符号に直接関連するものであるため、図1及び図2を参照して後述する本発明による一実施形態の映像符号化装置1及び映像復号装置2では、差分ベクトルの正負符号の伝送に関する主要な構成要素のみを図示して説明する。 Since the present invention is not directly related to the prediction vector of the equation (1) but directly to the positive and negative codes of the difference vector, the image of the embodiment according to the present invention described later with reference to FIGS. 1 and 2. In the coding device 1 and the video decoding device 2, only the main components related to the transmission of the positive and negative codes of the difference vector will be illustrated and described.

尚、MPEG-H HEVC/H.265方式の場合、式(1)の予測ベクトルはMPEG-H HEVC/H.265方式の予測ベクトル(PMV)、式(1)の差分ベクトルはMPEG-H HEVC/H.265方式の差分ベクトル(MVD)にそのまま対応し、本発明に係る映像符号化装置1及び映像復号装置2を適用可能である。 In the case of the MPEG-H HEVC / H.265 method, the prediction vector of the formula (1) is the prediction vector (PMV) of the MPEG-H HEVC / H.265 method, and the difference vector of the formula (1) is the MPEG-H HEVC. It corresponds to the difference vector (MVD) of the / H.265 method as it is, and the video coding device 1 and the video decoding device 2 according to the present invention can be applied.

また、予測ベクトルを用いない映像符号化方式の場合、式(1)の予測ベクトルを0、式(1)の差分ベクトルを当該方式の動きベクトルとして扱うことができ、一般性を失わずに、本発明に係る映像符号化装置1及び映像復号装置2を適用可能である。 Further, in the case of the video coding method that does not use the prediction vector, the prediction vector of the formula (1) can be treated as 0 and the difference vector of the formula (1) can be treated as the motion vector of the method, without losing the generality. The video coding device 1 and the video decoding device 2 according to the present invention can be applied.

また、近年では、動きベクトルを算出するために、予測ベクトル、差分ベクトルに加え、予測ベクトルの算出に関する第三のベクトルを加算する映像符号化方式についても検討されているが、この場合でも、式(1)の予測ベクトルを、当該方式の予測ベクトル+当該方式の第三のベクトルとし、式(1)の差分ベクトルを当該方式の差分ベクトルとして扱うことができ、一般性を失わずに、本発明に係る映像符号化装置1及び映像復号装置2を適用可能である。 Further, in recent years, in order to calculate the motion vector, a video coding method in which a third vector related to the calculation of the prediction vector is added in addition to the prediction vector and the difference vector has been studied. The prediction vector of (1) can be treated as the prediction vector of the method + the third vector of the method, and the difference vector of the formula (1) can be treated as the difference vector of the method. The video coding device 1 and the video decoding device 2 according to the present invention can be applied.

以下、図1及び図2を参照して、本発明による一実施形態の映像符号化装置1及び映像復号装置2について説明する。 Hereinafter, the video coding device 1 and the video decoding device 2 according to the embodiment of the present invention will be described with reference to FIGS. 1 and 2.

(映像符号化装置)
図1は、本発明による一実施形態の映像符号化装置1の概略構成を示すブロック図である。映像符号化装置1は、画像符号化部10、差分ベクトル符号推定部13、正誤フラグ生成部14、コンテキスト適応型可逆圧縮部15、正負二値化部16、切替部17、設定制御部18、及びストリーム生成部19を備える。画像符号化部10は、動き補償予測部11及び差分ベクトル生成部12を含む。
(Video coding device)
FIG. 1 is a block diagram showing a schematic configuration of a video coding device 1 according to an embodiment of the present invention. The video coding device 1 includes an image coding unit 10, a difference vector code estimation unit 13, a correct / incorrect flag generation unit 14, a context-adaptive lossless compression unit 15, a positive / negative binarization unit 16, a switching unit 17, and a setting control unit 18. And a stream generation unit 19. The image coding unit 10 includes a motion compensation prediction unit 11 and a difference vector generation unit 12.

画像符号化部10は、符号化対象の映像におけるフレーム画像を入力してブロック分割し、ブロック単位でイントラ予測及びインター予測を行う機能部である。本発明は、インター予測に係る動き補償予測に基づく差分ベクトルの正負符号の圧縮/復号に関する。そこで、図1では、簡潔に、画像符号化部10は、着目ブロックについて動き補償予測に基づく差分ベクトルを生成する機能を有するとして、動き補償予測部11及び差分ベクトル生成部12のみ図示し、予測ベクトルの伝送処理や局部復号処理を含むその他の処理の図示及びその説明は省略している。 The image coding unit 10 is a functional unit that inputs a frame image of a video to be encoded, divides it into blocks, and performs intra-prediction and inter-prediction in block units. The present invention relates to compression / decoding of a positive / negative sign of a difference vector based on motion compensation prediction according to inter-prediction. Therefore, in FIG. 1, simply assuming that the image coding unit 10 has a function of generating a difference vector based on the motion compensation prediction for the block of interest, only the motion compensation prediction unit 11 and the difference vector generation unit 12 are illustrated and predicted. Illustrations and explanations of other processes including vector transmission processing and local decoding processing are omitted.

尚、動き補償予測部11は、入力画像の着目ブロックと局部復号済の参照ブロックとを用いた動き検出に基づいて動き補償予測を行い、予測画像のブロックを生成し差分ベクトル生成部12に出力する。 The motion compensation prediction unit 11 performs motion compensation prediction based on motion detection using the block of interest of the input image and the locally decoded reference block, generates a block of the predicted image, and outputs the block to the difference vector generation unit 12. do.

また、差分ベクトル生成部12は、当該動き検出によって生成される動きベクトルについて、式(1)に示したように、予測画像のブロックの位置を示す動きベクトルについてインデックス等の所定の番号で近似される予測ベクトルに対しベクトル加算する差分ベクトルを生成する。 Further, the difference vector generation unit 12 approximates the motion vector generated by the motion detection with a predetermined number such as an index for the motion vector indicating the position of the block of the predicted image as shown in the equation (1). Generate a difference vector that adds a vector to the predicted vector.

ここで、画像符号化部10は、差分ベクトル生成部12によって生成した差分ベクトルについて、その差分ベクトルの絶対値と差分ベクトルの正負符号とに分けて出力する。 Here, the image coding unit 10 outputs the difference vector generated by the difference vector generation unit 12 separately into the absolute value of the difference vector and the positive / negative sign of the difference vector.

差分ベクトル符号推定部13は、画像符号化部10から、当該着目ブロックに関する着目ブロック情報(着目ブロックの位置、サイズ、及びフレーム画像のサイズを含む)、予測ベクトル、及び差分ベクトルの絶対値を入力し、予め定めた規則(即ち、後述する「差分ベクトルの正負符号の推定処理」)に基づいて、当該差分ベクトルの正負符号を推定し、その推定した正負符号を示す差分ベクトル推定符号を正誤フラグ生成部14に出力する。 The difference vector code estimation unit 13 inputs from the image coding unit 10 the block information of interest (including the position, size, and size of the frame image of the block of interest), the prediction vector, and the absolute value of the difference vector regarding the block of interest. Then, the positive / negative sign of the difference vector is estimated based on a predetermined rule (that is, "estimation processing of the positive / negative sign of the difference vector" described later), and the difference vector estimation code indicating the estimated positive / negative sign is set as a correct / incorrect flag. Output to the generation unit 14.

正誤フラグ生成部14は、差分ベクトル符号推定部13から得られる差分ベクトル推定符号と、画像符号化部10から得られる差分ベクトルの正負符号とを比較して、両者が等しい場合は「真」、異なる場合は「偽」を示す正誤フラグを生成し、コンテキスト適応型可逆圧縮部15に出力する。 The correct / incorrect flag generation unit 14 compares the difference vector estimation code obtained from the difference vector code estimation unit 13 with the positive / negative code of the difference vector obtained from the image coding unit 10, and if both are equal, "true". If they are different, a correct / incorrect flag indicating "false" is generated and output to the context-adaptive reversible compression unit 15.

コンテキスト適応型可逆圧縮部15は、画像符号化部10から当該着目ブロック情報を入力し、且つ正誤フラグ生成部14から正誤フラグを入力し、当該着目ブロック情報に基づいてコンテキストモデルを指定し、当該正誤フラグに対してコンテキスト適応型の可逆圧縮符号化処理を施すことにより、可逆圧縮した正誤フラグを生成し切替部17に出力する。尚、コンテキスト適応型の可逆圧縮符号化処理は、例えばMPEG-H HEVC/H.265方式に準じる映像符号化方式とする場合ではCABAC(Context-based Adaptive Binary Arithmetic Coding)を、AVC/H.264方式に準じる映像符号化方式とする場合ではCABAC又はCAVLC(Context-based Adaptive Variable Length Coding)を利用できる。即ち、コンテキスト適応型可逆圧縮部15は、コンテキストモデルに従い、当該着目ブロックの位置における周囲の状況(コンテキスト)に応じて適応的に2値化する符号化を行う。 The context-adaptive lossless compression unit 15 inputs the relevant block information of interest from the image coding unit 10, inputs the correct / incorrect flag from the correct / incorrect flag generation unit 14, specifies a context model based on the block information of interest, and determines the context model. By performing a context-adaptive lossless compression coding process on the correct / incorrect flag, a losslessly compressed correct / incorrect flag is generated and output to the switching unit 17. For the context-based lossless compression coding process, for example, in the case of a video coding method according to the MPEG-H HEVC / H.265 method, CABAC (Context-based Adaptive Binary Arithmetic Coding) is used as AVC / H.264. CABAC or CAVLC (Context-based Adaptive Variable Length Coding) can be used when the video coding method conforms to the method. That is, the context-adaptive lossless compression unit 15 performs coding according to the context model and adaptively binarizing according to the surrounding situation (context) at the position of the block of interest.

ただし、本実施形態における映像符号化装置1では、正誤フラグの可逆圧縮に係るコンテキストモデルとして、図9を参照して詳細は後述するが、着目ブロック周辺におけるどのブロックをコンテキストとして参照するかについての好適例がある。 However, in the video coding apparatus 1 of the present embodiment, as a context model related to lossless compression of the correct / incorrect flag, details will be described later with reference to FIG. 9, but which block around the block of interest is referred to as a context. There are good examples.

正負二値化部16は、従来技法と同様に、正負符号の+/-を1/0のビット表現とする二値化処理を行って切替部17に出力する。 The positive / negative binarization unit 16 performs binarization processing in which +/- of the positive / negative sign is represented by a bit of 1/0, and outputs the result to the switching unit 17, as in the conventional technique.

切替部17は、設定制御部18の制御により、当該着目ブロックの差分ベクトルの正負符号の伝送について、コンテキスト適応型可逆圧縮部15によって可逆圧縮した正誤フラグにより伝送するか、正負二値化部16によって単純に二値化した正負符号により伝送するかを切り替えて、ストリーム生成部19に出力する機能部である。 Under the control of the setting control unit 18, the switching unit 17 transmits the positive / negative code of the difference vector of the block of interest by the correct / incorrect flag reversibly compressed by the context-adaptive lossless compression unit 15, or the positive / negative binarization unit 16. It is a functional unit that switches whether to transmit by simply binarizing positive and negative codes and outputs it to the stream generation unit 19.

設定制御部18は、フレーム画像における当該着目ブロックの位置に応じて、本発明に係る「差分ベクトルの正負符号の推定処理」に係るコンテキストモデルを指定する領域と、従来技法と同様に正負符号の+/-を1/0のビット表現とする領域を予め定めた設定情報を有し、当該設定情報に基づいて切替部17における切り替えを制御する。本例では、設定制御部18が当該設定情報をストリーム生成部19に出力する例を説明するが、当該設定情報について映像符号化装置1及び映像復号装置2間で予め定めておくときは映像符号化装置1から映像復号装置2へと伝送する必要はない。 The setting control unit 18 has an area for designating a context model according to the "estimation process of the positive / negative sign of the difference vector" according to the present invention according to the position of the block of interest in the frame image, and the positive / negative code as in the conventional technique. It has setting information in which a region in which +/- is expressed as 1/0 bit is predetermined, and controls switching in the switching unit 17 based on the setting information. In this example, an example in which the setting control unit 18 outputs the setting information to the stream generation unit 19 will be described, but when the setting information is predetermined between the video coding device 1 and the video decoding device 2, the video code is used. It is not necessary to transmit from the computer 1 to the video decoding device 2.

尚、図1において、設定制御部18は、切替部17における切り替えを制御しコンテキスト適応型可逆圧縮部15と正負二値化部16の出力の切り替えを行う構成例を示しているが、差分ベクトル符号推定部13、正誤フラグ生成部14及びコンテキスト適応型可逆圧縮部15の動作と、正負二値化部16の動作の切り替えを行うよう構成してもよい。 Note that FIG. 1 shows a configuration example in which the setting control unit 18 controls the switching in the switching unit 17 and switches the output of the context-adaptive lossless compression unit 15 and the positive / negative binarization unit 16. The operation of the code estimation unit 13, the correct / incorrect flag generation unit 14, and the context-adaptive lossless compression unit 15 may be switched between the operation of the positive / negative binarization unit 16.

ストリーム生成部19は、画像符号化部10から得られる当該着目ブロックに対応する差分ベクトルの絶対値に対し、切替部17から得られる当該可逆圧縮後の正誤フラグ又は当該単純に二値化した正負符号を対応付けて伝送するためのストリームを生成し外部に出力する。本例では、設定制御部18から得られる当該設定情報が、着目ブロック情報(着目ブロックの位置、サイズ、及びフレーム画像のサイズを含む)とともに、当該ストリーム中のヘッダ(スライス又はタイルのヘッダ、ピクチャのヘッダ、及びシーケンスのヘッダのいずれか1つ以上を含む)に埋め込まれる。尚、ストリーム中には予測ベクトル等の復号に必要な情報も含まれる。差分ベクトルの正負符号以外の伝送に関しては従来技法に基づく任意の方法が利用できるため、その説明は省略する。 The stream generation unit 19 determines the correct / incorrect flag after the lossless compression obtained from the switching unit 17 or the simply binarized positive / negative with respect to the absolute value of the difference vector corresponding to the block of interest obtained from the image coding unit 10. Generates a stream for transmission by associating the code and outputs it to the outside. In this example, the setting information obtained from the setting control unit 18 is the header (slice or tile header, picture) in the stream together with the block information of interest (including the position, size, and size of the frame image of the block of interest). And one or more of the headers of the sequence). The stream also includes information necessary for decoding such as a prediction vector. Since any method based on the conventional technique can be used for transmission of the difference vector other than the positive and negative signs, the description thereof will be omitted.

このように、映像符号化装置1は、着目ブロックについて動き補償予測に基づく差分ベクトルを生成し、その差分ベクトルの正負符号について、着目ブロック情報、差分ベクトルの絶対値、及び差分ベクトルに係る予測ベクトルを基にした予め定めた規則(即ち、後述する「差分ベクトルの正負符号の推定処理」)に従って当該差分ベクトルの正負符号を推定する。そして、映像符号化装置1は、当該差分ベクトルについて推定した正負符号(差分ベクトル推定符号)が差分ベクトル生成時に得られる差分ベクトルの正負符号と等しければ真とし、異なっていれば偽とする正誤フラグを生成し、コンテキスト適応型の可逆圧縮処理を行って伝送する。 As described above, the video coding apparatus 1 generates a difference vector based on motion compensation prediction for the block of interest, and regarding the positive and negative signs of the difference vector, the block information of interest, the absolute value of the difference vector, and the prediction vector related to the difference vector. The positive and negative signs of the difference vector are estimated according to a predetermined rule based on (that is, "estimation processing of the positive and negative signs of the difference vector" described later). Then, the video coding apparatus 1 sets the positive / negative sign (difference vector estimation code) estimated for the difference vector to be true if it is equal to the positive / negative sign of the difference vector obtained at the time of generating the difference vector, and false if it is different. Is generated, and a context-adaptive reversible compression process is performed for transmission.

これにより、発生確率に偏りが生じるフレーム画像内の着目ブロックの場合に、その差分ベクトルの正負符号(+,-)について正誤フラグで表現し、その圧縮(可逆圧縮)が可能となり、より映像符号化に係る圧縮効率を向上させることが可能となる。 As a result, in the case of a block of interest in a frame image in which the occurrence probability is biased, the positive / negative sign (+,-) of the difference vector is expressed by a correct / incorrect flag, and its compression (lossless compression) becomes possible, resulting in a more video code. It is possible to improve the compression efficiency related to the conversion.

(映像復号装置)
図2は、本発明による一実施形態の映像復号装置2の概略構成を示すブロック図である。映像復号装置2は、ストリーム読込部20、画像復号部21、設定制御部24、切替部25、コンテキスト適応型可逆復号部26、差分ベクトル符号推定部27、差分ベクトル符号決定部28、及び正負決定部29を備える。画像復号部21は、差分ベクトル復元部22及び動き補償予測部23を含む。
(Video decoder)
FIG. 2 is a block diagram showing a schematic configuration of the video decoding apparatus 2 according to the embodiment of the present invention. The video decoding device 2 includes a stream reading unit 20, an image decoding unit 21, a setting control unit 24, a switching unit 25, a context-adaptive reversible decoding unit 26, a difference vector code estimation unit 27, a difference vector code determination unit 28, and positive / negative determination. A unit 29 is provided. The image decoding unit 21 includes a difference vector restoration unit 22 and a motion compensation prediction unit 23.

ストリーム読込部20は、映像符号化装置1から伝送されたストリームを読み込み、着目ブロックにおける差分ベクトルの絶対値に関する信号については画像復号部21及び差分ベクトル符号推定部27に出力し、当該差分ベクトルの絶対値に対応付けて伝送されている、当該可逆圧縮後の正誤フラグ又は当該単純に二値化した正負符号については切替部25に出力する。 The stream reading unit 20 reads the stream transmitted from the video coding device 1, outputs a signal relating to the absolute value of the difference vector in the block of interest to the image decoding unit 21 and the difference vector code estimation unit 27, and outputs the signal related to the absolute value of the difference vector to the image decoding unit 21 and the difference vector code estimation unit 27. The correct / incorrect flag after reversible compression or the simply binarized positive / negative code transmitted in association with the absolute value is output to the switching unit 25.

画像復号部21は、ブロック単位でイントラ予測及びインター予測を行って復号を行う機能部である。本発明は、インター予測に係る動き補償予測に基づく差分ベクトルの正負符号の圧縮/復号に関する。そこで、図2では、簡潔に、画像復号部21は、着目ブロックについて復元した差分ベクトル、予測ベクトル、及び復号済の参照ブロックを用いて動き補償予測を行い、伝送された画像を復元する機能を有するとして、差分ベクトル復元部22及び動き補償予測部23のみ図示し、予測ベクトルの復号処理を含むその他の処理の図示及びその説明は省略している。 The image decoding unit 21 is a functional unit that performs intra-prediction and inter-prediction in block units to perform decoding. The present invention relates to compression / decoding of a positive / negative sign of a difference vector based on motion compensation prediction according to inter-prediction. Therefore, in FIG. 2, briefly, the image decoding unit 21 has a function of performing motion compensation prediction using the difference vector, the prediction vector, and the decoded reference block restored for the block of interest, and restoring the transmitted image. Only the difference vector restoration unit 22 and the motion compensation prediction unit 23 are shown, and the illustration and description of other processes including the prediction vector decoding process are omitted.

尚、差分ベクトル復元部22は、ストリーム読込部20から入力される差分ベクトルの絶対値と、当該差分ベクトルの絶対値に対応付けて伝送されていた、当該可逆圧縮後の正誤フラグ又は当該単純に二値化した正負符号とを用いて、差分ベクトルを復元する。 The difference vector restoration unit 22 is a correct / incorrect flag after reversible compression or simply, which is transmitted in association with the absolute value of the difference vector input from the stream reading unit 20 and the absolute value of the difference vector. The difference vector is restored using the binarized positive and negative codes.

また、動き補償予測部23は、差分ベクトル復元部22によって復元した差分ベクトル、伝送される予測ベクトル、及び復号済の参照ブロックを用いて動き補償予測を行い、当該着目ブロックの画像を復元する。 Further, the motion compensation prediction unit 23 performs motion compensation prediction using the difference vector restored by the difference vector restoration unit 22, the transmitted prediction vector, and the decoded reference block, and restores the image of the block of interest.

設定制御部24は、フレーム画像における当該着目ブロックの位置に応じて、本発明に係る「差分ベクトルの正負符号の推定処理」に係るコンテキストモデルを指定する領域と、従来技法と同様に正負符号の+/-を1/0のビット表現とする領域を予め定めた設定情報に基づいて切替部25における切り替えを制御する。本例では、当該設定情報が当該ストリーム中のヘッダ(スライス又はタイルのヘッダ、ピクチャのヘッダ、及びシーケンスのヘッダのいずれか1つ以上を含む)に埋め込まれている。そこで、設定制御部24は、当該設定情報を抽出し、その抽出した設定情報に基づいて、切替部25における切り替えを制御する。尚、当該設定情報について映像符号化装置1及び映像復号装置2間で予め定めておくときは映像符号化装置1から映像復号装置2へと伝送する必要はなく、当該設定情報をヘッダに埋め込む必要もない。 The setting control unit 24 has an area for designating a context model according to the "estimation process of the positive / negative sign of the difference vector" according to the present invention according to the position of the block of interest in the frame image, and the positive / negative code as in the conventional technique. The switching in the switching unit 25 is controlled based on the preset setting information in the area where +/- is represented by 1/0. In this example, the setting information is embedded in a header in the stream (including one or more of a slice or tile header, a picture header, and a sequence header). Therefore, the setting control unit 24 extracts the setting information and controls switching in the switching unit 25 based on the extracted setting information. When the setting information is predetermined between the video coding device 1 and the video decoding device 2, it is not necessary to transmit the setting information from the video coding device 1 to the video decoding device 2, and it is necessary to embed the setting information in the header. Nor.

切替部25は、設定制御部24の制御により、可逆圧縮した正誤フラグと単純に二値化した差分ベクトルの正負符号を切り替えて、それぞれコンテキスト適応型可逆復号部26及び正負決定部29に出力する機能部である。 Under the control of the setting control unit 24, the switching unit 25 switches between the positive / negative sign of the losslessly compressed correct / incorrect flag and the simply binarized difference vector, and outputs them to the context-adaptive lossless decoding unit 26 and the positive / negative determination unit 29, respectively. It is a functional part.

本例では、図2において、設定制御部24は、切替部25における切り替えを制御し、それぞれ後述するコンテキスト適応型可逆復号部16と正負決定部29への入力の切り替えを行う構成例を示しているが、それぞれ後述するコンテキスト適応型可逆復号部26、差分ベクトル符号推定部27、及び差分ベクトル符号決定部28の動作と、正負決定部29の動作の切り替えを行うよう構成してもよい。 In this example, FIG. 2 shows a configuration example in which the setting control unit 24 controls switching in the switching unit 25 and switches inputs to the context-adaptive reversible decoding unit 16 and the positive / negative determination unit 29, which will be described later, respectively. However, the operation of the context-adaptive reversible decoding unit 26, the difference vector code estimation unit 27, and the difference vector code determination unit 28, which will be described later, may be switched between the operation of the positive / negative determination unit 29, respectively.

コンテキスト適応型可逆復号部26は、ストリーム読込部20から、当該着目ブロック情報、及び切替部25を介して映像符号化装置1側で可逆圧縮された正誤フラグを入力し、当該着目ブロック情報に基づいてコンテキストモデルを指定し、当該正誤フラグに対してコンテキスト適応型の可逆復号処理を施すことにより、復号した正誤フラグを生成し差分ベクトル符号決定部28に出力する。尚、コンテキスト適応型の可逆復号処理は、例えば、MPEG-H HEVC/H.265方式に準じる映像符号化方式とする場合ではCABACを利用でき、一方、AVC/H.264方式に準じる映像符号化方式とする場合ではCABAC又はCAVLCを利用できる。即ち、コンテキスト適応型可逆復号部26は、コンテキストモデルに従い、当該着目ブロックの位置における周囲の状況(コンテキスト)に応じて適応的に2値化する復号を行う。また、当該着目ブロック情報(着目ブロックの位置、サイズ、及びフレーム画像のサイズを含む)は、当該ストリーム中のヘッダ(スライス又はタイルのヘッダ、ピクチャのヘッダ、及びシーケンスのヘッダのいずれか1つ以上を含む)に埋め込まれている。 The context-adaptive lossless decoding unit 26 inputs the attention block information from the stream reading unit 20 and the losslessly compressed correct / incorrect flag on the video encoding device 1 side via the switching unit 25, and is based on the attention block information. By designating a context model and performing a context-adaptive lossless decoding process on the correct / incorrect flag, the decoded correct / incorrect flag is generated and output to the difference vector coding determination unit 28. For the context-adaptive reversible decoding process, for example, CABAC can be used when the video coding method conforms to the MPEG-H HEVC / H.265 method, while the video coding conforms to the AVC / H.264 method. In the case of the method, CABAC or CAVLC can be used. That is, the context-adaptive reversible decoding unit 26 performs decoding that is adaptively binarized according to the surrounding situation (context) at the position of the block of interest according to the context model. Further, the block information of interest (including the position, size, and size of the frame image of the block of interest) is one or more of the headers (slice or tile header, picture header, and sequence header) in the stream. Is embedded in).

ただし、本実施形態における映像復号装置2では、正誤フラグの可逆圧縮に係るコンテキストモデルとして、図9を参照して詳細は後述するが、着目ブロック周辺におけるどのブロックをコンテキストとして参照するかについての好適例がある。 However, in the video decoding device 2 of the present embodiment, as a context model related to lossless compression of the correct / incorrect flag, details will be described later with reference to FIG. 9, but it is suitable for which block around the block of interest is referred to as the context. There is an example.

差分ベクトル符号推定部27は、映像符号化装置1側の差分ベクトル符号推定部13と同様の処理を行う。差分ベクトル符号推定部27は、ストリーム読込部20から当該着目ブロック情報及び差分ベクトルの絶対値を入力し、画像復号部21から予測ベクトルを入力し、当該予め定めた規則(即ち、後述する「差分ベクトルの正負符号の推定処理」)に基づいて、当該差分ベクトルの正負符号を推定し、その推定した正負符号を示す差分ベクトル推定符号を差分ベクトル符号決定部28に出力する。 The difference vector code estimation unit 27 performs the same processing as the difference vector code estimation unit 13 on the video coding device 1 side. The difference vector code estimation unit 27 inputs the block information of interest and the absolute value of the difference vector from the stream reading unit 20, inputs the prediction vector from the image decoding unit 21, and the predetermined rule (that is, the “difference” described later). Based on the vector positive / negative sign estimation process ”), the positive / negative sign of the difference vector is estimated, and the difference vector estimation code indicating the estimated positive / negative sign is output to the difference vector code determination unit 28.

差分ベクトル符号決定部28は、コンテキスト適応型可逆復号部26から得られる正誤フラグが「真」を示すときは、差分ベクトル符号推定部27から得られる差分ベクトル推定符号をそのまま差分ベクトルの正負符号として決定して画像復号部21に出力し、当該正誤フラグが「偽」を示すときは、差分ベクトル推定符号を反転した符号を差分ベクトルの正負符号として決定して画像復号部21に出力する。 When the correctness flag obtained from the context-adaptive reversible decoding unit 26 indicates "true", the difference vector code determination unit 28 uses the difference vector estimation code obtained from the difference vector code estimation unit 27 as the positive / negative code of the difference vector as it is. It is determined and output to the image decoding unit 21, and when the correctness flag indicates "false", the code obtained by reversing the difference vector estimation code is determined as the positive / negative code of the difference vector and output to the image decoding unit 21.

正負決定部29は、切替部25を介して得られる単純に二値化された差分ベクトルの正負符号の0/1のビット表現に対応して、従来技法と同様に、当該差分ベクトルの正負符号の+/-を決定し、画像復号部21に出力する。 The positive / negative determination unit 29 corresponds to a bit representation of 0/1 of the positive / negative sign of the simply binarized difference vector obtained via the switching unit 25, and the positive / negative code of the difference vector is the same as in the conventional technique. +/- Is determined and output to the image decoding unit 21.

これにより、画像復号部21における差分ベクトル復元部22は、ストリーム読込部20から入力される差分ベクトルの絶対値と、当該差分ベクトルの絶対値に対応付けて伝送されていた、当該可逆圧縮後の正誤フラグ又は当該単純に二値化した正負符号とを用いて、差分ベクトルを復元する。 As a result, the difference vector restoration unit 22 in the image decoding unit 21 has been transmitted in association with the absolute value of the difference vector input from the stream reading unit 20 and the absolute value of the difference vector, after the reversible compression. The difference vector is restored using the correctness flag or the simply binarized positive / negative sign.

このように、映像復号装置2は、ストリームから読み込んだ着目ブロックに関する差分ベクトルの正負符号について、当該予め定めた規則(即ち、後述する「差分ベクトルの正負符号の推定処理」)に基づいて当該差分ベクトルの正負符号を推定し、ストリームから読み込んだコンテキスト適応型の可逆圧縮が施された正誤フラグを可逆復号する。そして、映像復号装置2は、当該正誤フラグが真を示すときは、当該推定した正負符号(差分ベクトル推定符号)を差分ベクトルの正負符号とし、偽を示すときは、当該推定した正負符号(差分ベクトル推定符号)を反転した符号を差分ベクトルの正負符号として決定する。 As described above, the video decoding device 2 determines the positive / negative sign of the difference vector related to the block of interest read from the stream based on the predetermined rule (that is, “estimation processing of the positive / negative sign of the difference vector” described later). The positive and negative signs of the vector are estimated, and the losslessly compressed positive / false flag read from the stream and subjected to lossless compression is losslessly decoded. Then, the video decoding device 2 uses the estimated positive / negative sign (difference vector estimated code) as the positive / negative sign of the difference vector when the correct / incorrect flag indicates true, and when the positive / negative code indicates false, the estimated positive / negative code (difference). The sign obtained by inverting the vector estimation code) is determined as the positive / negative sign of the difference vector.

これにより、発生確率に偏りが生じるフレーム画像内の着目ブロックの場合に、その差分ベクトルの正負符号(+,-)について圧縮(可逆圧縮)された正誤フラグの復号(可逆復号)が可能となり、映像符号化に係る圧縮効率をより向上させることが可能となる。 As a result, in the case of a block of interest in a frame image in which the occurrence probability is biased, it becomes possible to decode (losslessly compress) the correct / incorrect flag compressed (lossless compression) for the positive and negative codes (+,-) of the difference vector. It is possible to further improve the compression efficiency related to video coding.

(実施例1:差分ベクトルの正負符号の推定処理)
図3は、本発明による一実施形態の映像符号化装置1(差分ベクトル符号推定部13)、及び映像復号装置2(差分ベクトル符号推定部27)における実施例1の差分ベクトルの正負符号の推定処理を示すフローチャートである。
(Example 1: Estimating processing of positive / negative sign of difference vector)
FIG. 3 shows the estimation of the positive and negative codes of the difference vector of Example 1 in the video coding device 1 (difference vector code estimation unit 13) and the video decoding device 2 (difference vector code estimation unit 27) of the embodiment according to the present invention. It is a flowchart which shows the process.

まず、差分ベクトル符号推定部13,27は、着目ブロックについて、差分ベクトルの絶対値を入力(読み込み)(ステップS11)、差分ベクトルの絶対値=0であるか否かを判定する(ステップS12)。 First, the difference vector code estimation units 13 and 27 input (read) the absolute value of the difference vector (step S11) for the block of interest, and determine whether or not the absolute value of the difference vector = 0 (step S12). ..

差分ベクトルの絶対値のビットストリームからの読み込み方法については、従来技法と同様の方法を用いればよい。例えば、ビットストリームからゴロム符号化された差分ベクトルの絶対値を読み込むことや、HEVC/H.265方式のように差分ベクトルの絶対値が0より大きいことを示すフラグ、1より大きいことを示すフラグ、ゴロム符号化された差分ベクトルの絶対値などの組合せで読み込んでもよい。 As for the method of reading the absolute value of the difference vector from the bit stream, the same method as the conventional technique may be used. For example, reading the absolute value of the Golomb-coded difference vector from the bitstream, or a flag indicating that the absolute value of the difference vector is larger than 0 as in the HEVC / H.265 method, and a flag indicating that it is larger than 1. , The absolute value of the Golomb-coded difference vector may be read in combination.

差分ベクトルの絶対値=0であるとき(ステップS12:Y)、差分ベクトル符号推定部13,27は、差分ベクトルの正負符号なしとして推定処理を終了する(ステップS13)。読み込んだ差分ベクトルの絶対値が0の場合は正負符号を決める必要がないため、これ以降の処理は行わずに、差分ベクトル=0となり、差分ベクトルの正負符号なしとして推定処理を終了する。 When the absolute value of the difference vector = 0 (step S12: Y), the difference vector code estimation units 13 and 27 end the estimation process assuming that there is no positive or negative sign of the difference vector (step S13). When the absolute value of the read difference vector is 0, it is not necessary to determine the positive / negative sign. Therefore, the difference vector = 0 without performing the subsequent processing, and the estimation process is terminated with no positive / negative sign of the difference vector.

一方、差分ベクトルの絶対値≠0であるとき(ステップS12:N)、差分ベクトル符号推定部13,27は、まず、当該着目ブロックに関する正側及び負側の候補ベクトルV,Vを算出する(ステップS14)。
候補ベクトルV=予測ベクトル+差分ベクトルの絶対値
候補ベクトルV=予測ベクトル-差分ベクトルの絶対値
On the other hand, when the absolute value of the difference vector ≠ 0 (step S12: N), the difference vector code estimation units 13 and 27 first calculate the positive and negative candidate vectors VA and V B for the block of interest. (Step S14).
Candidate vector VA = Prediction vector + Absolute value of difference vector Candidate vector VA = Prediction vector - Absolute value of difference vector

尚、予測ベクトルはHEVC/H.265方式等の従来技法通りの方法で求めることができる。予測ベクトルは、差分ベクトルの絶対値や正誤フラグより先に求めてもよい。 The prediction vector can be obtained by a method according to a conventional technique such as HEVC / H.265 method. The prediction vector may be obtained before the absolute value of the difference vector or the correctness flag.

続いて、差分ベクトル符号推定部13,27は、着目ブロックBKnを候補ベクトルV、候補ベクトルVにそれぞれ移動したブロックBK、ブロックBKを算出する(ステップS15)。 Subsequently, the difference vector code estimation units 13 and 27 calculate the block BK A and the block BK B in which the block BKn of interest is moved to the candidate vector VA and the candidate vector VA, respectively (step S15).

続いて、差分ベクトル符号推定部13,27は、ブロックBK,BKが双方とも完全に画面内であるかを判定する(ステップS16)。 Subsequently, the difference vector code estimation units 13 and 27 determine whether the blocks BK A and BK B are both completely in the screen (step S16).

ブロックBK,BKが双方とも完全に画面内であるとき(ステップS16:Y)、差分ベクトル符号推定部13,27は、差分ベクトルの正負符号をデフォルト値として推定し、差分ベクトル推定符号=デフォルト値として決定する(ステップS17)。本例では“正”をデフォルト値として説明するが、“負”をデフォルト値としてもよい。 When both blocks BK A and BK B are completely in the screen (step S16: Y), the difference vector code estimation units 13 and 27 estimate the positive and negative signs of the difference vector as default values, and the difference vector estimation code = It is determined as a default value (step S17). In this example, "positive" is used as the default value, but "negative" may be used as the default value.

尚、ステップS17に係る差分ベクトル推定符号のデフォルト値は、本例では設定情報として、ストリーム中のヘッダ(スライス又はタイルのヘッダ、ピクチャのヘッダ、及びシーケンスのヘッダのいずれか1つ以上を含む)に埋め込まれる。ただし、当該デフォルト値について映像符号化装置1及び映像復号装置2間で予め定めておくときは映像符号化装置1から映像復号装置2へと伝送する必要はなく、当該設定情報をヘッダに埋め込む必要もない。 The default value of the difference vector estimation code according to step S17 is the header in the stream (including one or more of the header of the slice or tile, the header of the picture, and the header of the sequence) as the setting information in this example. Embedded in. However, when the default value is predetermined between the video coding device 1 and the video decoding device 2, it is not necessary to transmit from the video coding device 1 to the video decoding device 2, and the setting information needs to be embedded in the header. Nor.

ブロックBK,BKが双方とも完全に画面内でないとき(ステップS16:N)、差分ベクトル符号推定部13,27は、続いてブロックBK,BKが双方とも完全に画面外であるかを判定する(ステップS18)。 When both blocks BK A and BK B are not completely in the screen (step S16: N), the difference vector code estimation units 13 and 27 subsequently indicate whether the blocks BK A and BK B are both completely out of the screen. Is determined (step S18).

ブロックBK,BKが双方とも完全に画面外であるとき(ステップS18:Y)、差分ベクトル符号推定部13,27は、「ブロックBKとその最近接の画面端との距離」と、「ブロックBKとその最近接の画面端との距離」とを比較する(ステップS19)。 When both blocks BK A and BK B are completely off the screen (step S18: Y), the difference vector code estimation units 13 and 27 indicate that "the distance between the block BK A and its closest screen edge". The "distance between the block BK B and its closest screen edge" is compared (step S19).

ブロックBKとその最近接の画面端との距離が、ブロックBKとその最近接の画面端との距離より大きいとき(ステップS19:Y)、差分ベクトル符号推定部13,27は、差分ベクトル推定符号=負として決定する(ステップS21)。 When the distance between the block BK A and its closest screen edge is larger than the distance between the block BK B and its closest screen edge (step S19: Y), the difference vector code estimation units 13 and 27 perform the difference vector. It is determined as an estimated code = negative (step S21).

また、ブロックBKとその最近接の画面端との距離が、ブロックBKとその最近接の画面端との距離より小さいとき(ステップS19:N)、差分ベクトル符号推定部13,27は、差分ベクトル推定符号=正として決定する(ステップS20)。 Further, when the distance between the block BK A and its closest screen edge is smaller than the distance between the block BK B and its closest screen edge (step S19: N), the difference vector code estimation units 13 and 27 It is determined as the difference vector estimation code = positive (step S20).

例えば図4(a)に示すように、差分ベクトルの正符号が右方向、差分ベクトルの負符号が左方向を示すとして、候補ベクトルVに対応するブロックBKと候補ベクトルVに対応するブロックBKが双方とも画面外にある例を説明する。ブロックBKとその最近接の画面端との距離Dが、候補ベクトルVに対応するブロックBKとその最近接の画面端との距離Dより小さいときには、差分ベクトル推定符号=正として決定することで、ブロックBKの方がブロックBKよりも予測確度が高いとして判断する。 For example, as shown in FIG. 4A, assuming that the positive sign of the difference vector indicates the right direction and the negative sign of the difference vector indicates the left direction, the block BK A corresponding to the candidate vector VA and the candidate vector V B correspond to each other. An example in which both blocks BK B are outside the screen will be described. When the distance DA between the block BK A and its closest screen edge is smaller than the distance DB between the block BK B corresponding to the candidate vector V B and its closest screen edge, the difference vector estimation code = positive. By making a decision, it is determined that the block BK A has a higher prediction accuracy than the block BK B.

また、ブロックBKとその最近接の画面端との距離が、ブロックBKとその最近接の画面端との距離と等しいとき、差分ベクトル符号推定部13,27は、差分ベクトル推定符号=正又は負の予め指定された方(図3に示すステップS19では差分ベクトル推定符号=正)として決定する。 Further, when the distance between the block BK A and its closest screen edge is equal to the distance between the block BK B and its closest screen edge, the difference vector code estimation units 13 and 27 have the difference vector estimation code = positive. Alternatively, it is determined as the negative one specified in advance (difference vector estimation code = positive in step S19 shown in FIG. 3).

尚、ステップS19に係る比較で、差分ベクトル推定符号=正又は負の予め指定された方として決定するにあたり、第2のデフォルト値として(或いは共通に用いるデフォルト値として)示す設定情報を、ストリーム中のヘッダ(スライス又はタイルのヘッダ、ピクチャのヘッダ、及びシーケンスのヘッダのいずれか1つ以上を含む)に埋め込んで伝送する形態とすることもできる。ただし、当該第2のデフォルト値について映像符号化装置1及び映像復号装置2間で予め定めておくときは映像符号化装置1から映像復号装置2へと伝送する必要はなく、当該設定情報をヘッダに埋め込む必要もない。 In the comparison according to step S19, the setting information shown as the second default value (or as the default value commonly used) is shown in the stream when the difference vector estimation code = positive or negative pre-specified one is determined. It can also be embedded in the header of (including one or more of a slice or tile header, a picture header, and a sequence header) for transmission. However, when the second default value is predetermined between the video coding device 1 and the video decoding device 2, it is not necessary to transmit the setting information from the video coding device 1 to the video decoding device 2, and the setting information is used as a header. There is no need to embed it in.

一方、ブロックBK,BKが双方とも完全に画面内でも画面外でもないとき(ステップS18:N)、即ち、ブロックBK,BKのうち少なくとも一方が部分的に画面外であるとき、差分ベクトル符号推定部13,27は、ブロックBK, BKの画面外の領域の面積を算出する(ステップS22)。
面積S=ブロックBKの画面外にはみ出す面積
面積S=ブロックBKの画面外にはみ出す面積
On the other hand, when both blocks BK A and BK B are neither completely in-screen nor off-screen (step S18: N), that is, when at least one of blocks BK A and BK B is partially off-screen. The difference vector code estimation units 13 and 27 calculate the area of the area outside the screen of the blocks BK A and BK B (step S22).
Area SA = Area that protrudes outside the screen of block BK A Area SB = Area that protrudes outside the screen of block BK B

続いて、差分ベクトル符号推定部13,27は、面積Sと面積Sとを比較する(ステップS23)。 Subsequently, the difference vector code estimation units 13 and 27 compare the area SA and the area SB (step S23).

面積Sが、面積Sより大きいとき(ステップS23:Y)、差分ベクトル符号推定部13,27は、差分ベクトル推定符号=負として決定する(ステップS25)。 When the area S A is larger than the area SB (step S23: Y), the difference vector code estimation units 13 and 27 determine that the difference vector estimation code = negative (step S25).

面積Sが、面積Sより小さいとき(ステップS23:N)、差分ベクトル符号推定部13,27は、差分ベクトル推定符号=正として決定する(ステップS24)。 When the area S A is smaller than the area SB (step S23: N), the difference vector code estimation units 13 and 27 determine that the difference vector estimation code = positive (step S24).

例えば図4(b)に示すように、差分ベクトルの正符号が右方向、差分ベクトルの負符号が左方向を示すとして、候補ベクトルVに対応するブロックBKと候補ベクトルVに対応するブロックBKとの双方の一部が画面外にある例を説明する。面積Sが、面積Sより大きいときには、差分ベクトル推定符号=正として決定することで、ブロックBKの方がブロックBKよりも予測確度が高いとして判断する。 For example, as shown in FIG. 4B, assuming that the positive sign of the difference vector indicates the right direction and the negative sign of the difference vector indicates the left direction, the block BK A corresponding to the candidate vector VA and the candidate vector V B correspond to each other. An example in which a part of both the block BK B and the block BK B is outside the screen will be described. When the area SB is larger than the area SA, it is determined that the difference vector estimation code = positive, so that the block BK A has a higher prediction accuracy than the block BK B.

面積Sが、面積Sと等しいとき、差分ベクトル符号推定部13,27は、差分ベクトル推定符号=正又は負の予め指定された方(図3に示すステップS23では差分ベクトル推定符号=正)として決定する。 When the area S A is equal to the area SB, the difference vector code estimation units 13 and 27 have the difference vector estimation code = positive or negative, whichever is specified in advance (in step S23 shown in FIG. 3, the difference vector estimation code = positive). ).

尚、ステップS23に係る比較で、差分ベクトル推定符号=正又は負の予め指定された方として決定するにあたり、第3のデフォルト値として(或いは共通に用いるデフォルト値として)示す設定情報を、ストリーム中のヘッダ(スライス又はタイルのヘッダ、ピクチャのヘッダ、及びシーケンスのヘッダのいずれか1つ以上を含む)に埋め込んで伝送する形態とすることもできる。ただし、当該第3のデフォルト値について映像符号化装置1及び映像復号装置2間で予め定めておくときは映像符号化装置1から映像復号装置2へと伝送する必要はなく、当該設定情報をヘッダに埋め込む必要もない。 In the comparison according to step S23, the setting information shown as the third default value (or as the default value commonly used) is shown in the stream when the difference vector estimation code = positive or negative pre-designated one is determined. It can also be embedded in the header of (including one or more of a slice or tile header, a picture header, and a sequence header) for transmission. However, when the third default value is predetermined between the video coding device 1 and the video decoding device 2, it is not necessary to transmit the setting information from the video coding device 1 to the video decoding device 2, and the setting information is used as a header. There is no need to embed it in.

ステップS17,S20,S21,S24,S25を経て決定した差分ベクトル推定符号は、図1に示す映像符号化装置1側では正誤フラグ14へ、図2に示す映像復号装置2側では差分ベクトル符号決定部28へ出力される(ステップS26)。 The difference vector estimation code determined through steps S17, S20, S21, S24, and S25 is set to the correct / incorrect flag 14 on the video coding device 1 side shown in FIG. 1, and the difference vector code is determined on the video decoding device 2 side shown in FIG. It is output to the unit 28 (step S26).

このようにして、差分ベクトル符号推定部13,27は、当該着目ブロック情報、差分ベクトルの絶対値、及び予測ベクトルを用いて、正側及び負側の候補ベクトルV,Vを算出し、候補ベクトルV,Vのそれぞれに対応するブロックBK,BKの位置と画面端との位置関係に応じて場合分けした予め定めた規則に基づいて差分ベクトルの正負符号を推定し、差分ベクトル推定符号を決定する。 In this way, the difference vector code estimation units 13 and 27 calculate the positive and negative candidate vectors VA and BB using the block information of interest, the absolute value of the difference vector, and the prediction vector. The positive and negative signs of the difference vector are estimated based on the predetermined rules classified according to the positional relationship between the positions of the blocks BK A and BK B corresponding to the candidate vectors VA and BB , respectively, and the screen edge, and the difference is obtained. Determine the vector estimation sign.

そして、映像符号化装置1側では、正誤フラグ生成部14は、差分ベクトル符号推定部13から得られる差分ベクトル推定符号と、画像符号化部10から得られる差分ベクトルの正負符号とを比較して、両者が等しい場合は「真」、異なる場合は「偽」を示す正誤フラグを生成する。 Then, on the video coding device 1 side, the correct / incorrect flag generation unit 14 compares the difference vector estimation code obtained from the difference vector code estimation unit 13 with the positive / negative code of the difference vector obtained from the image coding unit 10. , Generates a correct / incorrect flag indicating "true" if they are equal and "false" if they are different.

また、映像復号装置2側では、差分ベクトル符号決定部28は、正誤フラグが「真」を示すときは当該差分ベクトル推定符号をそのまま差分ベクトルの正負符号として決定し、「偽」を示すときは、当該差分ベクトル推定符号を反転した符号を差分ベクトルの正負符号として決定する。 Further, on the video decoding device 2 side, the difference vector sign determination unit 28 determines the difference vector estimation code as it is as the positive / negative sign of the difference vector when the correctness flag indicates “true”, and when it indicates “false”. , The sign obtained by reversing the difference vector estimation code is determined as the positive / negative sign of the difference vector.

(本発明の原理)
ここで、実施例1の差分ベクトルの正負符号の推定処理に係る原理を説明する。図5(a),(b),(c)は、本発明による一実施形態の映像復号装置2における実施例1の差分ベクトルの正負符号の推定処理に係る着目ブロックBKnと候補ベクトルV,V、及び候補ベクトルV,Vにそれぞれ対応するブロックBK,BKに関する説明図である。
(Principle of the present invention)
Here, the principle related to the estimation processing of the positive and negative signs of the difference vector of the first embodiment will be described. 5 (a), (b), and (c) show the block BKn of interest and the candidate vector VA , which are related to the estimation processing of the positive and negative signs of the difference vector of the first embodiment in the video decoding apparatus 2 of the embodiment according to the present invention. It is explanatory drawing about the block BK A , BK B corresponding to V B and a candidate vector VA , V B , respectively.

図5を参照して本発明の原理説明を簡単にするために、予測ベクトル=0とし、更に差分ベクトルのうち水平成分の符号のみに着目し、映像復号装置2により差分ベクトルの正負符号を求める復号動作と、本発明の効果を説明する。図5に示す説明では、差分ベクトルの正符号が右方向、差分ベクトルの負符号が左方向を示すとする。 In order to simplify the explanation of the principle of the present invention with reference to FIG. 5, the prediction vector is set to 0, and only the sign of the horizontal component of the difference vector is focused on, and the positive and negative signs of the difference vector are obtained by the video decoding device 2. The decoding operation and the effect of the present invention will be described. In the description shown in FIG. 5, it is assumed that the plus sign of the difference vector indicates the right direction and the minus sign of the difference vector indicates the left direction.

図5(a)に示すように、着目ブロックBKnが画面内における画面端に存在するとする。この着目ブロックBKnに対して、所定長さを有する差分ベクトルの絶対値を入力(読み込み)したとする。 As shown in FIG. 5A, it is assumed that the block of interest BKn exists at the edge of the screen in the screen. It is assumed that the absolute value of the difference vector having a predetermined length is input (read) to the block of interest BKn.

図5(b)に示すように、まず、差分ベクトル符号推定部13,27は、当該着目ブロックBKnに関する正側及び負側の候補ベクトルV,Vを算出する(図3:ステップS14)。 As shown in FIG. 5B, first, the difference vector code estimation units 13 and 27 calculate the positive and negative candidate vectors VA and BB with respect to the block of interest BKn (FIG. 3: step S14). ..

図5(c)に示すように、次に、差分ベクトル符号推定部13,27は、着目ブロックBKnを候補ベクトルV、候補ベクトルVにそれぞれ移動したブロックBK、ブロックBKを算出する(図3:ステップS15)。 As shown in FIG. 5C, next, the difference vector code estimation units 13 and 27 calculate the block BK A and the block BK B in which the block BKn of interest is moved to the candidate vector VA and the candidate vector BB , respectively. (FIG. 3: Step S15).

図5(c)に示す例では、ブロックBKは画面内、ブロックBKは画面外に位置しているため、差分ベクトル符号推定部13,27は、ブロックBK, BKの画面外の領域の面積S,Sを算出する(図3:ステップS22)。 In the example shown in FIG. 5C, since the block BK A is located inside the screen and the block BK B is located outside the screen, the difference vector code estimation units 13 and 27 are located outside the screen of the blocks BK A and BK B. Areas S A and S B of the region are calculated (FIG. 3: step S22).

そして、差分ベクトル符号推定部13,27は、面積Sと、面積Sとを比較する(図3:ステップS23)。図5(c)に示す例では、ブロックBKの画面外にはみ出す面積S(=ブロックBKの面積)が、ブロックBKの画面外にはみ出す面積S(=0)より大きいため、この着目ブロックBKnの差分ベクトル推定符号は“正”となる(図3:ステップS24)。 Then, the difference vector code estimation units 13 and 27 compare the area SA and the area SB (FIG. 3: step S23). In the example shown in FIG. 5 (c), the area SB (= the area of the block BK B) protruding outside the screen of the block BK B is larger than the area SA (= 0) protruding outside the screen of the block BK A. The difference vector estimation code of the block of interest BKn is “positive” (FIG. 3: step S24).

映像符号化装置1側では、差分ベクトル符号推定部13による推定処理で得られた当該差分ベクトル推定符号が、実際の当該差分ベクトルの正負符号と等しければ真とし、異なっていれば偽とする正誤フラグを生成し、コンテキスト適応型の可逆圧縮処理を行って伝送する。例えば映像符号化装置1は、真を示す正誤フラグを映像復号装置2に伝送する。 On the video coding device 1 side, if the difference vector estimation code obtained by the estimation process by the difference vector code estimation unit 13 is equal to the actual positive / negative code of the difference vector, it is true, and if it is different, it is false. Generates a flag, performs context-adaptive reversible compression processing, and transmits it. For example, the video coding device 1 transmits a correct / incorrect flag indicating true to the video decoding device 2.

映像復号装置2側では、当該正誤フラグが真を示すときは、当該差分ベクトル推定符号を差分ベクトルの正負符号とし、偽を示すときは、当該推定した正負符号を反転した符号を差分ベクトルの正負符号として決定する。例えば映像符号化装置1が真を示す正誤フラグを映像復号装置2に伝送していた場合、映像復号装置2は、当該差分ベクトル推定符号を差分ベクトルの正負符号とする。このため、図5を参照した本例では、映像復号装置2は、最終的にこの着目ブロックBKnの差分ベクトルの正負符号は正と決定する。 On the video decoding device 2 side, when the correctness flag indicates true, the difference vector estimation code is used as the positive / negative sign of the difference vector, and when indicating false, the code obtained by inverting the estimated positive / negative code is used as the positive / negative sign of the difference vector. Determined as a sign. For example, when the video coding device 1 transmits a correct / incorrect flag indicating true to the video decoding device 2, the video decoding device 2 uses the difference vector estimation code as the positive / negative code of the difference vector. Therefore, in this example with reference to FIG. 5, the video decoding apparatus 2 finally determines that the positive and negative signs of the difference vector of the block of interest BKn are positive.

このように、本発明に係る映像符号化装置1及び映像復号装置2では、差分ベクトルの正負符号を正誤フラグで表現しており、以下に示す2つの理由により、コンテキスト適応型の可逆圧縮により圧縮が可能である。 As described above, in the video coding device 1 and the video decoding device 2 according to the present invention, the positive and negative signs of the difference vector are represented by the correct / incorrect flags, and are compressed by the context-adaptive lossless compression for the following two reasons. Is possible.

第1の理由として、一般に、候補ベクトルが示すブロックが画面外にはみ出すとき、その画面外にはみ出す面積が大きいと動き補償予測の効果が低下する。このため、多くの動きベクトルは画面外を指さない場合が多い。そこで、本発明に係る「差分ベクトルの正負符号の推定処理」では、着目ブロックBKnの差分ベクトルの正負符号が“正”と仮定した場合(候補ベクトルV,ブロックBK)と、“負”と仮定した場合(候補ベクトルV,ブロックBK)とを比較し、各ブロックBK, BKの画面外にはみ出す面積が少ない方の符号を推定符号とする。このため、推定符号の正誤を表す正誤フラグは「真」となる確率が高くなり、圧縮(可逆圧縮)が可能となる。 The first reason is that, in general, when the block indicated by the candidate vector protrudes outside the screen, the effect of motion compensation prediction is reduced if the area outside the screen is large. For this reason, many motion vectors often do not point off the screen. Therefore, in the "estimation process of the positive / negative sign of the difference vector" according to the present invention, when the positive / negative sign of the difference vector of the block BKn of interest is assumed to be "positive" (candidate vector VA , block BK A ), "negative". Assuming that (candidate vector V B , block BK B ) is compared, the code with the smaller area outside the screen of each block BK A and BK B is used as the estimation code. Therefore, the probability that the correct / incorrect flag indicating the correctness of the estimated code becomes "true" increases, and compression (lossless compression) becomes possible.

第2の理由として、上記の第1の理由における「多くの動きベクトルは画面外を指さない場合が多い」とする仮定が成り立たないシーンの場合も、圧縮(可逆圧縮)が可能であり、その例を図6に示す。 The second reason is that compression (lossless compression) is possible even in the case of a scene where the assumption that "many motion vectors do not point out of the screen" in the first reason above does not hold. An example is shown in FIG.

図6はカメラをパンした映像の例であり、被写体に対し着目フレームFが前フレームFN-1に対し相対的に画像が全体的に左方シフトした様子を示している。着目フレームFにて例えば図示するように画面端に位置する着目ブロックBKnに対し、この着目ブロックBKnの動き補償予測の参照先として適切なブロックは、前フレームFN-1におけるブロックBKである。即ち、着目ブロックBKnの動きベクトルは画面外を指し示している。説明を簡単にするために、予測ベクトルを全て0とすると、差分ベクトルの正負符号は正となる。 FIG. 6 is an example of an image in which the camera is panned, and shows a state in which the frame F N of interest is shifted to the left as a whole relative to the front frame F N-1 with respect to the subject. For the focus block BKn located at the edge of the screen in the focus frame F N , for example, the appropriate block as a reference destination for the motion compensation prediction of the focus block BKn is the block BK A in the previous frame F N-1 . be. That is, the motion vector of the block of interest BKn points out of the screen. For the sake of simplicity, if the prediction vectors are all 0, the positive and negative signs of the difference vector will be positive.

本発明に係る「差分ベクトルの正負符号の推定処理」では、差分ベクトル符号推定部13,27は、正側及び負側の候補ベクトルV,Vを算出し(図3:ステップS14)、着目ブロックBKnを候補ベクトルV、候補ベクトルVにそれぞれ移動したブロックBK、ブロックBKを算出する(図3:ステップS15)。 In the "estimation process of the positive / negative sign of the difference vector" according to the present invention, the difference vector code estimation units 13 and 27 calculate the candidate vectors VA and BB on the positive side and the negative side (FIG. 3: step S14). The block BK A and the block BK B in which the block BKn of interest is moved to the candidate vector VA and the candidate vector V B are calculated (FIG. 3: step S15).

このとき、ブロックBKは画面外にはみ出す領域を持つのに対し、ブロックBKは画面内に留まるため、差分ベクトル符号推定部13,27は、差分ベクトル符号推定部13,27は、ブロックBK, BKの画面外の領域の面積S,Sを算出する(図3:ステップS22)。 At this time, the block BK A has an area outside the screen, whereas the block BK B stays in the screen. Therefore, the difference vector code estimation units 13 and 27 and the difference vector code estimation units 13 and 27 are the block BK. The areas SA and SB of the area outside the screen of A and BK B are calculated (FIG. 3: step S22).

続いて、差分ベクトル符号推定部13,27は、面積Sと、面積Sとを比較する(図3:ステップS23)。図6に示す例では、ブロックBKの画面外にはみ出す面積Sが、ブロックBKの画面外にはみ出す面積Sより小さいため、この着目ブロックBKnの差分ベクトル推定符号は“負” (候補ベクトルV,ブロックBK)となる(図3:ステップS25)。 Subsequently, the difference vector code estimation units 13 and 27 compare the area SA and the area SB (FIG. 3: step S23). In the example shown in FIG. 6, since the area SB outside the screen of the block BK B is smaller than the area SA outside the screen of the block BK A , the difference vector estimation code of the block BKn of interest is “negative” (candidate). Vector V B , block BK B ) (FIG. 3: step S25).

従って、映像符号化装置1側では、差分ベクトル符号推定部13による推定処理で得られた当該差分ベクトル推定符号が、実際の当該差分ベクトルの正負符号と異なっているため、「偽」とする正誤フラグを生成しコンテキスト適応型の可逆圧縮処理を行って伝送する。 Therefore, on the video coding apparatus 1 side, the difference vector estimation code obtained by the estimation process by the difference vector code estimation unit 13 is different from the actual positive / negative code of the difference vector, and therefore the correct / incorrect value is regarded as “false”. Generates a flag and performs context-adaptive reversible compression processing for transmission.

そして、映像復号装置2側では、当該正誤フラグが「偽」を示すため、同様に推定した“負”を示す当該差分ベクトル推定符号を反転し、最終的にこの着目ブロックBKnの差分ベクトルの正負符号は“正” (候補ベクトルV,ブロックBK)と決定する。 Then, on the video decoding device 2 side, since the correct / incorrect flag indicates "false", the difference vector estimation code indicating the similarly estimated "negative" is inverted, and finally the positive / negative of the difference vector of the block of interest BKn. The sign is determined to be "positive" (candidate vector VA , block BK A ).

このように、着目フレームFにおける着目ブロックBKnに対し、差分ベクトルの正負符号として、最終的には正確な “正”(候補ベクトルV,ブロックBK)を決定しつつ、差分ベクトル推定符号としては各ブロックBK, BKの画面外にはみ出す面積が少ない方の符号である“負” (候補ベクトルV,ブロックBK)を推定符号とし、正誤フラグは「偽」としている。 In this way, the difference vector estimation code is finally determined to be accurate “positive” (candidate vector VA , block BK A ) as the positive / negative sign of the difference vector for the block BKn of interest in the frame FN of interest. The estimation code is "negative" (candidate vector V B , block BK B ), which is the code with the smaller area outside the screen of each block BK A , BK B , and the correct / incorrect flag is "false".

同様に、着目フレームFにて画面端に位置する着目ブロックBKnの上方に位置するブロックBKn(1),BKn(2),BKn(3),BKn(4)を着目ブロックとするときも、それぞれの動きベクトルは画面外を指し、いずれも正誤フラグは「偽」となる。 Similarly, when the blocks BKn (1), BKn (2), BKn (3), and BKn (4) located above the focus block BKn located at the edge of the screen in the focus frame FN are set as the focus block, Each motion vector points out of the screen, and the correct / incorrect flag is "false" in each case.

そして、映像符号化装置1及び映像復号装置2では着目ブロックBKnに関する差分ベクトルの正負符号に係る正誤フラグに対しコンテキスト適用型の可逆圧縮/復号処理を施す。コンテキスト適用型の可逆圧縮/復号処理では、着目ブロックBKnの周辺(例えば、直上、右上、左上のブロックなど予め定めたコンテキストモデルに従う)の値(即ち、正誤フラグの値)に応じて適応的にビット値を決定することで可逆圧縮符号化/復号を行う。図6に示す例では、周辺に「偽」となる正誤フラグのブロックが多数並んでいるため、正誤フラグは「偽」の方が圧縮の効果が高まり、圧縮(可逆圧縮)が可能となる。特に、映像復号装置2側では、コンテキスト適用型の可逆復号処理により当該着目ブロックBKnについて正誤フラグが「偽」である旨を復元でき、最終的には正確な “正”(候補ベクトルV,ブロックBK)を決定することができる。 Then, the video coding device 1 and the video decoding device 2 perform context-applied lossless compression / decoding processing on the correct / incorrect flags related to the positive / negative codes of the difference vector related to the block BKn of interest. In the context-applied lossless compression / decryption processing, the value around the block of interest BKn (for example, according to a predetermined context model such as the block directly above, the upper right, and the upper left) (that is, the value of the correctness flag) is adaptively applied. Lossless compression coding / decoding is performed by determining the bit value. In the example shown in FIG. 6, since a large number of blocks of correct / incorrect flags that are “false” are lined up in the periphery, the effect of compression is higher when the correct / incorrect flag is “false”, and compression (lossless compression) is possible. In particular, on the video decoding device 2 side, the context-applied reversible decoding process can restore the fact that the correct / incorrect flag is “false” for the block BKn of interest, and finally an accurate “correct” (candidate vector VA , Block BK A ) can be determined.

従って、本発明に係る映像符号化装置1及び映像復号装置2によれば、正誤フラグが「真」となる確率が高まることにより正誤フラグの可逆圧縮が可能になるか、或いは、多数の「偽」が出現する場合では周辺に「偽」となるブロックが集まる傾向があるためコンテキスト適応型の可逆圧縮により正誤フラグの圧縮が可能となる。 Therefore, according to the video coding device 1 and the video decoding device 2 according to the present invention, the lossless compression of the correct / incorrect flag becomes possible by increasing the probability that the correct / incorrect flag becomes "true", or a large number of "false" are made. When "" appears, there is a tendency for "false" blocks to gather around it, so it is possible to compress the correct / incorrect flag by context-adaptive lossless compression.

特に、図3に示す実施例1における差分ベクトルの正負符号の推定処理では、着目ブロックBKnを動きベクトルで動き補償した位置が画面外にはみ出る際のはみ出し具合の比較(実施例1では、はみ出る面積S, Sの比較)を利用していることに相当するため、画面端の周辺に位置するブロックに限定して適用すると圧縮効果の観点で有効である。 In particular, in the estimation process of the positive / negative sign of the difference vector in the first embodiment shown in FIG. Since it is equivalent to using (comparison of SA and SB ), it is effective from the viewpoint of the compression effect if it is applied only to the blocks located around the edge of the screen.

(フレーム画像内で正誤フラグを使用する領域)
本実施形態の映像符号化装置1及び映像復号装置2の一実施例として、映像符号化装置1における設定制御部18、及び映像復号装置2における設定制御部24は、フレーム画像における当該着目ブロックの位置に応じて、正誤フラグを使用する領域と、従来技法と同様に正負符号の+/-を1/0のビット表現とする領域を、予め定めた設定情報に基づいて制御することができる。
(Area where the correct / incorrect flag is used in the frame image)
As an embodiment of the video coding device 1 and the video decoding device 2 of the present embodiment, the setting control unit 18 in the video coding device 1 and the setting control unit 24 in the video decoding device 2 are the blocks of interest in the frame image. Depending on the position, the area where the correctness flag is used and the area where the positive / negative sign +/- is expressed as 1/0 bit as in the conventional technique can be controlled based on the predetermined setting information.

そして、上述したように、本実施形態の映像符号化装置1及び映像復号装置2では、当該設定情報に基づいて当該可逆圧縮後の正誤フラグ又は当該単純に二値化した正負符号を切り替えることができる。 Then, as described above, in the video coding device 1 and the video decoding device 2 of the present embodiment, the correct / incorrect flag after the lossless compression or the simply binarized positive / negative code can be switched based on the setting information. can.

以下、より具体的に、一実施例として、映像符号化装置1における設定制御部18、及び映像復号装置2における設定制御部24は、当該設定情報に従い、着目ブロックBKnが画面端の領域AR1~AR8のいずれかに収まっているか否かに基づいて、差分ベクトルの正負符号の表現について正誤フラグ又は当該単純に二値化した正負符号を切り替える動作を説明する。 Hereinafter, more specifically, as an embodiment, the setting control unit 18 in the video coding device 1 and the setting control unit 24 in the video decoding device 2 have the attention block BKn from the area AR1 to the screen edge according to the setting information. The operation of switching the correct / incorrect flag or the simply binarized positive / negative code for the expression of the positive / negative code of the difference vector will be described based on whether or not it is contained in any of AR8.

図7は、本発明による一実施形態の映像符号化装置1及び映像復号装置2に係る正誤フラグを利用する領域と、従来技法と同様に正負符号の+/-を1/0のビット表現とする領域を持つフレーム画像の説明図である。 FIG. 7 shows a region using the correct / incorrect flag according to the video coding device 1 and the video decoding device 2 of the embodiment according to the present invention, and +/- of the positive / negative code as a 1/0 bit representation as in the conventional technique. It is explanatory drawing of the frame image which has the area to perform.

図7に示すように、フレーム画像を構成するフレームFは、画面中央の領域AR0と、画面端の所定範囲内の領域AR1~AR8の領域に分離できる。領域AR0は、従来技法と同様に正負符号の+/-を1/0のビット表現とする領域である。画面端の領域AR1~AR8の領域は、正誤フラグのコンテキスト適用型の可逆圧縮/復号処理を行う領域である。また、画面端の領域AR1~AR8の領域ごとに、異なるコンテキストモデルが設定される。 As shown in FIG. 7, the frame F N constituting the frame image can be separated into a region AR0 in the center of the screen and regions AR1 to AR8 within a predetermined range at the edge of the screen. The region AR0 is a region in which +/- of a positive / negative sign is represented by 1/0 as in the conventional technique. The areas AR1 to AR8 at the edge of the screen are areas for performing context-applied lossless compression / decryption processing of the correct / incorrect flag. Further, a different context model is set for each of the areas AR1 to AR8 at the edge of the screen.

これらの領域は、フレームFのサイズや符号化処理を行う基本単位(マクロブロックやCTUなどと呼ばれるブロック)のサイズに応じて可変とするか、又は固定とする幅D1,D2,D3,D4の指定で特定でき、映像符号化装置1及び映像復号装置2間で予め定めておくか、設定情報を伝送する形態では、その設定情報によって指定する構成とすることもできる。また、D1,D2,D3,D4はそれぞれ異なる値としてもよいし、同一値としてもよい。尚、幅D1,D2,D3,D4は、「真」又は「偽」を示す正誤フラグが集まりやすい領域として、符号化処理を行う基本単位(マクロブロックやCTUなどと呼ばれるブロック)のサイズに対し1~3倍の幅とするのが好適である。 These areas have widths D1, D2, D3, and D4 that are variable or fixed according to the size of the frame FN and the size of the basic unit (block called a macro block or CTU) for encoding processing. It can be specified by the designation of, and it can be determined in advance between the video coding device 1 and the video decoding device 2, or in the form of transmitting the setting information, the configuration can be specified by the setting information. Further, D1, D2, D3, and D4 may have different values or may have the same value. The widths D1, D2, D3, and D4 are for the size of the basic unit (block called macro block, CTU, etc.) for encoding processing as an area where correct / incorrect flags indicating "true" or "false" are likely to be collected. It is preferable that the width is 1 to 3 times.

差分ベクトルは2次元ベクトルのため、水平成分と垂直成分の2つのベクトルで表現される。そこで、映像符号化装置1における設定制御部18、及び映像復号装置2における設定制御部24は、当該設定情報の一実施例として、着目ブロックBKnが画面端の領域AR1~AR8のいずれかに収まっているか否かに基づいて、差分ベクトルの成分ごとに、当該可逆圧縮後の正誤フラグ又は当該単純に二値化した正負符号を切り替えることができる。 Since the difference vector is a two-dimensional vector, it is represented by two vectors, a horizontal component and a vertical component. Therefore, in the setting control unit 18 in the video coding device 1 and the setting control unit 24 in the video decoding device 2, as an embodiment of the setting information, the block BKn of interest fits in any of the areas AR1 to AR8 at the edge of the screen. It is possible to switch the correct / incorrect flag after the lossless compression or the simply binarized positive / negative code for each component of the difference vector depending on whether or not the value is satisfied.

例えば、映像符号化装置1における設定制御部18は、着目ブロックBKnが画面の左右辺近傍の領域AR3,AR4にある場合、差分ベクトルの水平成分のみ正誤フラグを使用しコンテキスト適応型の可逆圧縮処理を行い、垂直方向の正負符号は従来技法と同様に正負符号の+/-を1/0のビット表現とするように制御する。 For example, when the target block BKn is in the regions AR3 and AR4 near the left and right sides of the screen, the setting control unit 18 in the video coding apparatus 1 uses the correct / incorrect flag only for the horizontal component of the difference vector and performs context-adaptive reversible compression processing. Is performed, and the positive and negative codes in the vertical direction are controlled so that the +/- of the positive and negative codes are represented by 1/0 as in the conventional technique.

また、映像符号化装置1における設定制御部18は、映像符号化装置1における設定制御部18は、着目ブロックBKnが画面の上下辺近傍の領域AR1,AR2にある場合、差分ベクトルの垂直成分のみ正誤フラグを使用しコンテキスト適応型の可逆圧縮処理を行い、水平方向の正負符号は従来技法と同様に正負符号の+/-を1/0のビット表現とするように制御する。 Further, in the setting control unit 18 in the video coding device 1, the setting control unit 18 in the video coding device 1 has only the vertical component of the difference vector when the block BKn of interest is in the regions AR1 and AR2 near the upper and lower sides of the screen. A context-adaptive reversible compression process is performed using the correct / incorrect flag, and the positive / negative code in the horizontal direction is controlled so that the +/- of the positive / negative code is represented by 1/0 as in the conventional technique.

また、映像符号化装置1における設定制御部18は、着目ブロックBKnが画面の四隅の領域AR5,AR6,AR7,AR8にある場合、水平成分、及び垂直成分ともに正誤フラグを使用しコンテキスト適応型の可逆圧縮処理を行うように制御する。 Further, the setting control unit 18 in the video coding apparatus 1 uses correct / incorrect flags for both the horizontal component and the vertical component when the block BKn of interest is in the regions AR5, AR6, AR7, AR8 at the four corners of the screen, and is context-adaptive. Control to perform lossless compression processing.

映像復号装置2における設定制御部24においても同様に、着目ブロックBKnが画面端の領域AR1~AR8のいずれかの領域に収まっているか否かに基づいて、差分ベクトルの成分ごとに、当該可逆圧縮後の正誤フラグ又は当該単純に二値化した正負符号を切り替えることができる。 Similarly, in the setting control unit 24 of the video decoding device 2, the lossless compression is performed for each component of the difference vector based on whether or not the block BKn of interest is contained in any of the areas AR1 to AR8 at the edge of the screen. It is possible to switch between the later correct / incorrect flag or the simply binarized positive / negative code.

例えば、図8を参照して、映像復号装置2における設定制御部24により、一実施例の差分ベクトルの正負符号の決定処理を説明する。図8は、本発明による一実施形態の映像復号装置2における一実施例の差分ベクトルの正負符号の決定処理を示すフローチャートである。 For example, with reference to FIG. 8, the setting control unit 24 in the video decoding device 2 will explain the process of determining the positive / negative sign of the difference vector of one embodiment. FIG. 8 is a flowchart showing a positive / negative sign determination process of a difference vector of an embodiment in the video decoding apparatus 2 of the embodiment according to the present invention.

まず、設定制御部24は、着目ブロックBKnが、画面左右端の所定範囲内(即ち、図7に示す画面の左右辺近傍の領域AR3,AR4,AR5,AR6,AR7,AR8内)に収まっているかを判定する(ステップS31)。 First, in the setting control unit 24, the block BKn of interest is contained within a predetermined range at the left and right edges of the screen (that is, within the regions AR3, AR4, AR5, AR6, AR7, AR8 near the left and right sides of the screen shown in FIG. 7). (Step S31).

そして、着目ブロックBKnが画面左右端の所定範囲内(領域AR3,AR4,AR5,AR6,AR7,AR8内)に収まっていないとき(ステップS31:N)、従来技法と同様に当該単純に二値化した正負符号とするように差分ベクトルの水平成分の正負符号を決定する(ステップS32)。 Then, when the block BKn of interest is not within the predetermined range (within the regions AR3, AR4, AR5, AR6, AR7, AR8) at the left and right edges of the screen (step S31: N), the simple binary value is the same as in the conventional technique. The positive / negative code of the horizontal component of the difference vector is determined so as to be the converted positive / negative code (step S32).

一方、着目ブロックBKnが画面左右端の所定範囲内(領域AR3,AR4,AR5,AR6,AR7,AR8内)に収まっているとき(ステップS31:Y)、本発明に係る「差分ベクトルの正負符号の推定処理」により差分ベクトルの水平成分の正負符号を推定し、正誤フラグを用いて、差分ベクトルの水平成分の正負符号を決定する(ステップS33)。 On the other hand, when the block BKn of interest is within a predetermined range (within the regions AR3, AR4, AR5, AR6, AR7, AR8) at the left and right edges of the screen (step S31: Y), the "positive / negative sign of the difference vector" according to the present invention. The positive / negative sign of the horizontal component of the difference vector is estimated by the "estimation process", and the positive / negative sign of the horizontal component of the difference vector is determined using the correct / incorrect flag (step S33).

続いて、設定制御部24は、着目ブロックBKnが、画面上下端の所定範囲内(即ち、図7に示す画面の左右辺近傍の領域AR1,AR2,AR5,AR6,AR7,AR8内)に収まっているかを判定する(ステップS34)。 Subsequently, in the setting control unit 24, the block BKn of interest is contained within a predetermined range at the upper and lower ends of the screen (that is, within the regions AR1, AR2, AR5, AR6, AR7, AR8 near the left and right sides of the screen shown in FIG. 7). (Step S34).

そして、着目ブロックBKnが画面左右端の所定範囲内(領域AR3,AR4,AR5,AR6,AR7,AR8内)に収まっていないとき(ステップS34:N)、従来技法と同様に当該単純に二値化した正負符号とするように差分ベクトルの水平成分の正負符号を決定する(ステップS35)。 Then, when the block BKn of interest is not within the predetermined range (within the regions AR3, AR4, AR5, AR6, AR7, AR8) at the left and right edges of the screen (step S34: N), the simple binary value is the same as in the conventional technique. The positive / negative code of the horizontal component of the difference vector is determined so as to be the converted positive / negative code (step S35).

一方、着目ブロックBKnが画面左右端の所定範囲内(領域AR3,AR4,AR5,AR6,AR7,AR8内)に収まっているとき(ステップS34:Y)、本発明に係る「差分ベクトルの正負符号の推定処理」により差分ベクトルの水平成分の正負符号を推定し、正誤フラグを用いて、差分ベクトルの水平成分の正負符号を決定する(ステップS36)。 On the other hand, when the block BKn of interest is within a predetermined range (within the regions AR3, AR4, AR5, AR6, AR7, AR8) at the left and right edges of the screen (step S34: Y), the “positive / negative sign of the difference vector” according to the present invention. The positive / negative sign of the horizontal component of the difference vector is estimated by the "estimation process", and the positive / negative sign of the horizontal component of the difference vector is determined using the correct / incorrect flag (step S36).

従って、差分ベクトルの水平成分と垂直成分のいずれか片方のみに正誤フラグを使用するブロックの場合はビットストリームから正誤フラグを1つ読み込み、水平成分と垂直成分の両方に正誤フラグを使用するブロック場合は正誤フラグを2つ読み込むことになる。 Therefore, in the case of a block that uses the correct / incorrect flag for only one of the horizontal component and the vertical component of the difference vector, one correct / incorrect flag is read from the bit stream, and if the block uses the correct / incorrect flag for both the horizontal component and the vertical component. Will read two correct / incorrect flags.

尚、図8に示す例では、差分ベクトルの水平成分の正負符号を決定した後、差分ベクトルの垂直成分の正負符号を決定するように制御する例を説明したが、垂直成分の正負符号の決定後、水平成分の正負符号を決定するように制御する構成とすることもできる。 In the example shown in FIG. 8, an example of controlling so as to determine the positive / negative sign of the vertical component of the difference vector after determining the positive / negative sign of the horizontal component of the difference vector has been described. Later, it may be configured to control so as to determine the positive and negative signs of the horizontal component.

このように、着目ブロックBKnが画面端の領域AR1~AR8のうちいずれかに収まっているかに基づいて、差分ベクトルの水平成分と垂直成分のそれぞれで、正誤フラグを使用する成分を切り替える構成とすることができる。差分ベクトルの水平成分と垂直成分のそれぞれで、正誤フラグを使用する成分を映像符号化装置1及び映像復号装置2間で予め定めておくか、又は当該設定情報に含めるようにして、当該ストリーム中のヘッダ(スライス又はタイルのヘッダ、ピクチャのヘッダ、及びシーケンスのヘッダのいずれか1つ以上を含む)に埋め込み、映像符号化装置1から映像復号装置2へ伝送する構成とすることができる。 In this way, based on whether the block BKn of interest is contained in any of the areas AR1 to AR8 at the edge of the screen, the component using the correctness flag is switched between the horizontal component and the vertical component of the difference vector. be able to. For each of the horizontal component and the vertical component of the difference vector, the component that uses the correctness flag is predetermined between the video coding device 1 and the video decoding device 2, or is included in the setting information in the stream. Can be embedded in a header (including any one or more of a slice or tile header, a picture header, and a sequence header) and transmitted from the video coding device 1 to the video decoding device 2.

尚、着目ブロックBKnが画面端の領域AR1~AR8の領域内にあるときに、着目ブロックBKnの位置に応じて、差分ベクトルの水平又は垂直成分の決定順序を指定するように当該設定情報に定めておくこともできる。これは、当該可逆圧縮後の正誤フラグ又は当該単純に二値化した正負符号の切り替えに関係して、着目ブロックBKnの位置に応じて正誤フラグが使用されている成分を一意に判別でき、逐次いずれが用いられているかを判別するような余分な処理を省くことができ、処理動作が速くなる利点がある。 When the focus block BKn is in the regions AR1 to AR8 at the edge of the screen, the setting information is set so as to specify the determination order of the horizontal or vertical component of the difference vector according to the position of the focus block BKn. You can also keep it. This can uniquely determine the component in which the correct / incorrect flag is used according to the position of the block of interest BKn in relation to the switching of the correct / incorrect flag after the lossless compression or the simply binarized positive / negative sign, and sequentially. It is possible to omit extra processing such as determining which one is used, and there is an advantage that the processing operation becomes faster.

例えば、映像符号化装置1における設定制御部18、及び映像復号装置2における設定制御部24は、差分ベクトルの正負符号の推定処理として、着目ブロックBKnが画面端の領域AR1~AR8の領域内に収まっているときに、画面の上下辺より左右辺に近い場合は、まず差分ベクトルの水平成分の正負符号を決定した後に、垂直成分の正負符号を決定するように制御する。 For example, in the setting control unit 18 in the video coding device 1 and the setting control unit 24 in the video decoding device 2, the block BKn of interest is placed in the areas AR1 to AR8 at the edge of the screen as the process of estimating the positive and negative codes of the difference vector. If it is closer to the left and right sides than the top and bottom sides of the screen when it is settled, it is controlled to first determine the positive and negative signs of the horizontal component of the difference vector and then determine the positive and negative codes of the vertical component.

また、映像符号化装置1における設定制御部18、及び映像復号装置2における設定制御部24は、差分ベクトルの正負符号の推定処理として、着目ブロックBKnが画面端の領域AR1~AR8の領域内に収まっているときに、着目ブロックBKnが画面の左右辺より上下辺に近い場合は、まず差分ベクトルの垂直成分の正負符号を決定した後に、水平成分の正負符号を決定するように制御する。 Further, in the setting control unit 18 in the video coding device 1 and the setting control unit 24 in the video decoding device 2, the block BKn of interest is placed in the areas AR1 to AR8 at the edge of the screen as the process of estimating the positive and negative codes of the difference vector. When the block BKn of interest is closer to the upper and lower sides than the left and right sides of the screen when it is settled, the positive and negative codes of the vertical components of the difference vector are first determined, and then the positive and negative codes of the horizontal components are controlled to be determined.

また、映像符号化装置1における設定制御部18、及び映像復号装置2における設定制御部24は、差分ベクトルの正負符号の推定処理として、着目ブロックBKnが画面端の領域AR1~AR8の領域内に収まっているときに、着目ブロックが、画面の左右辺及び上下辺から等距離にある場合は、予め定めた順序(例えば、先に水平成分の符号を先に求めた後に、垂直成分の符号を求める)で差分ベクトルの水平成分及び垂直成分の正負符号を決定するように制御する。 Further, in the setting control unit 18 in the video coding device 1 and the setting control unit 24 in the video decoding device 2, the block BKn of interest is placed in the areas AR1 to AR8 at the edge of the screen as the process of estimating the positive and negative signs of the difference vector. If the blocks of interest are at equal distances from the left and right sides and the top and bottom sides of the screen when they are settled, the sign of the vertical component is specified after the code of the horizontal component is first obtained in a predetermined order (for example, the code of the horizontal component is first obtained. (Determining) controls to determine the positive and negative signs of the horizontal and vertical components of the difference vector.

また、さらなる変形として、画面端の所定範囲のかわりに、着目ブロックBKnが画面上下左右辺に隣接するか否かに基づいて、差分ベクトルの成分ごとに、当該可逆圧縮後の正誤フラグ又は当該単純に二値化した正負符号を切り替えることができる。特に、着目ブロックBKnが画面上辺のみに接している場合はAR1、画面下辺のみに接している場合はAR2、画面左辺のみに接している場合はAR3、画面右辺のみに接している場合はAR4、画面上辺および左辺の両方に接している場合はAR5、画面上辺および右辺の両方に接している場合はAR6、画面下辺および左辺の両方に接している場合はAR7、画面下辺および右辺の両方に接している場合はAR8、それ以外の場合はAR0の領域内に収まっているブロックとして制御すると好適である。 Further, as a further modification, instead of the predetermined range at the screen edge, the correct / incorrect flag after the lossless compression or the simple It is possible to switch between the positive and negative codes binarized to. In particular, AR1 if the block BKn of interest touches only the upper side of the screen, AR2 if it touches only the lower side of the screen, AR3 if it touches only the left side of the screen, and AR4 if it touches only the right side of the screen. AR5 if it touches both the top and left sides of the screen, AR6 if it touches both the top and right sides of the screen, AR7 if it touches both the bottom and left sides of the screen, touches both the bottom and right sides of the screen. If it is, it is preferable to control it as a block that is contained in the area of AR8, and in other cases, it is preferable to control it as a block that is contained in the area of AR0.

(コンテキストとして参照するブロック)
上述したように、本実施形態の映像符号化装置1及び映像復号装置2では、フレーム画像における当該着目ブロックの位置に応じて、正誤フラグを使用する領域と、従来技法と同様に正負符号の+/-を1/0のビット表現とする領域を、予め定めた設定情報に基づいて制御することができる。そして、正誤フラグの伝送には、コンテキスト適応型の可逆圧縮/復号処理を適用する。
(Block referenced as context)
As described above, in the video coding device 1 and the video decoding device 2 of the present embodiment, depending on the position of the block of interest in the frame image, the area where the correct / incorrect flag is used and the + of the positive / negative code as in the conventional technique. The area where /-is a 1/0 bit representation can be controlled based on predetermined setting information. Then, a context-adaptive lossless compression / decryption process is applied to the transmission of the correct / incorrect flag.

即ち、上述したように、本実施形態の映像符号化装置1におけるコンテキスト適応型可逆圧縮部15、及び映像復号装置2におけるコンテキスト適応型可逆復号部26は、着目ブロック情報に基づいてコンテキストモデルを指定し、当該正誤フラグに対してコンテキスト適応型の可逆圧縮符号化/復号処理を施す。 That is, as described above, the context-adaptive lossless compression unit 15 in the video coding device 1 and the context-adaptive lossless decoding unit 26 in the video decoding device 2 specify the context model based on the block information of interest. Then, a context-adaptive lossless compression coding / decoding process is performed on the correct / incorrect flag.

コンテキスト適応型の可逆圧縮符号化/復号処理は、例えばMPEG-H HEVC/H.265方式に準じる映像符号化方式とする場合ではCABACを、AVC/H.264方式に準じる映像符号化方式とする場合ではCABAC又はCAVLCを利用できる。 In the context-adaptive lossless compression coding / decoding process, for example, in the case of a video coding method according to the MPEG-H HEVC / H.265 method, CABAC is used as a video coding method according to the AVC / H.264 method. In some cases, CABAC or CAVLC can be used.

ただし、本実施形態に係る正誤フラグの可逆圧縮/復号に係るコンテキストモデルは、着目ブロック周辺におけるどのブロックをコンテキストとして参照するかについて好適例がある。 However, in the context model related to the lossless compression / decoding of the correct / incorrect flag according to the present embodiment, there is a preferable example as to which block in the vicinity of the block of interest is referred to as the context.

即ち、本実施形態に係るコンテキストモデルにおいて、着目ブロックBKnの画面内の位置に応じてコンテキストとして参照するブロックの位置を予め定めておくようにする。これにより、より圧縮効率の向上が期待できる。 That is, in the context model according to the present embodiment, the position of the block to be referred to as the context is determined in advance according to the position of the block of interest BKn in the screen. This can be expected to further improve the compression efficiency.

より具体的には、着目ブロックBKnの画面内の位置に応じてコンテキストとして参照するブロックとして、着目ブロックBKnが画面上下辺よりも画面左右辺に近い場合、当該着目ブロックBKnの直上のブロックを参照する。例えば、図9(a)に示すように、着目ブロックBKnが画面下辺(距離d2)よりも画面左辺(距離d1)に近い場合(d1<d2)、当該着目ブロックBKnの直上のブロックRBKを参照する。 More specifically, as a block to be referred to as a context according to the position of the focus block BKn in the screen, when the focus block BKn is closer to the left and right sides of the screen than the top and bottom sides of the screen, the block directly above the focus block BKn is referred to. do. For example, as shown in FIG. 9A, when the focus block BKn is closer to the left side (distance d1) of the screen (distance d1) than the bottom side (distance d2) of the screen (d1 <d2), refer to the block RBK directly above the block BKn of interest. do.

また、着目ブロックBKnの画面内の位置に応じてコンテキストとして参照するブロックとして、着目ブロックBKnが画面左右辺よりも画面上下辺に近い場合、当該着目ブロックBKnの直左のブロックを参照する。例えば、図9(b)に示すように、着目ブロックBKnが画面左辺(距離d1)よりも画面下辺(距離d2)に近い場合(d1>d2)、当該着目ブロックBKnの直左のブロックRBKを参照する。 Further, as a block to be referred to as a context according to the position of the attention block BKn in the screen, when the focus block BKn is closer to the upper and lower sides of the screen than the left and right sides of the screen, the block immediately to the left of the focus block BKn is referred to. For example, as shown in FIG. 9B, when the focus block BKn is closer to the bottom side (distance d2) of the screen (distance d2) than the left side of the screen (distance d1) (d1> d2), the block RBK immediately to the left of the focus block BKn is used. refer.

また、着目ブロックBKnの画面内の位置に応じてコンテキストとして参照するブロックとして、着目ブロックBKnが画面左右辺よりも画面上下辺から等距離にある場合、当該着目ブロックBKnの直左、直左上、直上、及び直右上のうち予め定めた1以上のブロックを参照する。例えば、図9(c)に示すように、着目ブロックBKnが画面左辺(距離d1)と画面下辺(距離d2)から等距離にある場合(d1=d2)、当該着目ブロックBKnの直左のブロックRBK1、直左上のブロックRBK2、直上のブロックRBK3、及び直右上のブロックRBK4のうち予め定めた1以上のブロックを参照する。 Further, as a block to be referred to as a context according to the position of the focus block BKn in the screen, when the focus block BKn is equidistant from the upper and lower sides of the screen than the left and right sides of the screen, the focus block BKn is directly left, directly upper left, and so on. Refer to one or more predetermined blocks directly above and directly above. For example, as shown in FIG. 9C, when the focus block BKn is equidistant from the left side of the screen (distance d1) and the bottom side of the screen (distance d2) (d1 = d2), the block directly to the left of the focus block BKn. Refer to one or more predetermined blocks among RBK1, the block RBK2 on the upper left, the block RBK3 on the upper right, and the block RBK4 on the upper right.

このように当該可逆圧縮/復号処理に係るコンテキストとして1つ又は複数のブロックを参照し、参照した各ブロックの値(即ち、正誤フラグの値)に応じて、CABAC又はCAVLCの方式に準じて適応的に可逆圧縮/復号を行うことができる。 As described above, one or a plurality of blocks are referred to as the context related to the lossless compression / decryption processing, and are adapted according to the CABAC or CAVLC method according to the value of each referenced block (that is, the value of the correctness flag). Lossless compression / decoding can be performed.

(実施例2:差分ベクトルの正負符号の推定処理)
図3に示す実施例1の「差分ベクトルの正負符号の推定処理」では、差分ベクトル符号推定部13,27が、着目ブロックBKnに関する正側及び負側の候補ベクトルV,Vを算出し、これらに対応するブロックBK、ブロックBKを算出して、その位置関係や画面外にはみ出す面積S,Sを基に差分ベクトル推定符号を決定する例を説明した。
(Example 2: Estimating processing of positive / negative sign of difference vector)
In the “positive / negative sign estimation process of the difference vector” of the first embodiment shown in FIG. 3, the difference vector code estimation units 13 and 27 calculate the positive and negative candidate vectors VA and VB for the block BKn of interest. , An example of calculating the block BK A and the block BK B corresponding to these and determining the difference vector estimation code based on the positional relationship and the areas SA and SB protruding outside the screen has been described.

この変形例として、ブロックの座標のみを用いて差分ベクトルの正負符号の推定処理を行い、これにより、その処理をより高速かつ処理負担を軽減することもできる。以下、図10を参照して、処理負担を軽減し、より高速化することができる。図10は、本発明による一実施形態の映像符号化装置1及び映像復号装置2における実施例2の差分ベクトルの正負符号の推定処理を示すフローチャートである。 As an example of this modification, it is possible to perform the estimation processing of the positive / negative sign of the difference vector using only the coordinates of the block, thereby making the processing faster and reducing the processing load. Hereinafter, with reference to FIG. 10, the processing load can be reduced and the speed can be further increased. FIG. 10 is a flowchart showing a positive / negative sign estimation process of the difference vector of the second embodiment in the video coding device 1 and the video decoding device 2 according to the present invention.

ここでは、差分ベクトルの水平成分の正負符号の推定処理について説明する。 Here, the estimation process of the positive and negative signs of the horizontal component of the difference vector will be described.

まず、実施例2に係る差分ベクトル符号推定部13,27は、実施例1と同様に、着目ブロックについて、差分ベクトルの絶対値を入力(読み込み)(ステップS11)、差分ベクトルの絶対値=0であるか否かを判定する(ステップS12)。 First, the difference vector code estimation units 13 and 27 according to the second embodiment input (read) the absolute value of the difference vector for the block of interest (step S11), and the absolute value of the difference vector = 0, as in the first embodiment. It is determined whether or not it is (step S12).

差分ベクトルの絶対値=0であるとき(ステップS12:Y)、実施例2に係る差分ベクトル符号推定部13,27は、実施例1と同様に、差分ベクトルの正負符号なしとして推定処理を終了する(ステップS13)。 When the absolute value of the difference vector = 0 (step S12: Y), the difference vector code estimation units 13 and 27 according to the second embodiment end the estimation process with no positive or negative sign of the difference vector, as in the first embodiment. (Step S13).

一方、差分ベクトルの絶対値≠0であるとき(ステップS12:N)、実施例2に係る差分ベクトル符号推定部13,27は、実施例1と同様に、当該着目ブロックに関する正側及び負側の候補ベクトルV,Vを算出する(ステップS14)。
候補ベクトルV=予測ベクトル+差分ベクトルの絶対値
候補ベクトルV=予測ベクトル-差分ベクトルの絶対値
On the other hand, when the absolute value of the difference vector ≠ 0 (step S12: N), the difference vector code estimation units 13 and 27 according to the second embodiment are on the positive side and the negative side with respect to the block of interest, as in the first embodiment. Candidate vectors VA and BB of are calculated (step S14).
Candidate vector VA = Prediction vector + Absolute value of difference vector Candidate vector VA = Prediction vector - Absolute value of difference vector

続いて、実施例2に係る差分ベクトル符号推定部13,27は、実施例1における正側及び負側の候補ベクトルV,Vにそれぞれ対応するブロックBK,BKを算出する代わりに、着目ブロックBKnの左上画素の座標x、着目ブロックBKnの幅w、フレーム画像の幅(画面幅)Wを設定する(ステップS15’)。 Subsequently, the difference vector code estimation units 13 and 27 according to the second embodiment instead of calculating the blocks BK A and BK B corresponding to the positive and negative candidate vectors VA and BB in the first embodiment, respectively. , The coordinates x of the upper left pixel of the focus block BKn, the width w of the focus block BKn, and the width (screen width) W of the frame image are set (step S15').

続いて、実施例2に係る差分ベクトル符号推定部13,27は、『x+V≧0、且つx+w+V≦W、且つx+V≧0、且つx+w+V≦W』を満たすかを判定する(ステップS16’)。この処理は、実施例1におけるブロックBK,BKが双方とも完全に画面内であるかの判定(図3:ステップS16)に対応する代替処理である。 Subsequently, the difference vector code estimation units 13 and 27 according to the second embodiment determine whether or not “x + VA ≧ 0, x + w + VA ≦ W, and x + V B ≧ 0, and x + w + V B W is satisfied (step). S16'). This process is an alternative process corresponding to the determination of whether the blocks BK A and BK B in the first embodiment are completely in the screen (FIG. 3: step S16).

『x+V≧0、且つx+w+V≦W、且つx+V≧0、且つx+w+V≦W』を満たすとき(ステップS16’:Y)、実施例2に係る差分ベクトル符号推定部13,27は、差分ベクトルの正負符号をデフォルト値として推定し、差分ベクトル推定符号=デフォルト値として決定する(ステップS17)。本例では“正”をデフォルト値として説明するが、“負”をデフォルト値としてもよい。 When “x + VA ≧ 0, x + w + VA ≦ W, and x + V B ≧ 0, and x + w + V B ≦ W” are satisfied (step S16': Y), the difference vector code estimation units 13 and 27 according to the second embodiment The positive and negative signs of the difference vector are estimated as default values, and the difference vector estimated sign = default value is determined (step S17). In this example, "positive" is used as the default value, but "negative" may be used as the default value.

『x+V≧0、且つx+w+V≦W、且つx+V≧0、且つx+w+V≦W』を満たさないとき(ステップS16’:N)、実施例2に係る差分ベクトル符号推定部13,27は、続いて『“x+w+V≦0、又はx+V≧W”、且つ“x+w+V≦0、又はx+V≧W”』を満たすかを判定する(ステップS18’)。この処理は、実施例1におけるブロックBK,BKが双方とも完全に画面外であるかの判定(図3:ステップS18)に対応する代替処理である。 When “x + VA ≧ 0, x + w + VA ≦ W, and x + V B ≧ 0, and x + w + V B ≦ W” are not satisfied (step S16': N), the difference vector code estimation units 13 and 27 according to the second embodiment Then, it is determined whether or not "" x + w + VA ≤ 0 or x + VA ≥ W "and" x + w + V B ≤ 0 or x + V B ≥ W "" is satisfied (step S18'). This process is an alternative process corresponding to the determination of whether the blocks BK A and BK B in the first embodiment are completely out of the screen (FIG. 3: step S18).

『“x+w+V≦0、又はx+V≧W”、且つ“x+w+V≦0、又はx+V≧W”』を満たすとき(ステップS18’:Y)、実施例2に係る差分ベクトル符号推定部13,27は、「min(abs(x+w+V), abs(x+V-W))」と、「min(abs(x+w+V), abs(x+V-W)」とを比較する(ステップS19’)。abs()は絶対値を算出する関数であり、min()は最小値を算出する関数である。この処理は、実施例1における「ブロックBKとその最近接の画面端との距離」、及び、「ブロックBKとその最近接の画面端との距離」の比較(図3:ステップS19)に対応する代替処理である。 When "" x + w + VA ≤ 0 or x + VA ≥ W "and" x + w + V B ≤ 0 or x + V B ≥ W "" are satisfied (step S18': Y), the difference vector code estimation unit 13 according to the second embodiment. , 27 compare "min (abs (x + w + VA ), abs (x + VA - W))" with "min (abs (x + w + VA), abs (x + VA - W)" (step S19'). .Abs () is a function for calculating the absolute value, and min () is a function for calculating the minimum value. This process is the "distance between the block BK A and its nearest screen edge" in the first embodiment. , And, it is an alternative process corresponding to the comparison (FIG. 3: step S19) of "the distance between the block BKB and its closest screen edge".

「min(abs(x+w+V), abs(x+V-W))」が、「min(abs(x+w+V), abs(x+V-W)」より大きいとき(ステップS19’:Y)、実施例2に係る差分ベクトル符号推定部13,27は、差分ベクトル推定符号=負として決定する(ステップS21)。 When "min (abs (x + w + V A ), abs (x + V A -W))" is larger than "min (abs (x + w + V B ), abs (x + V B -W)" (step S19': Y), Examples. The difference vector code estimation units 13 and 27 according to No. 2 determine that the difference vector estimation code = negative (step S21).

また、「min(abs(x+w+V), abs(x+V-W))」が、「min(abs(x+w+V), abs(x+V-W)」より小さいとき(ステップS19’:N)、実施例2に係る差分ベクトル符号推定部13,27は、差分ベクトル推定符号=正として決定する(ステップS20)。 Further, when "min (abs (x + w + V A ), abs (x + V A -W))" is smaller than "min (abs (x + w + V B ), abs (x + V B -W)" (step S19': N), The difference vector code estimation units 13 and 27 according to the second embodiment determine that the difference vector estimation code = positive (step S20).

また、「min(abs(x+w+V), abs(x+V-W))」が、「min(abs(x+w+V), abs(x+V-W)」と等しいとき、実施例2に係る差分ベクトル符号推定部13,27は、差分ベクトル推定符号=正又は負の予め指定された方(図10に示す例では差分ベクトル推定符号=正)として決定する。 Further, when "min (abs (x + w + V A ), abs (x + V A -W))" is equal to "min (abs (x + w + V B ), abs (x + V B -W)", the difference vector according to the second embodiment. The code estimation units 13 and 27 determine that the difference vector estimation code = positive or negative (in the example shown in FIG. 10, the difference vector estimation code = positive).

尚、ステップS19’に係る比較で、差分ベクトル推定符号=正又は負の予め指定された方として決定するにあたり、第2のデフォルト値として(或いは共通に用いるデフォルト値として)示す設定情報を、ストリーム中のヘッダ(スライス又はタイルのヘッダ、ピクチャのヘッダ、及びシーケンスのヘッダのいずれか1つ以上を含む)に埋め込んで伝送する形態とすることができる。ただし、当該第2のデフォルト値について映像符号化装置1及び映像復号装置2間で予め定めておくときは映像符号化装置1から映像復号装置2へと伝送する必要はなく、当該設定情報をヘッダに埋め込む必要もない。 In the comparison according to step S19', the setting information shown as the second default value (or as the commonly used default value) is streamed when the difference vector estimation code = positive or negative pre-specified one is determined. It can be embedded in the header inside (including one or more of a slice or tile header, a picture header, and a sequence header) for transmission. However, when the second default value is predetermined between the video coding device 1 and the video decoding device 2, it is not necessary to transmit the setting information from the video coding device 1 to the video decoding device 2, and the setting information is used as a header. There is no need to embed it in.

一方、ステップS16’,17’の双方を満たさないとき、実施例2に係る差分ベクトル符号推定部13,27は、「max(abs(min(0, x+V)), max(W, x+w+V)-W)」と、「max(abs(min(0, x+V)), max(W, x+w+V)-W)」とを比較する(ステップS23’)。max()は最大値を算出する関数である。この処理は、実施例1における面積Sと面積Sとの比較(図3:ステップS23)に対応する代替処理である。 On the other hand, when both steps S16'and 17'are not satisfied, the difference vector code estimation units 13 and 27 according to the second embodiment have "max (abs (min (0, x + VA ))), max (W, x + w + VA ). )-W) "and" max (abs (min (0, x + V B )), max (W, x + w + V B ) -W) "are compared (step S23'). max () is a function to calculate the maximum value. This process is an alternative process corresponding to the comparison between the area SA and the area SB in the first embodiment (FIG. 3: step S23).

「max(abs(min(0, x+V)), max(W, x+w+V)-W)」が、「max(abs(min(0, x+V)), max(W, x+w+V)-W)」より大きいとき(ステップS23’:Y)、実施例2に係る差分ベクトル符号推定部13,27は、差分ベクトル推定符号=負として決定する(ステップS25)。 "Max (abs (min (0, x + VA )), max (W, x + w + VA ) -W)" is "max (abs (min (0, x + V B )), max (W, x + w + V B ) -W" ) ”(Step S23': Y), the difference vector code estimation units 13 and 27 according to the second embodiment determine that the difference vector estimation code = negative (step S25).

「max(abs(min(0, x+V)), max(W, x+w+V)-W)」が、「max(abs(min(0, x+V)), max(W, x+w+V)-W)」より小さいとき(ステップS23’:N)、実施例2に係る差分ベクトル符号推定部13,27は、差分ベクトル推定符号=正として決定する(ステップS24)。 "Max (abs (min (0, x + VA )), max (W, x + w + VA ) -W)" is "max (abs (min (0, x + V B )), max (W, x + w + V B ) -W" ) ”(Step S23': N), the difference vector code estimation units 13 and 27 according to the second embodiment determine that the difference vector estimation code = positive (step S24).

「max(abs(min(0, x+V)), max(W, x+w+V)-W)」が、「max(abs(min(0, x+V)), max(W, x+w+V)-W)」と等しいとき、実施例2に係る差分ベクトル符号推定部13,27は、差分ベクトル推定符号=正又は負の予め指定された方(図10に示す例では差分ベクトル推定符号=正)として決定する。 "Max (abs (min (0, x + VA )), max (W, x + w + VA ) -W)" is "max (abs (min (0, x + VA ))), max (W, x + w + VA) -W . ) ”, The difference vector code estimation units 13 and 27 according to the second embodiment assume that the difference vector estimation code = positive or negative, whichever is specified in advance (in the example shown in FIG. 10, the difference vector estimation code = positive). decide.

尚、ステップS23’に係る比較で、差分ベクトル推定符号=正又は負の予め指定された方として決定するにあたり、第3のデフォルト値として(或いは共通に用いるデフォルト値として)示す設定情報を、ストリーム中のヘッダ(スライス又はタイルのヘッダ、ピクチャのヘッダ、及びシーケンスのヘッダのいずれか1つ以上を含む)に埋め込んで伝送する形態とすることができる。ただし、当該第3のデフォルト値について映像符号化装置1及び映像復号装置2間で予め定めておくときは映像符号化装置1から映像復号装置2へと伝送する必要はなく、当該設定情報をヘッダに埋め込む必要もない。 In the comparison according to step S23', the setting information shown as the third default value (or as the commonly used default value) is streamed when the difference vector estimation code = positive or negative pre-specified one is determined. It can be embedded in the header inside (including one or more of a slice or tile header, a picture header, and a sequence header) for transmission. However, when the third default value is predetermined between the video coding device 1 and the video decoding device 2, it is not necessary to transmit the setting information from the video coding device 1 to the video decoding device 2, and the setting information is used as a header. There is no need to embed it in.

ステップS17,S20,S21,S24,S25を経て決定した差分ベクトル推定符号は、図1に示す映像符号化装置1側では正誤フラグ14へ、図2に示す映像復号装置2側では差分ベクトル符号決定部28へ出力される(ステップS26)。 The difference vector estimation code determined through steps S17, S20, S21, S24, and S25 is set to the correct / incorrect flag 14 on the video coding device 1 side shown in FIG. 1, and the difference vector code is determined on the video decoding device 2 side shown in FIG. It is output to the unit 28 (step S26).

このようにして、実施例2に係る差分ベクトル符号推定部13,27は、差分ベクトルの絶対値と予測ベクトルとを用いて、正側及び負側の候補ベクトルV,Vを算出し、着目ブロックBKnの座標及び大きさ、候補ベクトルV,V、及び画面幅の位置関係に応じて場合分けした予め定めた規則に基づいて差分ベクトルの正負符号を推定し、差分ベクトル推定符号を決定する。そして、実施例1と比較して、実施例2では、面積を求める代わりに座標計算で済むため、当該規則を簡素化できる。尚、図10において、関数abs()、min()及びmax()を用いる代わりにif文で分類する構成としてもよい。 In this way, the difference vector code estimation units 13 and 27 according to the second embodiment calculate the positive and negative candidate vectors VA and BB using the absolute value of the difference vector and the prediction vector. The positive and negative signs of the difference vector are estimated based on the predetermined rules classified according to the coordinates and size of the block BKn of interest, the candidate vectors VA , BB , and the positional relationship of the screen width, and the difference vector estimation code is obtained. decide. Then, as compared with the first embodiment, in the second embodiment, the coordinate calculation is sufficient instead of obtaining the area, so that the rule can be simplified. In addition, in FIG. 10, instead of using the functions abs (), min () and max (), the if statement may be used for classification.

そして、映像符号化装置1側では、正誤フラグ生成部14は、差分ベクトル符号推定部13から得られる差分ベクトル推定符号と、画像符号化部10から得られる差分ベクトルの正負符号とを比較して、両者が等しい場合は「真」、異なる場合は「偽」を示す正誤フラグを生成する。 Then, on the video coding device 1 side, the correct / incorrect flag generation unit 14 compares the difference vector estimation code obtained from the difference vector code estimation unit 13 with the positive / negative code of the difference vector obtained from the image coding unit 10. , Generates a correct / incorrect flag indicating "true" if they are equal and "false" if they are different.

また、映像復号装置2側では、差分ベクトル符号決定部28は、正誤フラグが「真」を示すときは当該差分ベクトル推定符号をそのまま差分ベクトルの正負符号として決定し、「偽」を示すときは、当該差分ベクトル推定符号を反転した符号を差分ベクトルの正負符号として決定する。 Further, on the video decoding device 2 side, the difference vector sign determination unit 28 determines the difference vector estimation code as it is as the positive / negative sign of the difference vector when the correctness flag indicates “true”, and when it indicates “false”. , The sign obtained by inverting the difference vector estimation sign is determined as the positive / negative sign of the difference vector.

従って、実施例2に係る差分ベクトル符号推定部13,27をそれぞれ備える映像符号化装置1及び映像復号装置2は、実施例1に係る差分ベクトル符号推定部13,27をそれぞれ備える映像符号化装置1及び映像復号装置2と同様の作用・効果を得ることができる。 Therefore, the video coding device 1 and the video decoding device 2 each including the difference vector code estimation units 13 and 27 according to the second embodiment are video coding devices including the difference vector code estimation units 13 and 27 according to the first embodiment, respectively. The same actions and effects as those of 1 and the video decoding device 2 can be obtained.

(実施例3:差分ベクトルの正負符号の推定処理)
実施例2の更なる変形例として、図11に示すように、図10のステップS16’,S18’,S19’をスキップし、ステップS15’の直後にステップS23’を実行して処理を簡略化しても、多くの場合、差分ベクトルの正負符号に関する可逆圧縮/復号として同様の効果を得ることができる。
(Example 3: Estimating processing of positive / negative sign of difference vector)
As a further modification of the second embodiment, as shown in FIG. 11, steps S16', S18', and S19' in FIG. 10 are skipped, and step S23'is executed immediately after step S15'to simplify the process. However, in many cases, the same effect can be obtained as lossless compression / decoding with respect to the positive and negative codes of the difference vector.

以上の各実施形態における映像符号化装置1、又は映像復号装置2は、コンピューターにより構成することができ、映像符号化装置1、又は映像復号装置2の各処理部を機能させるためのプログラムを好適に用いることができる。具体的には、映像符号化装置1、又は映像復号装置2の各処理部を制御するための制御部をコンピューター内の中央演算処理装置(CPU)で構成でき、且つ、各処理部を動作させるのに必要となるプログラムを適宜記憶する記憶部を少なくとも1つのメモリで構成させることができる。即ち、そのようなコンピューターに、CPUによって該プログラムを実行させることにより、映像符号化装置1、又は映像復号装置2の各処理部の有する機能を実現させることができる。更に、映像符号化装置1、又は映像復号装置2の各処理部の有する機能を実現させるためのプログラムを、前述の記憶部(メモリ)の所定の領域に格納させることができる。そのような記憶部は、装置内部のRAM又はROMなどで構成させることができ、或いは又、外部記憶装置(例えば、ハードディスク)で構成させることもできる。また、そのようなプログラムは、コンピューターで利用されるOS上のソフトウェア(ROM又は外部記憶装置に格納される)の一部で構成させることができる。更に、そのようなコンピューターに、映像符号化装置1、又は映像復号装置2の各処理部として機能させるためのプログラムは、コンピューター読取り可能な記録媒体に記録することができる。また、映像符号化装置1、又は映像復号装置2の各処理部をハードウェア又はソフトウェアの一部として構成させ、各々を組み合わせて実現させることもできる。 The video coding device 1 or the video decoding device 2 in each of the above embodiments can be configured by a computer, and a program for functioning each processing unit of the video coding device 1 or the video decoding device 2 is suitable. Can be used for. Specifically, the control unit for controlling each processing unit of the video coding device 1 or the video decoding device 2 can be configured by the central processing unit (CPU) in the computer, and each processing unit is operated. A storage unit for appropriately storing a program required for the above can be configured with at least one memory. That is, by causing such a computer to execute the program by the CPU, it is possible to realize the functions of each processing unit of the video coding device 1 or the video decoding device 2. Further, a program for realizing the functions of each processing unit of the video coding device 1 or the video decoding device 2 can be stored in a predetermined area of the above-mentioned storage unit (memory). Such a storage unit can be configured by a RAM or ROM inside the device, or can be configured by an external storage device (for example, a hard disk). Further, such a program can be configured as a part of software (stored in ROM or an external storage device) on an OS used by a computer. Further, a program for causing such a computer to function as each processing unit of the video coding device 1 or the video decoding device 2 can be recorded on a computer-readable recording medium. Further, each processing unit of the video coding device 1 or the video decoding device 2 may be configured as a part of hardware or software, and each may be combined and realized.

以上、特定の実施形態の例を挙げて本発明を説明したが、本発明は前述の実施形態の例に限定されるものではなく、その技術思想を逸脱しない範囲で種々変形可能である。例えば、上述した実施形態の例では、差分ベクトル符号推定処理に関する規則について、特定の順序・計算方法を例示して説明したが、順序の入れ替えやより簡易な演算式(if文等)、或いはより高精度の演算式(座標・面積の組み合わせ等)など種々の変形例が想定される。 Although the present invention has been described above with reference to examples of specific embodiments, the present invention is not limited to the examples of the above-described embodiments, and can be variously modified without departing from the technical idea. For example, in the example of the above-described embodiment, the rules regarding the difference vector code estimation process have been described by exemplifying a specific order / calculation method, but the order may be changed, a simpler arithmetic expression (if statement, etc.), or more. Various modifications such as high-precision arithmetic expressions (combination of coordinates and areas, etc.) are assumed.

また、上述した実施形態の例では、画面中央(図7:領域AR0)については従来技法の正負符号の+/-を1/0のビット表現とする二値化処理を行い、切り替えを行う例を説明したが、画面中央(図7:領域AR0)についても本発明に係る正誤フラグを用いた圧縮伝送としてもよい。即ち、画面中央(図7:領域AR0)について正誤フラグを用いた圧縮伝送としても発生確率に偏りが生じにくいことが多いと想定されることから圧縮効率の向上が望めない可能性があるが、換言すると著しい悪化もしない。その代わり、差分ベクトルの正負符号の伝送に関して統一した処理となる点で処理の簡単化(実装容量の低減)等の利点が生じる。従って、本発明に係る映像符号化装置及び映像復号装置は、上述した実施形態の例に限定されるものではなく、特許請求の範囲の記載によってのみ制限される。 Further, in the example of the above-described embodiment, the center of the screen (FIG. 7: region AR0) is subjected to binarization processing in which +/- of the positive / negative sign of the conventional technique is represented by 1/0, and switching is performed. However, the center of the screen (FIG. 7: region AR0) may also be compressed transmission using the correct / incorrect flag according to the present invention. That is, it is assumed that the probability of occurrence is unlikely to be biased even when compressed transmission using the correct / incorrect flag in the center of the screen (Fig. 7: region AR0), so improvement in compression efficiency may not be expected. In other words, there is no significant deterioration. Instead, there are advantages such as simplification of processing (reduction of mounting capacity) in that the processing is unified with respect to the transmission of the positive and negative codes of the difference vector. Therefore, the video coding device and the video decoding device according to the present invention are not limited to the examples of the above-described embodiments, but are limited only by the description of the scope of claims.

本発明によれば、動き補償予測を用いた映像符号化方式における差分ベクトルの正負符号(+,-)に関して可逆圧縮が可能となり圧縮効率が向上するようになるので、映像符号化装置及び映像復号装置の用途に有用である。 According to the present invention, lossless compression is possible with respect to the positive and negative codes (+,-) of the difference vector in the video coding method using motion compensation prediction, and the compression efficiency is improved. Therefore, the video coding device and the video decoding Useful for device applications.

1 映像符号化装置
10 画像符号化部
11 動き補償予測部
12 差分ベクトル生成部
13 差分ベクトル符号推定部
14 正誤フラグ生成部
15 コンテキスト適応型可逆圧縮部
16 正負二値化部
17 切替部
18 設定制御部
19 ストリーム生成部
20 ストリーム読込部
21 画像復号部
22 差分ベクトル復元部
23 動き補償予測部
24 設定制御部
25 切替部
26 コンテキスト適応型可逆復号部
27 差分ベクトル符号推定部
28 差分ベクトル符号決定部
29 正負決定部
1 Video coding device 10 Image coding unit 11 Motion compensation prediction unit 12 Difference vector generation unit 13 Difference vector code estimation unit 14 Correct / wrong flag generation unit 15 Context-adaptive lossless compression unit 16 Positive / negative binarization unit 17 Switching unit 18 Setting control Part 19 Stream generation part 20 Stream reading part 21 Image decoding part 22 Difference vector restoration part 23 Motion compensation prediction part 24 Setting control part 25 Switching part 26 Context-adaptive lossless decoding part 27 Difference vector code estimation part 28 Difference vector code determination part 29 Positive / negative decision section

Claims (10)

動き補償予測を用いた映像符号化方式における映像符号化装置であって、
フレーム内の所定のブロックについて動き補償予測に基づく差分ベクトルを生成する差分ベクトル生成手段と、
前記所定のブロックに関する情報、前記差分ベクトルの絶対値、及び前記差分ベクトルに係る予測ベクトルを基にした予め定めた規則に従って前記差分ベクトルの正負符号を推定することにより、前記差分ベクトルの推定符号を決定する差分ベクトル符号推定手段と、
前記差分ベクトル生成手段から得られる前記差分ベクトルの正負符号と、前記差分ベクトル符号推定手段から得られる前記差分ベクトルの推定符号とを比較して、両者が等しい場合は真、異なる場合は偽を示す正誤フラグを生成する正誤フラグ生成手段と、
前記正誤フラグ生成手段によって生成した前記正誤フラグに対し、前記所定のブロックの位置に応じたコンテキストに適応させた可逆圧縮処理を施すコンテキスト適応型の可逆圧縮手段と、
当該可逆圧縮処理を施した前記正誤フラグを前記差分ベクトルの絶対値に対応付けて伝送するためのストリームを生成するストリーム生成手段と、
を備えることを特徴とする映像符号化装置。
It is a video coding device in a video coding method using motion compensation prediction.
A difference vector generation means that generates a difference vector based on motion compensation prediction for a predetermined block in a frame,
The estimation code of the difference vector is obtained by estimating the positive and negative signs of the difference vector according to a predetermined rule based on the information about the predetermined block, the absolute value of the difference vector, and the prediction vector related to the difference vector. Difference vector sign estimation means to determine and
The positive / negative sign of the difference vector obtained from the difference vector generation means is compared with the estimation code of the difference vector obtained from the difference vector code estimation means, and if they are equal, it indicates true, and if they are different, it indicates false. Correct / incorrect flag generation means for generating correct / incorrect flags, and
A context-adaptive lossless compression means that performs a lossless compression process adapted to the context according to the position of the predetermined block on the correctness flag generated by the correctness flag generation means.
A stream generation means for generating a stream for transmitting the correct / incorrect flag subjected to the lossless compression process in association with the absolute value of the difference vector.
A video coding device characterized by comprising.
前記差分ベクトル符号推定手段は、前記所定のブロックに関する情報、前記差分ベクトルの絶対値、及び前記予測ベクトルを用いて正側及び負側の候補ベクトルを算出し、各候補ベクトルのそれぞれに対応するブロックの位置と前記フレームの画面端との位置関係に応じて、或いは前記所定のブロックの座標及び大きさ、前記正側及び負側の候補ベクトル、並びに前記フレームの画面幅の位置関係に応じて、場合分けした予め定めた規則に基づいて前記差分ベクトルの正負符号を推定することを特徴とする、請求項1に記載の映像符号化装置。 The difference vector code estimation means calculates positive and negative candidate vectors using the information about the predetermined block, the absolute value of the difference vector, and the prediction vector, and blocks corresponding to each of the candidate vectors. Depending on the positional relationship between the position of the frame and the screen edge of the frame, or according to the coordinate and size of the predetermined block, the positive and negative candidate vectors, and the positional relationship of the screen width of the frame. The video coding apparatus according to claim 1, wherein the positive / negative sign of the difference vector is estimated based on a predetermined rule divided into cases. 前記フレームにおける画面中央の領域と画面端の所定範囲内の領域とに分け、少なくとも前記画面端の所定範囲内の領域に前記所定のブロックが収まっている際に、前記正誤フラグ生成手段を作動させるよう制御する制御手段を更に備えることを特徴とする、請求項1又は2に記載の映像符号化装置。 The frame is divided into an area at the center of the screen and an area within a predetermined range at the edge of the screen, and the correct / incorrect flag generation means is activated when the predetermined block is contained in at least the area within the predetermined range at the edge of the screen. The video coding apparatus according to claim 1 or 2, further comprising a control means for controlling such. 前記制御手段は、複数分割された前記画面端の所定範囲内の領域のうちいずれの領域に前記所定のブロックが収まっているかに基づいて、前記差分ベクトルの水平成分と垂直成分のそれぞれで前記正誤フラグを使用する成分を切り替えるように制御する手段を有することを特徴とする、請求項3に記載の映像符号化装置。 The control means is correct or incorrect for each of the horizontal component and the vertical component of the difference vector, based on which region of the predetermined range of the screen edge is contained in the predetermined block. The video coding apparatus according to claim 3, further comprising a means for controlling to switch the component using the flag. 前記制御手段は、
前記所定のブロックが前記フレームの画面の上下辺より左右辺に近い場合は、前記差分ベクトル符号推定手段に対し前記差分ベクトルの水平成分の正負符号を先に決定させ、
前記所定のブロックが前記フレームの画面の左右辺より上下辺に近い場合は、前記差分ベクトル符号推定手段に対し前記差分ベクトルの垂直成分の正負符号を先に決定させ、
前記所定のブロックが前記フレームの画面の左右辺及び上下辺から等距離にある場合は、前記差分ベクトル符号推定手段に対し予め定めた順序で差分ベクトルの水平成分及び垂直成分の正負符号を決定させるように制御する手段を有することを特徴とする、請求項4に記載の映像符号化装置。
The control means is
When the predetermined block is closer to the left and right sides than the upper and lower sides of the screen of the frame, the difference vector code estimation means is made to determine the positive and negative signs of the horizontal component of the difference vector first.
When the predetermined block is closer to the upper and lower sides than the left and right sides of the screen of the frame, the difference vector code estimation means is made to determine the positive and negative signs of the vertical component of the difference vector first.
When the predetermined block is equidistant from the left and right sides and the top and bottom sides of the screen of the frame, the difference vector code estimation means is made to determine the positive and negative signs of the horizontal component and the vertical component of the difference vector in a predetermined order. The video coding apparatus according to claim 4, further comprising means for controlling such.
請求項1から5のいずれか一項に記載の映像符号化装置によって伝送されるストリームを入力して読み込み、復号対象のフレーム内の所定のブロックについて前記差分ベクトルの絶対値及び前記可逆圧縮処理が施された正誤フラグを抽出するストリーム読込手段と、
該所定のブロックに関する情報、前記差分ベクトルの絶対値、及び前記差分ベクトルに係る予測ベクトルを基にした予め定めた規則に従って前記差分ベクトルの正負符号を推定することにより、前記差分ベクトルの推定符号を決定する差分ベクトル符号推定手段と、
前記可逆圧縮処理が施された正誤フラグに対し、当該所定のブロックの位置に応じたコンテキストに適応させた可逆復号処理を施すことにより復号した正誤フラグを生成するコンテキスト適応型の可逆復号手段と、
当該復号した前記正誤フラグが真を示すときは、該差分ベクトルの推定符号を当該所定のブロックの差分ベクトルの正負符号とし、偽を示すときは、該差分ベクトルの推定符号を反転した符号を差分ベクトルの正負符号として決定する差分ベクトル符号決定手段と、
当該所定のブロックの画像を復元するために、当該抽出した前記差分ベクトルの絶対値、及び前記差分ベクトル符号決定手段によって決定した差分ベクトルの正負符号を用いて、前記復号対象のフレーム内の当該所定のブロックの差分ベクトルを復元する差分ベクトル復元手段と、
を備えることを特徴とする映像復号装置。
The stream transmitted by the video coding apparatus according to any one of claims 1 to 5 is input and read, and the absolute value of the difference vector and the lossless compression process are performed for a predetermined block in the frame to be decoded. A stream reading means to extract the correctness flag applied, and
The estimation code of the difference vector is obtained by estimating the positive and negative signs of the difference vector according to a predetermined rule based on the information about the predetermined block, the absolute value of the difference vector, and the prediction vector related to the difference vector. Difference vector sign estimation means to determine and
A context-adaptive reversible decoding means that generates a deciphered correct / incorrect flag by performing a reversible decoding process adapted to the context according to the position of the predetermined block on the correct / incorrect flag subjected to the lossless compression process.
When the decoded correct / incorrect flag indicates true, the estimated sign of the difference vector is used as the positive / negative sign of the difference vector of the predetermined block, and when indicating false, the code obtained by inverting the estimated code of the difference vector is used as the difference. The difference vector sign determining means for determining the positive and negative signs of the vector,
In order to restore the image of the predetermined block, the absolute value of the extracted difference vector and the positive / negative sign of the difference vector determined by the difference vector sign determining means are used to determine the predetermined value in the frame to be decoded. Difference vector restoration means to restore the difference vector of the block of
A video decoding device characterized by comprising.
前記コンテキスト適応型の可逆復号手段は、当該所定のブロックの画面内の位置に応じてコンテキストとして参照するブロックとして予め定められた位置のブロックを参照して、前記可逆圧縮処理が施された正誤フラグに対し前記可逆復号処理を施すことを特徴とする、請求項6に記載の映像復号装置。 The context-adaptive lossless decoding means refers to a block at a predetermined position as a block to be referred to as a context according to the position of the predetermined block in the screen, and is subjected to the lossless compression process. The video decoding device according to claim 6, wherein the lossless decoding process is performed on the device. 前記コンテキスト適応型の可逆復号手段は、当該所定のブロックの画面内の位置に応じてコンテキストとして参照するブロックとして、
当該所定のブロックが画面上下辺よりも画面左右辺に近い場合、当該所定のブロックの直上のブロックを参照し、
当該所定のブロックが画面左右辺よりも画面上下辺に近い場合、当該所定のブロックの直左のブロックを参照し、
当該所定のブロックが画面左右辺よりも画面上下辺から等距離にある場合、当該所定のブロックの直左、直左上、直上、及び直右上のうち予め定めた1以上のブロックを参照して、前記可逆圧縮処理が施された正誤フラグに対し前記可逆復号処理を施すことを特徴とする、請求項7に記載の映像復号装置。
The context-adaptive reversible decoding means is used as a block to be referred to as a context according to the position of the predetermined block in the screen.
If the predetermined block is closer to the left and right sides of the screen than the top and bottom sides of the screen, refer to the block directly above the predetermined block.
If the predetermined block is closer to the top and bottom sides of the screen than the left and right sides of the screen, refer to the block directly to the left of the predetermined block.
When the predetermined block is equidistant from the upper and lower sides of the screen than the left and right sides of the screen, refer to one or more predetermined blocks of the predetermined block directly left, directly upper left, directly above, and directly upper right. The video decoding device according to claim 7, wherein the lossless decoding process is performed on the correct / incorrect flag to which the lossless compression process has been performed.
コンピューターを、請求項1から5のいずれか一項に記載の映像符号化装置として機能させるためのプログラム。 A program for operating a computer as the video coding apparatus according to any one of claims 1 to 5. コンピューターを、請求項6から8のいずれか一項に記載の映像復号装置として機能させるためのプログラム。 A program for operating a computer as the video decoding device according to any one of claims 6 to 8.
JP2022080144A 2018-02-15 2022-05-16 Video encoding device, video decoding device, and these programs Active JP7361838B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022080144A JP7361838B2 (en) 2018-02-15 2022-05-16 Video encoding device, video decoding device, and these programs

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018024701A JP7076221B2 (en) 2018-02-15 2018-02-15 Video coding device, video decoding device, and their programs
JP2022080144A JP7361838B2 (en) 2018-02-15 2022-05-16 Video encoding device, video decoding device, and these programs

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2018024701A Division JP7076221B2 (en) 2018-02-15 2018-02-15 Video coding device, video decoding device, and their programs

Publications (2)

Publication Number Publication Date
JP2022103284A true JP2022103284A (en) 2022-07-07
JP7361838B2 JP7361838B2 (en) 2023-10-16

Family

ID=67694563

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2018024701A Active JP7076221B2 (en) 2018-02-15 2018-02-15 Video coding device, video decoding device, and their programs
JP2022080144A Active JP7361838B2 (en) 2018-02-15 2022-05-16 Video encoding device, video decoding device, and these programs

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2018024701A Active JP7076221B2 (en) 2018-02-15 2018-02-15 Video coding device, video decoding device, and their programs

Country Status (1)

Country Link
JP (2) JP7076221B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20230100677A (en) * 2021-12-28 2023-07-05 주식회사 케이티 Method of encoding/decoding a video signal, and recording medium stroing a bitstream

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019150411A1 (en) 2018-01-30 2019-08-08 富士通株式会社 Video encoding device, video encoding method, video decoding device, and video decoding method, and video encoding system

Also Published As

Publication number Publication date
JP7076221B2 (en) 2022-05-27
JP2019140630A (en) 2019-08-22
JP7361838B2 (en) 2023-10-16

Similar Documents

Publication Publication Date Title
RU2683165C1 (en) Intra block copy prediction with asymmetric partitions and encoder-side search patterns, search ranges and approaches to partitioning
US10567754B2 (en) Hash table construction and availability checking for hash-based block matching
US20160277761A1 (en) Encoder-side decisions for block flipping and skip mode in intra block copy prediction
JP2008278091A (en) Moving picture recording method, and apparatus thereof
JP5216710B2 (en) Decryption processing method
JP2007124408A (en) Motion vector detector and motion vector detecting method
KR102267770B1 (en) Method and device for determining a set of modifiable elements in a group of pictures
WO2013051794A1 (en) Method for encoding/decoding an intra-picture prediction mode using two intra-prediction mode candidates, and apparatus using such a method
JP2018107580A (en) Moving image encoder, moving image encoding method, moving image encoding computer program, moving image decoder, moving image decoding method and moving image decoding computer program
JP2022103284A (en) Video encoder, video decoder, and their program
JP4833309B2 (en) Video compression encoding device
JP5677576B2 (en) Video decoding method and video encoding method
KR102570374B1 (en) Video encoding apparatus, video encoding method, video encoding program, video decoding apparatus, video decoding method, and video decoding program
JP6259272B2 (en) Video encoding apparatus and video encoding program
WO2019150411A1 (en) Video encoding device, video encoding method, video decoding device, and video decoding method, and video encoding system
JP6019797B2 (en) Moving picture coding apparatus, moving picture coding method, and program
JP5592246B2 (en) Context adaptive entropy encoding method, context adaptive entropy decoding method, context adaptive entropy encoding device, context adaptive entropy decoding device, and programs thereof
CN111264060A (en) Moving image encoding device, moving image encoding method, computer program for moving image encoding, moving image decoding device, moving image decoding method, and computer program for moving image decoding
US11528485B2 (en) Encoding apparatus and program
JP2017073602A (en) Moving image coding apparatus, moving image coding method, and computer program for moving image coding
JP6728870B2 (en) Image compression apparatus, image compression method, and image compression program
JP2020053725A (en) Predictive image correction device, image encoding device, image decoding device, and program
WO2017104010A1 (en) Moving-image coding apparatus and moving-image coding method
JP2013157950A (en) Encoding method, decoding method, encoder, decoder, encoding program and decoding program
JP7310919B2 (en) Filter generation method, filter generation device and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220615

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220615

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230509

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230707

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: 20230919

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231003

R150 Certificate of patent or registration of utility model

Ref document number: 7361838

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150