JP6767299B2 - Video coding device - Google Patents

Video coding device Download PDF

Info

Publication number
JP6767299B2
JP6767299B2 JP2017074619A JP2017074619A JP6767299B2 JP 6767299 B2 JP6767299 B2 JP 6767299B2 JP 2017074619 A JP2017074619 A JP 2017074619A JP 2017074619 A JP2017074619 A JP 2017074619A JP 6767299 B2 JP6767299 B2 JP 6767299B2
Authority
JP
Japan
Prior art keywords
frame
frames
picture
unit
reference group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017074619A
Other languages
Japanese (ja)
Other versions
JP2018182393A (en
Inventor
忍 工藤
忍 工藤
正樹 北原
正樹 北原
清水 淳
淳 清水
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2017074619A priority Critical patent/JP6767299B2/en
Publication of JP2018182393A publication Critical patent/JP2018182393A/en
Application granted granted Critical
Publication of JP6767299B2 publication Critical patent/JP6767299B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

本発明は、映像符号化装置に関する。 The present invention relates to a video coding device.

映像符号化の標準規格として、H.264/AVC(Advanced Video Coding)やH.265/HEVC(High Efficiency Video Coding)と呼ばれる映像符号化方式が策定されている。HEVCでは、イントラピクチャであるI(Intra)ピクチャと、インターピクチャであるP(Predictive)ピクチャと、B(Bi-directional predictive)ピクチャという複数のピクチャタイプが定義されている。各フレームには、いずれかのピクチャタイプが割り当てられる。 As a standard for video coding, H.I. 264 / AVC (Advanced Video Coding) and H.A. A video coding method called 265 / HEVC (High Efficiency Video Coding) has been established. In HEVC, a plurality of picture types are defined: an I (Intra) picture which is an intra picture, a P (Predictive) picture which is an inter picture, and a B (Bi-directional predictive) picture. Each frame is assigned one of the picture types.

Iピクチャは、通常、数フレームごとに定められるピクチャタイプであり、符号化対象フレーム内の符号化済み画素から予測するイントラ予測モードのみが適用されるピクチャタイプである。Pピクチャ及びBピクチャは、イントラ予測モードか、または、符号化済みフレームから予測するインター予測モードが選択的に適用されるピクチャタイプである。Pピクチャは、時系列の過去のフレームを参照フレームとするのに対して、Bピクチャは、過去と未来のフレームを参照フレームとする。 The I picture is usually a picture type defined every several frames, and is a picture type to which only the intra prediction mode of predicting from the encoded pixels in the coded target frame is applied. The P picture and the B picture are picture types to which the intra prediction mode or the inter prediction mode of predicting from the encoded frame is selectively applied. The P picture uses the past frame of the time series as the reference frame, while the B picture uses the past and future frames as the reference frame.

Iピクチャから次のIピクチャまでのフレーム群をGOP(Group Of Picture)といい、GOPごとに、Iピクチャの間隔や参照構造等の符号化構造を自由に設定することができる。代表的な符号化構造として、図17に示す低遅延符号化の符号化構造と、図18に示すランダムアクセス符号化の符号化構造があり、一般に、ランダムアクセス符号化の方が、符号化効率が高いと言われている。 The frame group from one picture to the next I picture is called GOP (Group Of Picture), and the coding structure such as the interval of I picture and the reference structure can be freely set for each GOP. Typical coding structures include a low-delay coding coding structure shown in FIG. 17 and a random access coding coding structure shown in FIG. 18, and in general, random access coding has higher coding efficiency. Is said to be expensive.

符号化構造を定める際、IピクチャまたはPピクチャ間隔を符号化する映像に応じて適応的に定めることで、符号化効率を向上させることができる。例えば、図19に示すような、映像の途中でシーンチェンジがある映像フレームのシーケンスに対して、固定されたIピクチャまたはPピクチャ間隔よりもシーンチェンジに合わせて適応的にIピクチャまたはPピクチャとなるフレームを選択していくことで符号化効率が向上する。 When defining the coding structure, the coding efficiency can be improved by adaptively defining the I-picture or P-picture interval according to the image to be encoded. For example, for a sequence of video frames with a scene change in the middle of the video as shown in FIG. 19, the I picture or P picture is adaptively adapted to the scene change rather than the fixed I picture or P picture interval. The coding efficiency is improved by selecting the following frames.

また、その他にも、図20や図21に示すような参照構造を階層的に設定する等、適応的に参照構造を変化させることで符号化効率の向上を図ることができる。例えば、図20に示す適応構造1と図21に示す適応構造2とを比較した場合、図21に示す適応構造2の方が、最大階層が2階層になっていることから、参照フレーム間の距離が小さくなっており、符号化効率の向上が期待される。 In addition, the coding efficiency can be improved by adaptively changing the reference structure, such as setting the reference structure as shown in FIGS. 20 and 21 hierarchically. For example, when the adaptive structure 1 shown in FIG. 20 and the adaptive structure 2 shown in FIG. 21 are compared, the adaptive structure 2 shown in FIG. 21 has two maximum layers, so that the maximum layers are two layers. The distance is small, and improvement in coding efficiency is expected.

更に高い符号化効率を有する符号化構造を選択する手法も提案されている(例えば、非特許文献1及び2参照)。以下に、提案されている代表的な2つの技術について説明する。非特許文献1に示す技術では、符号化構造は、以下の手順にしたがって定められる。原画像を、縦横それぞれ1/2サイズに縮小する(ステップSx1)。最初のフレームをIピクチャとして符号化し、基準フレームとする(ステップSx2)。N枚先までの各フレームに対して、Pピクチャとした場合のコストを算出し、算出したコストが最小となったフレームをPピクチャとする。ここで、コストとは、フレームの各符号化ブロックをイントラ予測モード及びインター予測モードにより符号化した際の小さい方の符号化コストの全ブロックの総和である(ステップSx3)。 A method for selecting a coded structure having a higher coding efficiency has also been proposed (see, for example, Non-Patent Documents 1 and 2). The two typical techniques proposed will be described below. In the technique shown in Non-Patent Document 1, the coded structure is defined according to the following procedure. The original image is reduced to 1/2 size in each of the vertical and horizontal directions (step Sx1). The first frame is encoded as an I picture and used as a reference frame (step Sx2). For each frame up to N sheets ahead, the cost when the P picture is used is calculated, and the frame with the smallest calculated cost is defined as the P picture. Here, the cost is the sum of all the blocks of the smaller coding cost when each coded block of the frame is coded in the intra prediction mode and the inter prediction mode (step Sx3).

基準フレームと、ステップSx3でPピクチャとして選択したフレームとの間に、それらを参照する中間フレームを定義する。基準フレームと中間フレームとの間に位置するフレームに対して、これらのフレームを基準フレームと中間フレームとを参照するBピクチャとした場合のコストを算出する。また、中間フレームとPピクチャとの間に位置するフレームに対して、これらのフレームを中間フレームとPピクチャとを参照するBピクチャとした場合のコストを算出する。算出したコストが最小となる組み合わせを最終的な符号化構造として選択する(ステップSx4)。ステップSx3でPピクチャとしたフレームを基準フレームとし、ステップSx3及びSx4を繰り返し実行して適応的に符号化構造を定めていく。 An intermediate frame that references them is defined between the reference frame and the frame selected as the P picture in step Sx3. For the frames located between the reference frame and the intermediate frame, the cost is calculated when these frames are B pictures that refer to the reference frame and the intermediate frame. Further, for the frame located between the intermediate frame and the P picture, the cost is calculated when these frames are B pictures that refer to the intermediate frame and the P picture. The combination that minimizes the calculated cost is selected as the final coded structure (step Sx4). The frame designated as the P picture in step Sx3 is used as the reference frame, and steps Sx3 and Sx4 are repeatedly executed to adaptively determine the coding structure.

非特許文献2に記載の技術では、符号化構造は、以下の手順にしたがって定められる。1枚目のフレームをIピクチャとして符号化する(ステップSy1)。Iピクチャと次のフレームとの間で動き探索を行い、各符号化ブロックの動きベクトルをS(k)(ただし、1≦k≦Nblk:Nblkは、フレーム内のブロック数)とする(ステップSy2)。 In the technique described in Non-Patent Document 2, the coded structure is defined according to the following procedure. The first frame is encoded as an I picture (step Sy1). A motion search is performed between the I picture and the next frame, and the motion vector of each coded block is set to S 1 (k) (where 1 ≦ k ≦ N blk : N blk is the number of blocks in the frame). (Step Sy2).

n枚目(n≧3)の各フレームに対して1枚目のフレームとの間で動き探索を行い、各符号化ブロックの動きベクトルをフレーム間距離で割ったものをS(k)とする(ステップSy3)。動きベクトル差の平均(E=Σ(S−S)/Nblk)を算出する(ステップSy4)。予め定められた閾値をthとし、E<thであれば、n枚目のフレームをBピクチャとし、そうでなければ、Pピクチャとする(ステップSy5)。 A motion search is performed for each frame of the nth frame (n ≧ 3) with the first frame, and the motion vector of each coded block divided by the inter-frame distance is defined as Sn (k). (Step Sy3). The average of the motion vector difference (E = Σ (S 1 -S n) / N blk) is calculated (step Sy4). A predetermined threshold value is set to th, and if E <th, the nth frame is set to B picture, and if not, it is set to P picture (step Sy5).

“VideoLAN, a project and a non-profit organization”、[online]、VideoLAN Organization、[平成29年3月17日検索]、インターネット(URL:https://www.videolan.org/developers/x265.html)“VideoLAN, a project and a non-profit organization”, [online], VideoLAN Organization, [Search on March 17, 2017], Internet (URL: https://www.videolan.org/developers/x265.html ) Adriana Dumitras and Barry G. Haskell,“I/P/B FRAME TYPE DECISION BY COLLINEARITY OF DISPLACEMENTS”, 2004 International Conference on Image Processing(ICIP), p2769-p2772Adriana Dumitras and Barry G. Haskell, “I / P / B FRAME TYPE DECISION BY COLLINEARITY OF DISPLACEMENTS”, 2004 International Conference on Image Processing (ICIP), p2769-p2772

しかしながら、上記の手順に示すように、非特許文献1に記載の技術では、縮小画像を用いているとはいえ、実際の符号化に近い処理を複数の組み合わせに対して行っている。また、計算結果が無駄になる組み合わせも生じており、結果的に、演算量が多い手法になってしまっているという問題がある。また、非特許文献1に記載の技術では、Bピクチャの階層として2階層を割り当てることを前提としており、この技術に対して、符号化効率の良いより深い階層構造を適用しようとすると、組み合わせ数が増大してしまうという問題がある。 However, as shown in the above procedure, in the technique described in Non-Patent Document 1, although a reduced image is used, processing close to actual coding is performed on a plurality of combinations. In addition, there are some combinations in which the calculation results are wasted, and as a result, there is a problem that the method has a large amount of calculation. Further, the technique described in Non-Patent Document 1 is premised on allocating two layers as the layer of the B picture, and when trying to apply a deeper hierarchical structure with good coding efficiency to this technique, the number of combinations There is a problem that the number increases.

非特許文献2に記載の技術においても、判定の際の計算結果が無駄になる組み合わせが存在するため、演算量が多いという問題がある。また、非特許文献2に記載の技術では、Bピクチャの階層として1階層分しか適用できないという問題がある。また、非特許文献2に記載の技術では、動きベクトルのみを判定に用いているため、複雑な映像に対して精度良く判定することができず、符号化効率が悪いという問題がある。 Even in the technique described in Non-Patent Document 2, there is a problem that the amount of calculation is large because there is a combination in which the calculation result at the time of determination is wasted. Further, the technique described in Non-Patent Document 2 has a problem that only one layer can be applied as the layer of the B picture. Further, in the technique described in Non-Patent Document 2, since only the motion vector is used for the determination, there is a problem that the determination cannot be made accurately for a complicated image and the coding efficiency is poor.

上記事情に鑑み、本発明は、符号化効率の高い符号化構造を低演算量で求めることができる技術の提供を目的としている。 In view of the above circumstances, an object of the present invention is to provide a technique capable of obtaining a coded structure having high coding efficiency with a low calculation amount.

本発明の一態様は、フレーム間予測符号化を行う映像符号化装置であって、入力映像情報から取得されるフレーム群から、予め定められる3枚以上の枚数の連続するフレームを含む参照グループを生成する参照グループ生成部と、前記参照グループ生成部が生成する前記参照グループの最初と最後の前記フレームと、前記最初と最後のフレームの間のいずれか1つの判定対象フレームとに基づいて、前記フレーム間の誤差に関する評価値を算出する評価値算出部と、前記評価値算出部が算出する前記評価値のうち前記判定対象フレームと前記最初のフレームとの間の前記評価値と、前記判定対象フレームと前記最後のフレーム間の評価値、若しくは前記判定対象フレームと前記最初のフレーム及び前記最後のフレーム間の評価値のうち小さいほうから求められる相対値に基づいて前記判定対象フレームと前記最初と最後のフレームとの参照関係を結合するか否かを判定する評価値判定部と、前記評価値判定部の判定結果に基づいて、前記フレーム群に含まれる前記フレームのピクチャタイプを選定するピクチャタイプ選定部と、を備え、前記評価値判定部は、前記相対値が第1の相対評価用閾値未満であった場合、結合すると判定する映像符号化装置である。 One aspect of the present invention is a video coding apparatus that performs inter-frame predictive coding, and from a frame group acquired from input video information, a reference group including a predetermined number of three or more consecutive frames is provided. Based on the reference group generation unit to be generated, the first and last frames of the reference group generated by the reference group generation unit, and any one of the determination target frames between the first and last frames. An evaluation value calculation unit that calculates an evaluation value related to an error between frames, an evaluation value between the determination target frame and the first frame among the evaluation values calculated by the evaluation value calculation unit, and the determination target. evaluation value between the frame last frame, or the said determination target frame and the first frame and the end of the previous SL determination target frame based on the relative value calculated from the smaller among the evaluation values between frames first A picture that selects the picture type of the frame included in the frame group based on the judgment result of the evaluation value determination unit that determines whether or not the reference relationship between the image and the last frame is combined. The evaluation value determination unit includes a type selection unit, and is a video coding device that determines to be combined when the relative value is less than the first relative evaluation threshold .

本発明の一態様は、上記の映像符号化装置であって、前記評価値算出部は、前記判定対象フレームと前記最初のフレームとの間の前記フレーム間の誤差に関する第1の片方向評価値と、前記判定対象フレームと前記最後のフレームとの間の前記フレーム間の誤差に関する第2の片方向評価値と、前記判定対象フレームと前記最初と最後のフレーム双方との間の前記フレーム間の誤差に関する双方向評価値とを算出し、前記評価値判定部は、前記第2の片方向評価値と前記双方向評価値のうち小さい方の評価値を選択し、選択した前記評価値の前記第1の片方向評価値に対する相対的な値の大きさとして前記相対値を算出し、算出した前記相対値と、予め定められる相対評価用閾値とに基づいて、前記判定対象フレームと前記最初と最後のフレームとの参照関係を結合するか否かを判定する。 One aspect of the present invention is the above-mentioned video coding apparatus, and the evaluation value calculation unit is a first one-way evaluation value regarding an error between the determination target frame and the first frame. And the second one-way evaluation value regarding the error between the frames between the determination target frame and the last frame, and between the determination target frame and the first and last frames. The bidirectional evaluation value related to the error is calculated, and the evaluation value determination unit selects the smaller evaluation value of the second one-way evaluation value and the bidirectional evaluation value, and the selected evaluation value is said to be the same. The relative value is calculated as the magnitude of the relative value with respect to the first one-way evaluation value, and the determination target frame and the first one are based on the calculated relative value and a predetermined relative evaluation threshold value. Determines whether to combine the reference relationship with the last frame.

本発明の一態様は、上記の映像符号化装置であって、前記予め定められる相対評価用閾値は、さらに前記第1の相対評価用閾値よりも値の大きい第2の相対評価用閾値を含んでおり、前記評価値判定部は、前記相対値が、前記第1の相対評価用閾値以上で前記第2の相対評価用閾値以下の値である場合、前記双方向評価値と、予め定められる絶対評価用閾値とに基づいて、前記判定対象フレームと前記最初と最後のフレームとの参照関係を結合するか否かを判定する。 One aspect of the present invention is the above-mentioned video coding apparatus, wherein the predetermined relative evaluation threshold value further includes a second relative evaluation threshold value having a value larger than that of the first relative evaluation threshold value. and de, the evaluation value determination unit, before SL relative value, when the a first value below the second relative evaluation threshold value relative evaluation threshold or more, and the bidirectional evaluation value, predetermined Based on the absolute evaluation threshold, it is determined whether or not to combine the reference relationship between the determination target frame and the first and last frames.

本発明の一態様は、上記の映像符号化装置であって、前記参照グループ生成部は、前記評価値判定部により結合すると判定された前記参照グループの最初の前記フレーム、または最後の前記フレームが前記判定対象フレームとなるように、当該参照グループを含み前記予め定められる3枚以上の枚数よりも多い枚数の連続するフレームを含む新たな前記参照グループを生成し、前記評価値算出部は、前記新たな参照グループの最初と最後の前記フレームと、前記判定対象フレームとに基づいて、前記フレーム間の誤差に関する前記評価値を算出し、前記評価値判定部は、前記評価値算出部が算出する前記評価値のうち前記新たな参照グループの前記判定対象フレームと前記最初のフレームとの間の前記評価値と、前記新たな参照グループの判定対象フレームと前記最後のフレーム間の評価値、若しくは前記新たな参照グループの判定対象フレームと前記最初のフレーム及び前記最後のフレーム間の評価値のうち小さいほうから求められる相対値に基づいて前新たな参照グループの判定対象フレームと前記最初と最後のフレームとの参照関係を結合するか否かを判定し、前記相対値が第1の相対評価用閾値未満であった場合、結合すると判定する。 One aspect of the present invention is the video coding apparatus, wherein the reference group generation unit is the first frame or the last frame of the reference group determined to be combined by the evaluation value determination unit. A new reference group including the reference group and a number of consecutive frames larger than the predetermined three or more frames is generated so as to be the determination target frame, and the evaluation value calculation unit is described. Based on the first and last frames of the new reference group and the determination target frame, the evaluation value regarding the error between the frames is calculated, and the evaluation value determination unit is calculated by the evaluation value calculation unit. Among the evaluation values, the evaluation value between the determination target frame and the first frame of the new reference group, the evaluation value between the determination target frame of the new reference group and the last frame, or the evaluation value. new reference group determination target frame and the first frame and the determination target frame and the first and last of the reference group before SL new based on the relative value calculated from the smaller among the evaluation values between the last frame determines whether to combine the reference relationship with the frame, if the relative value is less than the first relative evaluation threshold, it determines that binds.

本発明の一態様は、上記の映像符号化装置であって、前記参照グループ生成部は、前記参照グループに隣接する他の参照グループを生成する際、当該参照グループの最後の前記フレームが、前記隣接する他の参照グループの最初の前記フレームとなるように重複させて前記予め定められる3枚以上の枚数の連続するフレームを含む前記参照グループを生成しており、隣接する2つの前記参照グループの双方において前記評価値判定部が前記判定対象フレームと前記最初と最後のフレームとの参照関係を結合すると判定する場合、当該隣接する2つの前記参照グループを結合して前記新たな参照グループを生成し、重複する前記フレームを前記判定対象フレームとする。 One aspect of the present invention is the above-mentioned video coding apparatus, and when the reference group generation unit generates another reference group adjacent to the reference group, the last frame of the reference group is the said. The reference group including the predetermined three or more consecutive frames is generated by overlapping so as to be the first frame of the other adjacent reference groups, and the two adjacent reference groups When the evaluation value determination unit determines that the reference relationship between the determination target frame and the first and last frames is combined in both cases, the two adjacent reference groups are combined to generate the new reference group. , The overlapping frames are set as the determination target frames.

本発明の一態様は、上記の映像符号化装置であって、前記参照グループ生成部は、
予め定めらる構築する符号化構造の階層数の値にしたがって、前記新たな参照グループを生成することを繰り返す。
One aspect of the present invention is the above-mentioned video coding apparatus, and the reference group generation unit is
According to the hierarchy number of values of the coding structure to build Ru been predetermined et al, repeated to generate the new reference group.

本発明の一態様は、上記の映像符号化装置であって、前記ピクチャタイプ選定部は、前記入力映像情報から前記フレーム群を取得し、取得した前記フレーム群の最初のフレームをIピクチャとして選定するIピクチャ選定部を備え、前記ピクチャタイプ選定部は、前記評価値判定部が、前記判定対象フレームと前記最初と最後のフレームとの参照関係を結合すると判定する場合、前記判定対象フレームを前記最初と最後のフレームを参照フレームとするBピクチャとして選定し、前記Iピクチャ、または前記Bピクチャとして選定されていない前記フレームをPピクチャとして選定し、前記フレーム群の表示順において、選定した前記フレームに最も近い過去の前記Pピクチャの前記フレームを、選定した前記フレームの前記参照フレームとし、選定した前記フレームに最も近い過去の前記Pピクチャの前記フレームがない場合、前記Iピクチャの前記フレームを、選定した前記フレームの前記参照フレームとする。 One aspect of the present invention is the above-mentioned video coding apparatus, in which the picture type selection unit acquires the frame group from the input video information and selects the first frame of the acquired frame group as an I picture. When the evaluation value determination unit determines that the reference relationship between the determination target frame and the first and last frames is combined, the picture type selection unit determines the determination target frame. The first and last frames are selected as B pictures with reference frames as reference frames, the I picture or the frame not selected as the B picture is selected as the P picture, and the selected frames are selected in the display order of the frame group. The frame of the past P-picture closest to is used as the reference frame of the selected frame, and when there is no frame of the past P-picture closest to the selected frame, the frame of the I-picture is used. Let it be the reference frame of the selected frame.

本発明の一態様は、上記の映像符号化装置であって、前記予め定められる3枚以上の枚数は、3枚である。 One aspect of the present invention is the above-mentioned video coding apparatus, and the number of the predetermined three or more sheets is three.

本発明により、符号化効率の高い符号化構造を低演算量で求めることが可能となる。 INDUSTRIAL APPLICABILITY According to the present invention, it is possible to obtain a coding structure having high coding efficiency with a low amount of calculation.

本発明の第1の実施形態における映像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image coding apparatus in 1st Embodiment of this invention. 同実施形態の符号化構造構築部の構成を示すブロック図である。It is a block diagram which shows the structure of the coded structure construction part of the same embodiment. 同実施形態の符号化構造構築処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the coded structure construction process of the same embodiment. 同実施形態の結合判定処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the combination determination processing of the same embodiment. 同実施形態の符号化構造構築処理の具体例を示す図(その1)である。It is a figure (the 1) which shows the specific example of the coded structure construction process of the same embodiment. 同実施形態の符号化構造構築処理の具体例を示す図(その2)である。It is a figure (the 2) which shows the specific example of the coded structure construction process of the same embodiment. 同実施形態の符号化構造構築処理の具体例を示す図(その3)である。It is a figure (the 3) which shows the specific example of the coded structure construction process of the same embodiment. 同実施形態の符号化構造構築処理の具体例を示す図(その4)である。It is a figure (the 4) which shows the specific example of the coded structure construction process of the same embodiment. 同実施形態の結合判定処理の具体例を示す図である。It is a figure which shows the specific example of the combination determination processing of the same embodiment. 同実施形態の結合判定処理の具体例において算出した評価値を示す図である。It is a figure which shows the evaluation value calculated in the specific example of the combination determination processing of the same embodiment. 本発明の第2の実施形態の符号化構造構築部の構成を示すブロック図である。It is a block diagram which shows the structure of the coded structure construction part of the 2nd Embodiment of this invention. 同実施形態の符号化構造構築処理の流れを示すフローチャート(その1)である。It is a flowchart (the 1) which shows the flow of the coded structure construction process of the same embodiment. 同実施形態の符号化構造構築処理の流れを示すフローチャート(その2)である。It is a flowchart (No. 2) which shows the flow of the coded structure construction process of the same embodiment. 同実施形態の符号化構造構築処理の具体例を示す図(その1)である。It is a figure (the 1) which shows the specific example of the coded structure construction process of the same embodiment. 同実施形態の符号化構造構築処理の具体例を示す図(その2)である。It is a figure (the 2) which shows the specific example of the coded structure construction process of the same embodiment. 同実施形態の符号化構造構築処理の具体例を示す図(その3)である。It is a figure (the 3) which shows the specific example of the coded structure construction process of the same embodiment. インター予測符号化における低遅延符号化の符号化構造を示す図である。It is a figure which shows the coding structure of low delay coding in inter prediction coding. インター予測符号化におけるランダムアクセス符号化の符号化構造を示す図である。It is a figure which shows the coding structure of random access coding in inter prediction coding. インター予測符号化における固定構造と適応構造の違いを示す図である。It is a figure which shows the difference between a fixed structure and an adaptive structure in inter-predictive coding. インター予測符号化における適応構造を説明するための図(その1)である。It is a figure (the 1) for demonstrating the adaptive structure in inter-predictive coding. インター予測符号化における適応構造を説明するための図(その2)である。It is a figure (the 2) for demonstrating the adaptive structure in inter-predictive coding.

(第1の実施形態)
以下、本発明の実施形態について図面を参照して説明する。図1は、本発明の第1の実施形態における映像符号化装置1の構成を示すブロック図である。映像符号化装置1は、符号化構造構築部10、減算器11、直交変換・量子化部12、可変長符号化部13、逆量子化・逆直交変換部14、加算器15、イントラ予測部16、ループフィルタ部17、復号ピクチャ記憶部18、インター予測部19、及びイントラ・インター切替スイッチ部20を備える。
(First Embodiment)
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a video coding device 1 according to the first embodiment of the present invention. The video coding device 1 includes a coding structure construction unit 10, a subtractor 11, an orthogonal conversion / quantization unit 12, a variable length coding unit 13, an inverse quantization / inverse orthogonal conversion unit 14, an adder 15, and an intra prediction unit. A loop filter unit 17, a decoding picture storage unit 18, an inter-prediction unit 19, and an intra-inter changeover switch unit 20 are provided.

符号化構造構築部10は、外部から入力映像情報を取り込み、取り込んだ入力映像情報から予め定められるGOPのサイズにしたがう枚数のフレームを選択してフレーム群を生成する。また、符号化構造構築部10は、生成したフレーム群の各フレームのピクチャタイプ、参照構造などを選定して符号化構造を構築する。また、符号化構造構築部10は、構築した符号化構造が示す符号化順序にしたがってCU(Coding Unit)ブロック単位で符号化対象フレームを出力する。 The coded structure construction unit 10 takes in input video information from the outside, selects a number of frames according to a predetermined GOP size from the captured input video information, and generates a frame group. Further, the coded structure construction unit 10 constructs a coded structure by selecting a picture type, a reference structure, and the like of each frame of the generated frame group. Further, the coded structure construction unit 10 outputs a coded target frame in units of CU (Coding Unit) blocks according to the coding order indicated by the constructed coded structure.

減算器11は、符号化構造構築部10が出力する符号化対象フレームの画像情報と、イントラ・インター切替スイッチ部20を介してイントラ予測部16、またはインター予測部19が出力する予測画像情報との差を算出する。また、減算器11は、算出した差に基づく差分画像情報を直交変換・量子化部12に出力する。 The subtractor 11 includes image information of the coded target frame output by the coding structure construction unit 10 and prediction image information output by the intra prediction unit 16 or the inter prediction unit 19 via the intra / inter changeover switch unit 20. Calculate the difference between. Further, the subtractor 11 outputs the difference image information based on the calculated difference to the orthogonal conversion / quantization unit 12.

直交変換・量子化部12は、減算器11が出力する差分画像情報に対して、直交変換と量子化を行い、可変長符号化部13と逆量子化・逆直交変換部14に出力する。可変長符号化部13は、直交変換・量子化部12が出力する量子化係数を可変長符号化して符号化データを生成し、生成した符号化データを外部に出力する。 The orthogonal conversion / quantization unit 12 performs orthogonal conversion and quantization on the difference image information output by the subtractor 11, and outputs the difference image information to the variable length coding unit 13 and the inverse quantization / inverse orthogonal conversion unit 14. The variable-length coding unit 13 generates coded data by variable-length coding the quantization coefficient output by the orthogonal conversion / quantization unit 12, and outputs the generated coded data to the outside.

逆量子化・逆直交変換部14は、直交変換・量子化部12が出力する量子化係数に対して、逆量子化と逆直交変換を行って差分画像情報を復号して加算器15に出力する。加算器15は、逆量子化・逆直交変換部14が出力する復号差分画像情報と、イントラ・インター切替スイッチ部20を介してイントラ予測部16、またはインター予測部19が出力する予測画像情報との和を算出する。また、加算器15は、算出した和に基づく復号画像情報をイントラ予測部16とループフィルタ部17に出力する。 The inverse quantization / inverse orthogonal conversion unit 14 performs inverse quantization and inverse orthogonal conversion on the quantization coefficient output by the orthogonal conversion / quantization unit 12, decodes the difference image information, and outputs the difference image information to the adder 15. To do. The adder 15 includes the decoding difference image information output by the inverse quantization / inverse orthogonal conversion unit 14 and the prediction image information output by the intra prediction unit 16 or the inter prediction unit 19 via the intra / inter changeover switch unit 20. Calculate the sum of. Further, the adder 15 outputs the decoded image information based on the calculated sum to the intra prediction unit 16 and the loop filter unit 17.

イントラ予測部16は、加算器15が出力する復号画像情報を参照フレームとして、符号化対象フレームに含まれる符号化対象ブロックのイントラ予測画像情報を生成する。 The intra prediction unit 16 uses the decoded image information output by the adder 15 as a reference frame to generate the intra prediction image information of the coded target block included in the coded target frame.

ループフィルタ部17は、加算器15が出力する復号画像情報にループフィルタを適用し、ループフィルタを適用した復号画像情報を復号ピクチャ記憶部18に書き込んで記憶させる。インター予測部19は、復号ピクチャ記憶部18に記憶されている復号画像情報を参照フレームとして、符号化構造構築部10が出力する符号化対象フレームに含まれる符号化対象ブロックのインター予測画像情報を生成する。 The loop filter unit 17 applies a loop filter to the decoded image information output by the adder 15, and writes and stores the decoded image information to which the loop filter is applied in the decoded picture storage unit 18. The inter-prediction unit 19 uses the decoded image information stored in the decoded picture storage unit 18 as a reference frame, and uses the inter-prediction image information of the coding target block included in the coding target frame output by the coding structure construction unit 10 as a reference frame. Generate.

イントラ・インター切替スイッチ部20は、符号化対象ブロックの予測モードに応じて、イントラ予測部16とインター予測部19とを切り替えて、イントラ予測部16が出力するイントラ予測画像情報、またはインター予測部19が出力するインター予測画像情報を減算器11と加算器15に出力する。 The intra-inter changeover switch unit 20 switches between the intra-prediction unit 16 and the inter-prediction unit 19 according to the prediction mode of the coded block, and the intra-prediction image information or the inter-prediction unit output by the intra-prediction unit 16. The inter-prediction image information output by 19 is output to the subtractor 11 and the adder 15.

上記の構成により、映像符号化装置1は、外部から取り込んだ入力映像情報からフレーム群を生成し、生成したフレーム群の符号化対象フレームごとにラスタースキャンしてCUブロックを生成する。映像符号化装置1は、生成した各CUブロックを符号化対象ブロックとしてラスタースキャン順に繰り返し符号化を行い、符号化対象ブロックごとの符号化データを出力する。映像符号化装置1は、この処理を入力映像情報から生成する全てのフレーム群に含まれるフレームに対して繰り返し行うことにより、符号化対象入力映像情報を符号化する。 With the above configuration, the video coding apparatus 1 generates a frame group from the input video information captured from the outside, and raster scans each coded frame of the generated frame group to generate a CU block. The video coding apparatus 1 repeatedly encodes each generated CU block as a code target block in the order of raster scan, and outputs coded data for each code target block. The video coding apparatus 1 encodes the input video information to be encoded by repeatedly performing this process for the frames included in all the frame groups generated from the input video information.

符号化の過程において、インター予測部19でPピクチャのフレームの符号化を行うためには、Pピクチャのフレームに対する参照フレームが予め復号ピクチャ記憶部18に記憶されている必要がある。また、Bピクチャのフレームの符号化を行うためには、Bピクチャのフレームに対する2つの参照フレームが予め復号ピクチャ記憶部18に記憶されている必要がある。符号化構造構築部10は、これらの符号化の順序の要求を満たすような符号化構造の構築を行う。 In the process of coding, in order for the inter-prediction unit 19 to encode the frame of the P picture, the reference frame for the frame of the P picture needs to be stored in the decoded picture storage unit 18 in advance. Further, in order to encode the frame of the B picture, it is necessary that two reference frames for the frame of the B picture are stored in the decoded picture storage unit 18 in advance. The coded structure construction unit 10 constructs a coded structure that satisfies the requirements of these coding orders.

図2は、符号化構造構築部10の構成を示すブロック図である。符号化構造構築部10は、符号化対象フレーム選択部101、Iピクチャ選定部102、参照グループ生成部103、結合判定部104、ピクチャタイプ選定部105、ピクチャタイプ記憶部106、及びブロック出力部107を備える。 FIG. 2 is a block diagram showing the configuration of the coded structure construction unit 10. The coded structure construction unit 10 includes a coded frame selection unit 101, an I picture selection unit 102, a reference group generation unit 103, a combination determination unit 104, a picture type selection unit 105, a picture type storage unit 106, and a block output unit 107. To be equipped.

符号化対象フレーム選択部101は、入力映像情報から予め定められるGOPのサイズにしたがう枚数のフレームを選択してフレーム群を生成してIピクチャ選定部102とブロック出力部107に出力する。Iピクチャ選定部102は、フレーム群の最初のフレームをIピクチャとして選定し、最初のフレームを起点フレームとしてフレーム群を参照グループ生成部103に出力する。 The coded target frame selection unit 101 selects a number of frames according to a predetermined GOP size from the input video information, generates a frame group, and outputs the frame group to the I picture selection unit 102 and the block output unit 107. The I-picture selection unit 102 selects the first frame of the frame group as the I-picture, and outputs the frame group to the reference group generation unit 103 with the first frame as the starting frame.

参照グループ生成部103は、フレーム群の先頭のフレームを起点として所定の枚数(例えば、3枚)の連続するフレームを選択し、選択した所定の枚数の連続するフレームの組み合わせを最初の参照グループとして生成する。また、参照グループ生成部103は、その後に起点となるフレームから所定の枚数の連続するフレームを選択し、選択した所定の枚数の連続するフレームの組み合わせを参照グループとして生成する。また、参照グループ生成部103は、隣接する2つの参照グループが共に結合判定部104によって結合すると判定されている場合、隣接する2つの参照グループを結合して新たな参照グループを生成する。 The reference group generation unit 103 selects a predetermined number of consecutive frames (for example, three) starting from the first frame of the frame group, and sets a combination of the selected predetermined number of consecutive frames as the first reference group. Generate. Further, the reference group generation unit 103 selects a predetermined number of consecutive frames from the frames that serve as the starting point, and generates a combination of the selected predetermined number of consecutive frames as a reference group. Further, the reference group generation unit 103 generates a new reference group by combining the two adjacent reference groups when it is determined by the join determination unit 104 that the two adjacent reference groups are both combined.

また、参照グループ生成部103は、生成した参照グループの情報、すなわち参照グループに含まれるフレームの画像情報、及び参照グループに含まれるフレームのフレームをフレーム群において特定するフレーム番号等の情報を結合判定部104とピクチャタイプ選定部105に出力する。 Further, the reference group generation unit 103 determines the combination of the generated reference group information, that is, the image information of the frame included in the reference group, and the frame number for specifying the frame of the frame included in the reference group in the frame group. Output to unit 104 and picture type selection unit 105.

結合判定部104は、参照グループ生成部103が生成して出力する参照グループに含まれるフレームを結合するか否かを判定する。ここで、参照グループに含まれるフレームを結合するとは、最初と最後のフレームの間のフレームである判定対象フレームを、最初と最後のフレームを参照フレームとするBピクチャとすることである。結合判定部104は、評価値算出部110、評価値判定部111、及び判定結果記憶部112を備える。 The combination determination unit 104 determines whether or not to combine the frames included in the reference group generated and output by the reference group generation unit 103. Here, combining the frames included in the reference group means that the determination target frame, which is a frame between the first and last frames, is a B picture in which the first and last frames are reference frames. The combination determination unit 104 includes an evaluation value calculation unit 110, an evaluation value determination unit 111, and a determination result storage unit 112.

評価値算出部110は、参照グループ生成部103が生成した参照グループの評価値を算出する。ここで、評価値は、以下のようにして算出される3つのインターコストの値である。なお、インターコストは、例えば、フレーム間において動き探索を行った場合の誤差に関する評価値であり、例えば、絶対誤差和の最小値等が適用され、この評価値は、RD(Rate-Distortion)コストのような実際に符号化を行わないと得られない符号化コストとは異なる値である。ここで、絶対誤差和の最小値とは、動きベクトルを複数検出して、動きベクトルごとの絶対誤差和を算出して得られた値の中で最も小さい値を表す。 The evaluation value calculation unit 110 calculates the evaluation value of the reference group generated by the reference group generation unit 103. Here, the evaluation value is the value of the three intercosts calculated as follows. The intercost is, for example, an evaluation value related to an error when motion search is performed between frames. For example, the minimum value of the absolute error sum is applied, and this evaluation value is the RD (Rate-Distortion) cost. It is a value different from the coding cost that cannot be obtained without actually performing coding such as. Here, the minimum value of the absolute error sum represents the smallest value among the values obtained by detecting a plurality of motion vectors and calculating the absolute error sum for each motion vector.

まず、最初のフレームと、最初と最後のフレームの間の判定対象フレームと、最後のフレームをそれぞれ、Sフレーム、Mフレーム、Eフレームとする。参照グループが、所定の枚数(例えば、3枚)の連続するフレームを含む場合、判定対象フレームは、中間のフレームとなり、後述するように2つの隣接する参照グループが結合される場合、判定対象フレームは、表示順で1つ前の参照グループの最後のフレームとなる。 First, the first frame, the determination target frame between the first and last frames, and the last frame are S frame, M frame, and E frame, respectively. When the reference group includes a predetermined number of consecutive frames (for example, 3 frames), the determination target frame becomes an intermediate frame, and when two adjacent reference groups are combined as described later, the determination target frame Is the last frame of the previous reference group in the display order.

Mフレームに対して予め定められる所定のブロックサイズ単位でSフレームを参照フレームとした場合の片方向インターコストの全ブロックの総和(以下、L0コストという)を算出する。次に、Mフレームに対して予め定められる所定のブロックサイズ単位でEフレームを参照フレームとした場合の片方向インターコストの全ブロックの総和(以下、L1コストという)を算出する。更に、Mフレームに対して予め定められる所定のブロックサイズ単位でSフレームとEフレームを参照フレームとした場合の双方向インターコストの全ブロックの総和(以下、Biコストという)を算出する。 The total of all the blocks of the one-way intercost (hereinafter referred to as L0 cost) when the S frame is used as the reference frame for the M frame in a predetermined block size unit is calculated. Next, the total of all blocks of the one-way intercost (hereinafter referred to as L1 cost) when the E frame is used as the reference frame in a predetermined block size unit predetermined for the M frame is calculated. Further, the total of all blocks of the bidirectional intercost (hereinafter referred to as Bi cost) when the S frame and the E frame are used as reference frames in a predetermined block size unit predetermined for the M frame is calculated.

評価値判定部111は、評価値算出部110が算出したL0コスト、L1コスト、Biコストに基づいて、参照グループのフレームを結合すべきか否か、すなわちMフレームを、SフレームとEフレームを参照フレームとするBピクチャとするか否かを判定する結合判定処理を行う。評価値判定部111は、判定結果を参照グループを示す情報に対応付けて判定結果記憶部112に書き込んで記憶させ、また、判定結果をピクチャタイプ選定部105に出力する。判定結果記憶部112は、参照グループごとに評価値判定部111が判定した判定結果を記憶する。 The evaluation value determination unit 111 refers to whether or not the frames of the reference group should be combined based on the L0 cost, L1 cost, and Bi cost calculated by the evaluation value calculation unit 110, that is, the M frame, the S frame, and the E frame. Performs a combination determination process for determining whether or not to use a B picture as a frame. The evaluation value determination unit 111 writes and stores the determination result in the determination result storage unit 112 in association with the information indicating the reference group, and outputs the determination result to the picture type selection unit 105. The determination result storage unit 112 stores the determination result determined by the evaluation value determination unit 111 for each reference group.

ピクチャタイプ選定部105は、結合判定部104が出力する判定結果にしたがって、参照グループ生成部103が生成した参照グループに含まれるフレームのピクチャタイプを選定する。また、ピクチャタイプ選定部105は、参照グループ生成部103が、連続する3枚のフレームを選択できないと判定した場合、残りのフレームをPピクチャとして選定する。また、ピクチャタイプ選定部105は、全てのフレームについて、ピクチャタイプを選定した後、Pピクチャとして選定したフレームに対して、当該フレームに表示順で最も近い過去のPピクチャとして選定されたフレームを当該フレームの参照フレームとして選定する。 The picture type selection unit 105 selects the picture type of the frame included in the reference group generated by the reference group generation unit 103 according to the determination result output by the combination determination unit 104. Further, when the reference group generation unit 103 determines that three consecutive frames cannot be selected, the picture type selection unit 105 selects the remaining frames as P pictures. Further, the picture type selection unit 105 selects the picture type for all the frames, and then selects the frame selected as the past P picture closest to the frame in the display order with respect to the frame selected as the P picture. Select as the reference frame for the frame.

ここで、表示順で最も近い過去のPピクチャとは、Iピクチャとなる最初のフレームから表示順に連続番号を付与していった場合、参照フレームを割り当てるフレームよりも若い番号で最も近いPピクチャのことである。また、表示順で最も近い過去のPピクチャがない場合、ピクチャタイプ選定部105は、Iピクチャを参照フレームとして選定する。 Here, the past P picture closest in the display order is the closest P picture with a number younger than the frame to which the reference frame is assigned when consecutive numbers are assigned in the display order from the first frame that becomes the I picture. That is. If there is no past P picture closest to the display order, the picture type selection unit 105 selects the I picture as a reference frame.

ピクチャタイプ記憶部106は、Iピクチャ選定部102がIピクチャとして選定したフレームを示す情報に対応付けてIピクチャのピクチャタイプを示す情報を記憶する。また、ピクチャタイプ記憶部106は、ピクチャタイプ選定部105が選定したBピクチャまたはPピクチャのピクチャタイプを示す情報を、参照フレームを示す情報とともに、各フレームを示す情報に対応付けて記憶する。 The picture type storage unit 106 stores information indicating the picture type of the I picture in association with the information indicating the frame selected as the I picture by the I picture selection unit 102. Further, the picture type storage unit 106 stores information indicating the picture type of the B picture or P picture selected by the picture type selection unit 105 in association with the information indicating each frame together with the information indicating the reference frame.

ブロック出力部107は、符号化対象フレーム選択部101が出力するフレーム群を受けて、一時的に内部の記憶領域に書き込んで記憶する。また、ブロック出力部107は、ピクチャタイプの選定が完了し符号化構造が定められると、定められた符号化構造に基づく順番で内部の記憶領域からフレームを読み出し、読み出したフレームの各々をラスタースキャンの順にCUブロックに分解して符号化対象ブロックとして出力する。 The block output unit 107 receives the frame group output by the coded target frame selection unit 101, temporarily writes it in the internal storage area, and stores it. When the picture type selection is completed and the coded structure is determined, the block output unit 107 reads frames from the internal storage area in the order based on the defined coded structure, and raster scans each of the read frames. It is decomposed into CU blocks in the order of, and output as a coded block.

(第1の実施形態の符号化構造構築処理)
次に、第1の実施形態の符号化構造構築部10による処理について説明する。図3は、符号化構造構築部10による符号化構造構築処理の流れを示すフローチャートである。また、図4は、符号化構造構築処理において呼び出される結合判定部104による結合判定処理のサブルーチンの流れを示すフローチャートである。
(Coded structure construction process of the first embodiment)
Next, the processing by the coded structure construction unit 10 of the first embodiment will be described. FIG. 3 is a flowchart showing the flow of the coded structure construction process by the coded structure construction unit 10. Further, FIG. 4 is a flowchart showing the flow of the subroutine of the join determination process by the join determination unit 104 called in the coded structure construction process.

符号化対象フレーム選択部101は、入力映像情報から予め定められるGOPのサイズにしたがう枚数のフレームを選択してフレーム群を生成し、生成したフレーム群をIピクチャ選定部102とブロック出力部107に出力する。Iピクチャ選定部102は、フレーム群の最初のフレームのピクチャタイプをIピクチャとして選定し、当該フレームをIピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。また、Iピクチャ選定部102は、最初のフレームを起点フレームとし、フレーム群を参照グループ生成部103に出力する(ステップS101)。 The coded target frame selection unit 101 selects a number of frames according to a predetermined GOP size from the input video information to generate a frame group, and transmits the generated frame group to the I picture selection unit 102 and the block output unit 107. Output. The I-picture selection unit 102 selects the picture type of the first frame of the frame group as the I-picture, and writes and stores information indicating that the frame is selected as the I-picture in the picture-type storage unit 106. Further, the I-picture selection unit 102 sets the first frame as the starting frame and outputs the frame group to the reference group generation unit 103 (step S101).

参照グループ生成部103は、起点フレームを起点として、フレーム群から連続する3枚のフレームを選択することができるか否かを判定する(ステップS102)。参照グループ生成部103は、連続する3枚のフレームを選択することができると判定した場合(ステップS102−YES)、参照グループ生成部103は、連続する3枚のフレームを表示順にA,B,Cフレームとして含む参照グループを生成する。なお、当該参照グループにおいて判定対象フレームは、Bフレームとなる。 The reference group generation unit 103 determines whether or not three consecutive frames can be selected from the frame group starting from the starting frame (step S102). When the reference group generation unit 103 determines that three consecutive frames can be selected (step S102-YES), the reference group generation unit 103 displays the three consecutive frames A, B, in the display order. Generate a reference group to be included as a C frame. The determination target frame in the reference group is the B frame.

参照グループ生成部103は、生成した参照グループを結合判定部104とピクチャタイプ選定部105に出力する(ステップS105)。結合判定部104は、参照グループ生成部103が出力する参照グループに含まれるA,B,CフレームをS,M,Eフレームとして結合判定処理を行う(ステップS106)。 The reference group generation unit 103 outputs the generated reference group to the combination determination unit 104 and the picture type selection unit 105 (step S105). The join determination unit 104 performs the join determination process using the A, B, and C frames included in the reference group output by the reference group generation unit 103 as S, M, and E frames (step S106).

(結合判定部による結合判定処理)
図4に示す結合判定処理のサブルーチンにおいて、評価値算出部110は、Sフレーム、Mフレーム、Eフレームに基づいて、L0コスト、L1コスト、Biコストの3つの評価値を算出する(ステップS201)。
(Join judgment processing by the join judgment unit)
In the subroutine of the combination determination process shown in FIG. 4, the evaluation value calculation unit 110 calculates three evaluation values of L0 cost, L1 cost, and Bi cost based on the S frame, the M frame, and the E frame (step S201). ..

評価値判定部111は、BiコストとL1コストのうち値が小さい方を選択し(ステップS202)、選択した値をL0で除算して相対値を算出する(ステップS203)。なお、BiコストとL1コストの値が同じ場合、いずれを選択してもよいため、いずれか一方を選択する。ステップS202とS203の処理を数式で示すと以下の式(1)となる。 The evaluation value determination unit 111 selects the smaller value of the Bi cost and the L1 cost (step S202), divides the selected value by L0, and calculates a relative value (step S203). If the values of Bi cost and L1 cost are the same, either one may be selected, so one of them is selected. When the processing of steps S202 and S203 is expressed by a mathematical formula, it becomes the following equation (1).

相対値=min(Biコスト,L1コスト)/L0コスト・・・(1) Relative value = min (Bi cost, L1 cost) / L0 cost ... (1)

評価値判定部111は、算出した相対値の大きさを予め定められる相対評価用閾値Th_min及びTh_maxに基づいて判定する(ステップS204)。評価値判定部111は、算出した相対値が、Th_minの値未満であると判定した場合(ステップS204:<Th_min)、参照グループに含まれるフレームを結合することを示す「True」を出力する(ステップS205)。一方、評価値判定部111は、算出した相対値が、Th_maxの値を超過していると判定した場合(ステップS204:>Th_max)、参照グループに含まれるフレームを結合しないことを示す「False」を出力する(ステップS206)。 The evaluation value determination unit 111 determines the magnitude of the calculated relative value based on the predetermined relative evaluation thresholds Th_min and Th_max (step S204). When the evaluation value determination unit 111 determines that the calculated relative value is less than the value of Th_min (step S204: <Th_min), the evaluation value determination unit 111 outputs "True" indicating that the frames included in the reference group are combined (Step S204: <Thh_min). Step S205). On the other hand, when the evaluation value determination unit 111 determines that the calculated relative value exceeds the value of Th_max (step S204:> Th_max), "False" indicating that the frames included in the reference group are not combined. Is output (step S206).

一方、評価値判定部111は、算出した相対値が、Th_minの値以上で、かつThmaxの値以下であると判定した場合(ステップS204:≧Th_minかつ≦Th_max)、Biコストの値の大きさを予め定められる絶対評価用閾値Th_absに基づいて判定する(ステップS207)。評価値判定部111は、Biコストの値が、Th_absの値未満であると判定した場合(ステップS207:<Th_abs)、参照グループに含まれるフレームを結合することを示す「True」を出力する(ステップS208)。一方、評価値判定部111は、Biコストの値が、Th_absの値以上と判定した場合(ステップS207:≧Th_abs)、参照グループに含まれるフレームを結合しないことを示す「False」を出力する(ステップS206)。 On the other hand, when the evaluation value determination unit 111 determines that the calculated relative value is equal to or greater than the value of Th_min and less than or equal to the value of Thmax (step S204: ≧ Th_min and ≦ Th_max), the magnitude of the Bi cost value. Is determined based on a predetermined absolute evaluation threshold Th_abs (step S207). When the evaluation value determination unit 111 determines that the Bi cost value is less than the value of Th_abs (step S207: <Th_abs), the evaluation value determination unit 111 outputs "True" indicating that the frames included in the reference group are combined (True). Step S208). On the other hand, when the evaluation value determination unit 111 determines that the Bi cost value is equal to or greater than the Th_abs value (step S207: ≧ Th_abs), the evaluation value determination unit 111 outputs “False” indicating that the frames included in the reference group are not combined (False). Step S206).

評価値判定部111は、ステップS205,S206,S208の処理において、参照グループを示す情報に対応付けて判定結果を示す「True」または「False」の情報を判定結果記憶部112に書き込んで記憶させて、結合判定処理のサブルーチンを終了する。 In the processing of steps S205, S206, and S208, the evaluation value determination unit 111 writes and stores the information of "True" or "False" indicating the determination result in association with the information indicating the reference group in the determination result storage unit 112. Then, the subroutine of the join judgment process is terminated.

図3に戻り、ピクチャタイプ選定部105は、結合判定部104が出力する判定結果を判定する(ステップS107)。ピクチャタイプ選定部105は、判定結果が「False」の場合(ステップS107−False)、参照グループのBフレームのピクチャタイプをPピクチャとして選定し、BフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。ピクチャタイプ選定部105は、Bフレームを起点フレームとする情報を参照グループ生成部103に出力する(ステップS108)。参照グループ生成部103は、ピクチャタイプ選定部105が出力するBフレームを起点フレームとする情報を受けた場合、Bフレームを起点フレームとしてステップS102の処理に進む。 Returning to FIG. 3, the picture type selection unit 105 determines the determination result output by the combination determination unit 104 (step S107). When the determination result is "False" (step S107-False), the picture type selection unit 105 selects information indicating that the B frame picture type of the reference group is selected as the P picture and the B frame is selected as the P picture. It is written and stored in the picture type storage unit 106. The picture type selection unit 105 outputs information starting from the B frame to the reference group generation unit 103 (step S108). When the reference group generation unit 103 receives the information output by the picture type selection unit 105 starting from the B frame, the reference group generation unit 103 proceeds to the process of step S102 with the B frame as the starting frame.

一方、ピクチャタイプ選定部105は、判定結果が「True」の場合(ステップS107−True)、BフレームのピクチャタイプをAフレームとCフレームを参照フレームとするBピクチャとして選定し、BフレームをBピクチャとして選定したことを示す情報、及びAフレームとCフレームが参照フレームであることを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。また、ピクチャタイプ選定部105は、CフレームのピクチャタイプをPピクチャとして選定し、CフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。ピクチャタイプ選定部105は、判定結果が「True」の参照グループを示す情報を参照グループ生成部103に出力する(ステップS109)。 On the other hand, when the determination result is "True" (step S107-True), the picture type selection unit 105 selects the picture type of the B frame as the B picture with the A frame and the C frame as the reference frame, and the B frame is B. Information indicating that the picture has been selected and information indicating that the A frame and the C frame are reference frames are written and stored in the picture type storage unit 106. Further, the picture type selection unit 105 selects the picture type of the C frame as the P picture, and writes and stores the information indicating that the C frame is selected as the P picture in the picture type storage unit 106. The picture type selection unit 105 outputs information indicating a reference group whose determination result is “True” to the reference group generation unit 103 (step S109).

参照グループ生成部103は、ピクチャタイプ選定部105が出力する判定結果が「True」の参照グループを示す情報を受けた場合、結合判定部104の判定結果記憶部112を参照する。参照グループ生成部103は、判定結果記憶部112に記憶されている情報に基づいて、表示順において、処理中の参照グループの1つ前の参照グループの判定結果が、「True」であるか否かを判定する(ステップS110)。 When the determination result output by the picture type selection unit 105 receives the information indicating the reference group of "True", the reference group generation unit 103 refers to the determination result storage unit 112 of the combination determination unit 104. Based on the information stored in the determination result storage unit 112, the reference group generation unit 103 determines whether or not the determination result of the reference group immediately before the reference group being processed is "True" in the display order. (Step S110).

参照グループ生成部103は、表示順において、処理中の参照グループの1つ前の参照グループの判定結果が、「True」でないと判定した場合(ステップS110−NO)、Cフレームを起点フレームとして(ステップS116)、ステップS102の処理に進む。 When the reference group generation unit 103 determines in the display order that the determination result of the reference group immediately before the reference group being processed is not "True" (step S110-NO), the C frame is used as the starting frame (step S110-NO). Step S116), the process proceeds to step S102.

参照グループ生成部103は、表示順において、処理中の参照グループの1つ前の参照グループの判定結果が、「True」であると判定した場合(ステップS110−YES)、新たな参照グループを生成する。すなわち、参照グループ生成部103は、1つ前の参照グループの最初のフレームと最後のフレームをそれぞれ、αフレーム、βフレームとし、処理中の参照グループの最後のフレームをγフレームとし、α、β、γフレームを含む新たな参照グループを生成する。なお、βフレームは、処理中の参照グループの最初のAフレームでもあり、当該参照グループにおける判定対象フレームとなる。参照グループ生成部103は、生成した新たな参照グループの情報を結合判定部104とピクチャタイプ選定部105に出力する(ステップS111)。 When the reference group generation unit 103 determines in the display order that the determination result of the reference group immediately before the reference group being processed is "True" (step S110-YES), the reference group generation unit 103 generates a new reference group. To do. That is, the reference group generation unit 103 sets the first frame and the last frame of the previous reference group as α frames and β frames, respectively, and sets the last frame of the reference group being processed as a γ frame, and sets α and β. , Generates a new reference group containing γ frames. The β frame is also the first A frame of the reference group being processed, and is a determination target frame in the reference group. The reference group generation unit 103 outputs the generated new reference group information to the combination determination unit 104 and the picture type selection unit 105 (step S111).

結合判定部104は、参照グループ生成部103が出力する参照グループに含まれるα,β,γフレームに対して結合判定処理を行う。評価値算出部110は、α,β,γフレームのそれぞれをS,M,Eフレームとして図4に示す結合判定処理を行う(ステップS112)。 The coupling determination unit 104 performs the coupling determination processing on the α, β, and γ frames included in the reference group output by the reference group generation unit 103. The evaluation value calculation unit 110 performs the coupling determination process shown in FIG. 4 with each of the α, β, and γ frames as S, M, and E frames (step S112).

ピクチャタイプ選定部105は、結合判定部104が出力する判定結果を判定する(ステップS113)。ピクチャタイプ選定部105は、判定結果が「False」の場合(ステップS113−False)、新たな参照グループの最後のフレームであるγフレーム、すなわち結合前の処理中の参照グループのCフレームを起点フレームとすることを示す情報を参照グループ生成部103に出力する(ステップS115)。参照グループ生成部103は、ピクチャタイプ選定部105が出力するCフレームを起点フレームとすることを示す情報を受けて、Cフレームを起点フレームとして(ステップS116)、ステップS102の処理に進む。 The picture type selection unit 105 determines the determination result output by the combination determination unit 104 (step S113). When the determination result is "False" (step S113-False), the picture type selection unit 105 starts from the γ frame, which is the last frame of the new reference group, that is, the C frame of the reference group being processed before joining. The information indicating that the above is to be output to the reference group generation unit 103 (step S115). The reference group generation unit 103 receives the information indicating that the C frame output by the picture type selection unit 105 is the starting frame, and proceeds to the process of step S102 with the C frame as the starting frame (step S116).

一方、ピクチャタイプ選定部105は、判定結果が「True」の場合(ステップS113−True)、βフレームのピクチャタイプをαフレームとγフレームを参照フレームとするBピクチャとして選定し、βフレームをBピクチャとして選定したことを示す情報、及びαフレームとγフレームが参照フレームであることを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。また、ピクチャタイプ選定部105は、γフレームのピクチャタイプをPピクチャとして選定し、γフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる(ステップS114)。 On the other hand, when the determination result is "True" (step S113-True), the picture type selection unit 105 selects the picture type of the β frame as the B picture with the α frame and the γ frame as the reference frame, and the β frame is B. Information indicating that the picture has been selected and information indicating that the α frame and the γ frame are reference frames are written and stored in the picture type storage unit 106. Further, the picture type selection unit 105 selects the picture type of the γ frame as the P picture, and writes and stores the information indicating that the γ frame is selected as the P picture in the picture type storage unit 106 (step S114).

ピクチャタイプ選定部105は、新たな参照グループの最後のフレームであるγフレーム、すなわち結合前の処理中の参照グループのCフレームを起点フレームとすることを示す情報を参照グループ生成部103に出力する(ステップS115)。参照グループ生成部103は、ピクチャタイプ選定部105が出力するCフレームを起点フレームとすることを示す情報を受けて、Cフレームを起点フレームとして(ステップS116)、ステップS102の処理に進む。 The picture type selection unit 105 outputs to the reference group generation unit 103 information indicating that the γ frame, which is the last frame of the new reference group, that is, the C frame of the reference group being processed before joining is used as the starting frame. (Step S115). The reference group generation unit 103 receives the information indicating that the C frame output by the picture type selection unit 105 is the starting frame, and proceeds to the process of step S102 with the C frame as the starting frame (step S116).

一方、ステップS102において、参照グループ生成部103は、連続する3枚のフレームを選択することができないと判定した場合(ステップS102−NO)、フレーム群の残りのフレームをPピクチャとして選定させる指示情報をピクチャタイプ選定部105に出力する。 On the other hand, in step S102, when the reference group generation unit 103 determines that three consecutive frames cannot be selected (step S102-NO), the instruction information for selecting the remaining frames of the frame group as P pictures. Is output to the picture type selection unit 105.

ピクチャタイプ選定部105は、参照グループ生成部103から当該指示情報を受けて、残りのフレームのピクチャタイプをPピクチャとして選定し、残りのフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる(ステップS103)。ピクチャタイプ選定部105は、Pピクチャとして選定したフレームの各々に対して、当該フレームに表示順で最も近い過去のPピクチャのフレームを参照フレームとして選定する。表示順で最も近い過去のPピクチャがない場合、Iピクチャを当該フレームの参照フレームとして選定する。ピクチャタイプ選定部105は、各Pピクチャに対して選定した参照フレームの情報をピクチャタイプ記憶部106に書き込んで記憶させる(ステップS104)。 The picture type selection unit 105 receives the instruction information from the reference group generation unit 103, selects the picture type of the remaining frame as the P picture, and stores information indicating that the remaining frame is selected as the P picture. It is written in the part 106 and stored (step S103). The picture type selection unit 105 selects as a reference frame the frame of the past P picture closest to the frame in the display order for each of the frames selected as the P picture. If there is no past P picture closest to the display order, the I picture is selected as the reference frame of the frame. The picture type selection unit 105 writes and stores the information of the reference frame selected for each P picture in the picture type storage unit 106 (step S104).

これにより、ピクチャタイプ記憶部106に、最終的に構築された符号化構造の情報が記憶されることになる。ブロック出力部107は、内部の記憶領域に一時的に符号化対象フレーム選択部101から受けたフレーム群を記憶しており、ピクチャタイプ記憶部106に記憶されている符号化構造に基づく順番で内部の記憶領域からフレームを読み出す。ブロック出力部107は、読み出したフレームの各々をラスタースキャンの順にCUブロックに分解して符号化対象ブロックとして出力し、符号化構造構築部10は、1つのフレーム群についての処理を終了する。 As a result, the picture type storage unit 106 stores the information of the finally constructed coded structure. The block output unit 107 temporarily stores the frame group received from the coded target frame selection unit 101 in the internal storage area, and internally in the order based on the coded structure stored in the picture type storage unit 106. Read a frame from the storage area of. The block output unit 107 decomposes each of the read frames into CU blocks in the order of raster scan and outputs them as a coded target block, and the coded structure construction unit 10 ends the processing for one frame group.

(第1の実施形態の符号化構造処理の具体例)
次に、図5から図8を参照しつつ、図5(a)に示すフレーム群に、図3に示した第1の実施形態の符号化構造構築処理を適用した場合の例について説明する。符号化対象フレーム選択部101が、入力映像情報から図5(a)に示すフレーム群を生成する。当該フレーム群は、フレーム番号8とフレーム番号9のフレームにおいてシーンチェンジが含まれている。
(Specific example of coded structure processing of the first embodiment)
Next, an example in which the coded structure construction process of the first embodiment shown in FIG. 3 is applied to the frame group shown in FIG. 5A will be described with reference to FIGS. 5 to 8. The coded target frame selection unit 101 generates the frame group shown in FIG. 5A from the input video information. The frame group includes scene changes in the frames of frame number 8 and frame number 9.

図5(b)に示すように、Iピクチャ選定部102は、フレーム番号0のフレームのピクチャタイプをIピクチャとして選定し、当該フレームをIピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。また、Iピクチャ選定部102は、フレーム番号0のフレームを起点フレームとする(ステップS101)。 As shown in FIG. 5B, the I-picture selection unit 102 selects the picture type of the frame with frame number 0 as the I-picture, and the picture type storage unit 106 stores information indicating that the frame is selected as the I-picture. Write in and memorize. Further, the I-picture selection unit 102 sets the frame of the frame number 0 as the starting frame (step S101).

参照グループ生成部103は、フレーム番号0のフレームを起点フレームとして、フレーム番号0,1,2の3枚の連続するフレームを選択する(ステップS102−YES)。参照グループ生成部103は、フレーム番号0,1,2のフレームをフレームA,B,Cとして含む参照グループ301を生成し、生成した参照グループ301の情報を結合判定部104とピクチャタイプ選定部105に出力する(ステップS105)。なお、参照グループ301において判定対象フレームは、フレーム番号1のフレームとなる。 The reference group generation unit 103 selects three consecutive frames of frame numbers 0, 1 and 2 with the frame of frame number 0 as the starting frame (step S102-YES). The reference group generation unit 103 generates a reference group 301 including frames 0, 1 and 2 as frames A, B, and C, and uses the generated reference group 301 information as a combination determination unit 104 and a picture type selection unit 105. Is output to (step S105). In the reference group 301, the determination target frame is the frame of frame number 1.

結合判定部104は、参照グループ301に対して図4に示す結合判定処理を行い、ここでは、シーンチェンジがないため、評価値判定部111は、「True」を出力したとする(ステップS106)。ピクチャタイプ選定部105は、結合判定部104が出力する判定結果が、「True」であるため(ステップS107−True)、フレーム番号1のフレームのピクチャタイプをフレーム番号0とフレーム番号2のフレームを参照フレームとするBピクチャとして選定する。ピクチャタイプ選定部105は、フレーム番号2のフレームをBピクチャとして選定したことを示す情報、及びフレーム番号0とフレーム番号2のフレームが参照フレームであることを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。 It is assumed that the combination determination unit 104 performs the combination determination process shown in FIG. 4 on the reference group 301, and since there is no scene change here, the evaluation value determination unit 111 outputs “True” (step S106). .. Since the determination result output by the combination determination unit 104 is "True" (step S107-True), the picture type selection unit 105 sets the picture type of the frame of frame number 1 to the frame of frame number 0 and frame number 2. Select as the B picture to be the reference frame. The picture type selection unit 105 writes in the picture type storage unit 106 information indicating that the frame of frame number 2 is selected as the B picture and information indicating that the frames of frame number 0 and frame number 2 are reference frames. Remember with.

また、ピクチャタイプ選定部105は、フレーム番号2のフレームのピクチャタイプをPピクチャとして選定し、フレーム番号2のフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。ピクチャタイプ選定部105は、判定結果が「True」の参照グループ301を示す情報を参照グループ生成部103に出力する(ステップS109)。 Further, the picture type selection unit 105 selects the picture type of the frame of the frame number 2 as the P picture, and writes and stores the information indicating that the frame of the frame number 2 is selected as the P picture in the picture type storage unit 106. .. The picture type selection unit 105 outputs information indicating the reference group 301 whose determination result is “True” to the reference group generation unit 103 (step S109).

図5(c)に示すように、参照グループ生成部103は、判定結果記憶部112を参照し、参照グループ301に対して1つ前の参照グループが存在しないため(ステップS110−NO)、フレーム番号2のフレームを起点フレームとして(ステップS116)、フレーム番号2,3,4の3枚の連続するフレームを選択する(ステップS102−YES)。参照グループ生成部103は、フレーム番号2,3,4のフレームをフレームA,B,Cとして含む参照グループ302を生成し、生成した参照グループ302の情報を結合判定部104とピクチャタイプ選定部105に出力する(ステップS105)。なお、参照グループ302において判定対象フレームは、フレーム番号3のフレームとなる。 As shown in FIG. 5C, the reference group generation unit 103 refers to the determination result storage unit 112, and since the reference group immediately before the reference group 301 does not exist (step S110-NO), the frame. With the frame number 2 as the starting frame (step S116), three consecutive frames with frame numbers 2, 3 and 4 are selected (step S102-YES). The reference group generation unit 103 generates a reference group 302 including frames of frame numbers 2, 3 and 4 as frames A, B, and C, and uses the generated reference group 302 information as a combination determination unit 104 and a picture type selection unit 105. Is output to (step S105). In the reference group 302, the determination target frame is the frame of frame number 3.

結合判定部104は、参照グループ302に対して図4に示す結合判定処理を行い、ここでも、シーンチェンジがないため、評価値判定部111は、「True」を出力したとする(ステップS106)。ピクチャタイプ選定部105は、結合判定部104が出力する判定結果が、「True」であるため(ステップS107−True)、フレーム番号3のフレームのピクチャタイプをフレーム番号2とフレーム番号4のフレームを参照フレームとするBピクチャとして選定する。ピクチャタイプ選定部105は、フレーム番号3のフレームをBピクチャとして選定したことを示す情報、及びフレーム番号2とフレーム番号4のフレームが参照フレームであることを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。 It is assumed that the combination determination unit 104 performs the combination determination process shown in FIG. 4 on the reference group 302, and since there is no scene change here as well, the evaluation value determination unit 111 outputs “True” (step S106). .. Since the determination result output by the combination determination unit 104 is "True" (step S107-True), the picture type selection unit 105 sets the picture type of the frame of frame number 3 to the frame of frame number 2 and frame number 4. Select as the B picture to be the reference frame. The picture type selection unit 105 writes in the picture type storage unit 106 information indicating that the frame of frame number 3 is selected as the B picture and information indicating that the frames of frame numbers 2 and 4 are reference frames. Remember with.

また、ピクチャタイプ選定部105は、フレーム番号4のピクチャタイプをPピクチャとして選定し、フレーム番号4のフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。ピクチャタイプ選定部105は、判定結果が「True」の参照グループ302を示す情報を参照グループ生成部103に出力する(ステップS109)。 Further, the picture type selection unit 105 selects the picture type of the frame number 4 as the P picture, and writes and stores the information indicating that the frame of the frame number 4 is selected as the P picture in the picture type storage unit 106. The picture type selection unit 105 outputs information indicating the reference group 302 whose determination result is “True” to the reference group generation unit 103 (step S109).

図6(d)に示すように、参照グループ生成部103は、判定結果記憶部112を参照し、参照グループ302に対して1つ前の参照グループ301の判定結果が「True」であると判定する(ステップS110−YES)。参照グループ生成部103は、フレーム番号0,2,4のフレームをフレームα,β,γとして含む参照グループ303を生成する。なお、参照グループ303において判定対象フレームは、フレーム番号2のフレームとなる。参照グループ生成部103は、生成した参照グループ303の情報を結合判定部104とピクチャタイプ選定部105に出力する(ステップS111)。 As shown in FIG. 6D, the reference group generation unit 103 refers to the determination result storage unit 112, and determines that the determination result of the reference group 301 immediately before the reference group 302 is “True”. (Step S110-YES). The reference group generation unit 103 generates a reference group 303 including frames of frame numbers 0, 2, and 4 as frames α, β, and γ. In the reference group 303, the determination target frame is the frame of frame number 2. The reference group generation unit 103 outputs the generated information of the reference group 303 to the combination determination unit 104 and the picture type selection unit 105 (step S111).

結合判定部104は、参照グループ303に対して図4に示す結合判定処理を行い、ここでも、シーンチェンジがないため、評価値判定部111は、「True」を出力したとする(ステップS112)。ピクチャタイプ選定部105は、判定結果が「True」であるため(ステップS113−True)、フレーム番号2のフレームのピクチャタイプをフレーム番号0とフレーム番号4のフレームを参照フレームとするBピクチャとして選定する。 It is assumed that the combination determination unit 104 performs the combination determination process shown in FIG. 4 on the reference group 303, and since there is no scene change here as well, the evaluation value determination unit 111 outputs “True” (step S112). .. Since the determination result is "True" (step S113-True), the picture type selection unit 105 selects the picture type of the frame of frame number 2 as the B picture with the frames of frame number 0 and frame number 4 as reference frames. To do.

ピクチャタイプ記憶部106には、既に、フレーム番号2のフレームについて、Pピクチャであることを示す情報が書き込まれている。そのため、ピクチャタイプ選定部105は、フレーム番号2のフレームをBピクチャとして選定したことを示す情報、及びフレーム番号0とフレーム番号4のフレームが参照フレームであることを示す情報をピクチャタイプ記憶部106に上書きして記憶させる(ステップS114)。ピクチャタイプ選定部105は、次の起点フレームとなるフレーム番号4を示す情報を参照グループ生成部103に出力する(ステップS115)。 Information indicating that the frame of the frame number 2 is a P picture has already been written in the picture type storage unit 106. Therefore, the picture type selection unit 105 stores information indicating that the frame of frame number 2 is selected as the B picture and information indicating that the frames of frame number 0 and frame number 4 are reference frames. Is overwritten and stored (step S114). The picture type selection unit 105 outputs information indicating the frame number 4, which is the next starting frame, to the reference group generation unit 103 (step S115).

図6(e)に示すように、参照グループ生成部103は、フレーム番号4のフレームを起点フレームとして(ステップS116)、フレーム番号4,5,6の3枚の連続するフレームを選択する(ステップS102−YES)。参照グループ生成部103は、フレーム番号4,5,6のフレームをフレームA,B,Cとして含む参照グループ304を生成し、生成した参照グループ304の情報を結合判定部104とピクチャタイプ選定部105に出力する(ステップS105)。なお、参照グループ304において判定対象フレームは、フレーム番号5のフレームとなる。 As shown in FIG. 6E, the reference group generation unit 103 selects three consecutive frames of frame numbers 4, 5 and 6 with the frame of frame number 4 as the starting frame (step S116) (step). S102-YES). The reference group generation unit 103 generates a reference group 304 including frames of frame numbers 4, 5 and 6 as frames A, B, and C, and uses the generated reference group 304 information as a combination determination unit 104 and a picture type selection unit 105. Is output to (step S105). In the reference group 304, the determination target frame is the frame of frame number 5.

結合判定部104は、参照グループ304に対して図4に示す結合判定処理を行い、ここでも、シーンチェンジがないため、評価値判定部111は、「True」を出力したとする(ステップS106)。ピクチャタイプ選定部105は、結合判定部104が出力する判定結果が、「True」であるため(ステップS107−True)、フレーム番号5のフレームのピクチャタイプをフレーム番号4とフレーム番号6のフレームを参照フレームとするBピクチャとして選定する。ピクチャタイプ選定部105は、フレーム番号5のフレームをBピクチャとして選定したことを示す情報、及びフレーム番号4とフレーム番号6のフレームが参照フレームであることを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。 It is assumed that the combination determination unit 104 performs the combination determination process shown in FIG. 4 on the reference group 304, and since there is no scene change here as well, the evaluation value determination unit 111 outputs “True” (step S106). .. Since the determination result output by the combination determination unit 104 is "True" (step S107-True), the picture type selection unit 105 sets the picture type of the frame of frame number 5 to the frames of frame number 4 and frame number 6. Select as the B picture to be the reference frame. The picture type selection unit 105 writes in the picture type storage unit 106 information indicating that the frame of frame number 5 is selected as the B picture and information indicating that the frames of frame numbers 4 and 6 are reference frames. Remember with.

また、ピクチャタイプ選定部105は、フレーム番号6のピクチャタイプをPピクチャとして選定し、フレーム番号6のフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。ピクチャタイプ選定部105は、判定結果が「True」の参照グループ304を示す情報を参照グループ生成部103に出力する(ステップS109)。 Further, the picture type selection unit 105 selects the picture type of the frame number 6 as the P picture, and writes and stores the information indicating that the frame of the frame number 6 is selected as the P picture in the picture type storage unit 106. The picture type selection unit 105 outputs information indicating the reference group 304 whose determination result is “True” to the reference group generation unit 103 (step S109).

図6(f)に示すように、参照グループ生成部103は、判定結果記憶部112を参照し、参照グループ304に対して1つ前の参照グループ303の判定結果が「True」であると判定する(ステップS110−YES)。参照グループ生成部103は、フレーム番号0,4,6のフレームをフレームα,β,γとして含む参照グループ305を生成する。なお、参照グループ305において判定対象フレームは、フレーム番号4のフレームとなる。参照グループ生成部103は、生成した参照グループ305の情報を結合判定部104とピクチャタイプ選定部105に出力する(ステップS111)。 As shown in FIG. 6F, the reference group generation unit 103 refers to the determination result storage unit 112, and determines that the determination result of the reference group 303 immediately before the reference group 304 is “True”. (Step S110-YES). The reference group generation unit 103 generates a reference group 305 including frames of frame numbers 0, 4, and 6 as frames α, β, and γ. In the reference group 305, the determination target frame is the frame of frame number 4. The reference group generation unit 103 outputs the generated information of the reference group 305 to the combination determination unit 104 and the picture type selection unit 105 (step S111).

結合判定部104は、参照グループ305に対して図4に示す結合判定処理を行い、ここでも、シーンチェンジがないため、評価値判定部111は、「True」を出力したとする(ステップS112)。ピクチャタイプ選定部105は、判定結果が「True」であるため(ステップS113−True)、フレーム番号4のフレームのピクチャタイプをフレーム番号0とフレーム番号6のフレームを参照フレームとするBピクチャとして選定する。 It is assumed that the combination determination unit 104 performs the combination determination process shown in FIG. 4 on the reference group 305, and since there is no scene change here as well, the evaluation value determination unit 111 outputs “True” (step S112). .. Since the determination result is "True" (step S113-True), the picture type selection unit 105 selects the picture type of the frame of frame number 4 as the B picture using the frames of frame number 0 and frame number 6 as reference frames. To do.

ピクチャタイプ記憶部106には、既に、フレーム番号4のフレームについて、Pピクチャであることを示す情報が書き込まれている。そのため、ピクチャタイプ選定部105は、フレーム番号4のフレームをBピクチャとして選定したことを示す情報、及びフレーム番号0とフレーム番号6のフレームが参照フレームであることを示す情報をピクチャタイプ記憶部106に上書きして記憶させる(ステップS114)。ピクチャタイプ選定部105は、次の起点フレームとなるフレーム番号6を示す情報を参照グループ生成部103に出力する(ステップS115)。 Information indicating that the frame has the frame number 4 is a P picture has already been written in the picture type storage unit 106. Therefore, the picture type selection unit 105 stores information indicating that the frame of frame number 4 is selected as the B picture and information indicating that the frames of frame number 0 and frame number 6 are reference frames. Is overwritten and stored (step S114). The picture type selection unit 105 outputs information indicating a frame number 6 to be the next starting frame to the reference group generation unit 103 (step S115).

図7(g)に示すように、参照グループ生成部103は、フレーム番号6のフレームを起点フレームとして(ステップS116)、フレーム番号6,7,8の3枚の連続するフレームを選択する(ステップS102−YES)。参照グループ生成部103は、フレーム番号6,7,8のフレームをフレームA,B,Cとして含む参照グループ306を生成し、生成した参照グループ306の情報を結合判定部104とピクチャタイプ選定部105に出力する(ステップS105)。なお、参照グループ306において判定対象フレームは、フレーム番号7のフレームとなる。 As shown in FIG. 7 (g), the reference group generation unit 103 selects three consecutive frames of frame numbers 6, 7, and 8 with the frame of frame number 6 as the starting frame (step S116) (step). S102-YES). The reference group generation unit 103 generates a reference group 306 including frames of frame numbers 6, 7, and 8 as frames A, B, and C, and uses the generated reference group 306 information as a combination determination unit 104 and a picture type selection unit 105. Is output to (step S105). In the reference group 306, the determination target frame is the frame of frame number 7.

結合判定部104は、参照グループ306に対して図4に示す結合判定処理を行い、ここでも、シーンチェンジがないため、評価値判定部111は、「True」を出力したとする(ステップS106)。ピクチャタイプ選定部105は、結合判定部104が出力する判定結果が、「True」であるため(ステップS107−True)、フレーム番号7のフレームのピクチャタイプをフレーム番号6とフレーム番号8のフレームを参照フレームとするBピクチャとして選定する。ピクチャタイプ選定部105は、フレーム番号7のフレームをBピクチャとして選定したことを示す情報、及びフレーム番号6とフレーム番号8のフレームが参照フレームであることを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。 It is assumed that the combination determination unit 104 performs the combination determination process shown in FIG. 4 on the reference group 306, and since there is no scene change here as well, the evaluation value determination unit 111 outputs “True” (step S106). .. Since the determination result output by the combination determination unit 104 is "True" (step S107-True), the picture type selection unit 105 sets the picture type of the frame of frame number 7 to the frame of frame number 6 and frame number 8. Select as the B picture to be the reference frame. The picture type selection unit 105 writes in the picture type storage unit 106 information indicating that the frame of frame number 7 is selected as the B picture and information indicating that the frames of frame numbers 6 and 8 are reference frames. Remember with.

また、ピクチャタイプ選定部105は、フレーム番号8のピクチャタイプをPピクチャとして選定し、フレーム番号8のフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。ピクチャタイプ選定部105は、判定結果が「True」の参照グループ306を示す情報を参照グループ生成部103に出力する(ステップS109)。 Further, the picture type selection unit 105 selects the picture type of the frame number 8 as the P picture, and writes and stores the information indicating that the frame of the frame number 8 is selected as the P picture in the picture type storage unit 106. The picture type selection unit 105 outputs information indicating the reference group 306 whose determination result is “True” to the reference group generation unit 103 (step S109).

図7(h)に示すように、参照グループ生成部103は、判定結果記憶部112を参照し、参照グループ306に対して1つ前の参照グループ305の判定結果が「True」であると判定する(ステップS110−YES)。参照グループ生成部103は、フレーム番号0,6,8のフレームをフレームα,β,γとして含む参照グループ307を生成する。なお、参照グループ307において判定対象フレームは、フレーム番号6のフレームとなる。参照グループ生成部103は、生成した参照グループ307の情報を結合判定部104とピクチャタイプ選定部105に出力する(ステップS111)。 As shown in FIG. 7H, the reference group generation unit 103 refers to the determination result storage unit 112, and determines that the determination result of the reference group 305 immediately before the reference group 306 is “True”. (Step S110-YES). The reference group generation unit 103 generates a reference group 307 including frames of frame numbers 0, 6, and 8 as frames α, β, and γ. In the reference group 307, the determination target frame is the frame of frame number 6. The reference group generation unit 103 outputs the generated information of the reference group 307 to the combination determination unit 104 and the picture type selection unit 105 (step S111).

結合判定部104は、参照グループ307に対して図4に示す結合判定処理を行い、ここでも、シーンチェンジがないため、評価値判定部111は、「True」を出力したとする(ステップS112)。ピクチャタイプ選定部105は、判定結果が「True」であるため(ステップS113−True)、フレーム番号6のフレームのピクチャタイプをフレーム番号0とフレーム番号8のフレームを参照フレームとするBピクチャとして選定する。 It is assumed that the combination determination unit 104 performs the combination determination process shown in FIG. 4 on the reference group 307, and since there is no scene change here as well, the evaluation value determination unit 111 outputs “True” (step S112). .. Since the determination result is "True" (step S113-True), the picture type selection unit 105 selects the picture type of the frame of frame number 6 as the B picture using the frames of frame number 0 and frame number 8 as reference frames. To do.

ピクチャタイプ記憶部106には、既に、フレーム番号6のフレームについて、Pピクチャであることを示す情報が書き込まれている。そのため、ピクチャタイプ選定部105は、フレーム番号6のフレームをBピクチャとして選定したことを示す情報、及びフレーム番号0とフレーム番号8のフレームが参照フレームであることを示す情報をピクチャタイプ記憶部106に上書きして記憶させる(ステップS114)。ピクチャタイプ選定部105は、次の起点フレームとなるフレーム番号8を示す情報を参照グループ生成部103に出力する(ステップS115)。 Information indicating that the frame of frame number 6 is a P picture has already been written in the picture type storage unit 106. Therefore, the picture type selection unit 105 stores information indicating that the frame of frame number 6 is selected as the B picture and information indicating that the frames of frame number 0 and frame number 8 are reference frames. Is overwritten and stored (step S114). The picture type selection unit 105 outputs information indicating a frame number 8 to be the next starting frame to the reference group generation unit 103 (step S115).

図7(i)に示すように、参照グループ生成部103は、フレーム番号8のフレームを起点フレームとして(ステップS116)、フレーム番号8,9,10の3枚の連続するフレームを選択する(ステップS102−YES)。参照グループ生成部103は、フレーム番号8,9,10のフレームをフレームA,B,Cとして含む参照グループ308を生成し、生成した参照グループ308の情報を結合判定部104とピクチャタイプ選定部105に出力する(ステップS105)。なお、参照グループ308において判定対象フレームは、フレーム番号9のフレームとなる。 As shown in FIG. 7 (i), the reference group generation unit 103 selects three consecutive frames of frame numbers 8, 9, and 10 with the frame of frame number 8 as the starting frame (step S116) (step). S102-YES). The reference group generation unit 103 generates a reference group 308 including frames of frame numbers 8, 9, and 10 as frames A, B, and C, and uses the generated reference group 308 information as a combination determination unit 104 and a picture type selection unit 105. Is output to (step S105). In the reference group 308, the determination target frame is the frame of frame number 9.

結合判定部104は、参照グループ308に対して図4に示す結合判定処理を行う。図5(a)に示したように、フレーム番号8とフレーム番号9の間ではシーンチェンジがあるため、ここでは、評価値判定部111は、「False」を出力したとする(ステップS106)。ピクチャタイプ選定部105は、結合判定部104が出力する判定結果が、「False」であるため(ステップS107−False)、フレーム番号9のフレームのピクチャタイプをPピクチャとして選定する。ピクチャタイプ選定部105は、フレーム番号9のフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。ピクチャタイプ選定部105は、フレーム番号9のフレームを起点フレームとする(ステップS108)。 The coupling determination unit 104 performs the coupling determination processing shown in FIG. 4 on the reference group 308. As shown in FIG. 5A, since there is a scene change between the frame number 8 and the frame number 9, it is assumed that the evaluation value determination unit 111 outputs "False" here (step S106). Since the determination result output by the combination determination unit 104 is "False" (step S107-False), the picture type selection unit 105 selects the picture type of the frame of frame number 9 as the P picture. The picture type selection unit 105 writes and stores information indicating that the frame of frame number 9 is selected as the P picture in the picture type storage unit 106. The picture type selection unit 105 uses the frame of frame number 9 as the starting frame (step S108).

図8(j)に示すように、参照グループ生成部103は、フレーム番号9のフレームを起点として3枚の連続するフレームを選択することができない(ステップS102−NO)。参照グループ生成部103は、残りのフレームであるフレーム番号10のフレームのピクチャタイプをPピクチャとして選定する指示情報をピクチャタイプ選定部105に出力する。ピクチャタイプ選定部105は、当該指示情報を受けて、フレーム番号10のフレームをPピクチャとして選定し、フレーム番号10のフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる(ステップS103)。 As shown in FIG. 8 (j), the reference group generation unit 103 cannot select three consecutive frames starting from the frame of frame number 9 (step S102-NO). The reference group generation unit 103 outputs instruction information for selecting the picture type of the frame of the frame number 10 which is the remaining frame as a P picture to the picture type selection unit 105. In response to the instruction information, the picture type selection unit 105 selects the frame of frame number 10 as the P picture, and writes information indicating that the frame of frame number 10 is selected as the P picture in the picture type storage unit 106. It is stored (step S103).

ピクチャタイプ選定部105は、ピクチャタイプ記憶部106に記憶されている情報を参照し、Pピクチャとして選定されている、フレーム番号8,9,10のフレームについて、表示順で最も近い過去のPピクチャのフレームを参照フレームとして選定する。表示順で最も近い過去のPピクチャがない場合、Iピクチャのフレームを参照フレームとして選定する。ピクチャタイプ選定部105は、選定した参照フレームを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる(ステップS104)。 The picture type selection unit 105 refers to the information stored in the picture type storage unit 106, and refers to the past P picture closest to the display order for the frames of frame numbers 8, 9 and 10 selected as the P picture. Select the frame of as the reference frame. If there is no past P picture closest to the display order, the frame of the I picture is selected as the reference frame. The picture type selection unit 105 writes and stores information indicating the selected reference frame in the picture type storage unit 106 (step S104).

フレーム番号8のフレームについては、表示順で最も近い過去のPピクチャがないため、フレーム番号0のIピクチャのフレームが参照フレームとなる。フレーム番号9のフレームについては、表示順で最も近い過去のPピクチャは、フレーム番号8のフレームとなる。フレーム番号10のフレームについては、表示順で最も近い過去のPピクチャは、フレーム番号9のフレームとなる。 As for the frame of frame number 8, since there is no past P picture closest to the display order, the frame of the I picture of frame number 0 becomes the reference frame. For the frame of frame number 9, the past P picture closest in the display order is the frame of frame number 8. For the frame of frame number 10, the past P picture closest in the display order is the frame of frame number 9.

ピクチャタイプ記憶部106に記憶されている情報に基づいて構築された符号化構造を階層化すると、図8(k)に示すような、4階層のBピクチャの階層構造を有する符号化構造となる。 When the coded structure constructed based on the information stored in the picture type storage unit 106 is layered, the coded structure has a layered structure of four layers of B pictures as shown in FIG. 8 (k). ..

(結合判定処理の具体例)
次に、図9及び図10を参照しつつ、結合判定部104による結合判定処理の例について説明する。図9は、結合判定処理を適用するS,M,Eフレームの例であり、図9(i)は、S,M,Eフレームの3枚のフレームにおいてシーンチェンジがない例であり、(ii)は、MフレームとEフレームの間でシーンチェンジがある例であり、(iii)は、SフレームとMフレームの間でシーンチェンジがある例である。図9(iv)と(v)は、SフレームからEフレームにわたって部分的にシーンチェンジがある例である。
(Specific example of combination judgment processing)
Next, an example of the coupling determination processing by the coupling determination unit 104 will be described with reference to FIGS. 9 and 10. FIG. 9 shows an example of S, M, and E frames to which the combination determination process is applied, and FIG. 9 (i) shows an example in which there is no scene change in the three frames of S, M, and E frames (ii). ) Is an example in which there is a scene change between the M frame and the E frame, and (iii) is an example in which there is a scene change between the S frame and the M frame. 9 (iv) and 9 (v) are examples in which there is a partial scene change from the S frame to the E frame.

この例において、相対評価用閾値Th_min,Th_maxとして、それぞれ「0.8」,「1.2」が定められており、絶対評価用閾値Th_absとして、「350」が定められているとする。 In this example, it is assumed that "0.8" and "1.2" are set as the relative evaluation thresholds Th_min and Th_max, respectively, and "350" is set as the absolute evaluation thresholds Th_abs.

図9(i)の場合、結合判定部104の評価値算出部110は、L0,L1,Biコストの評価値として、図10に示すように、それぞれ「150」、「150」、「100」を算出する(ステップS201)。評価値判定部111により式(1)を適用すると、相対値=min(100,150)/150=100/150=2/3となる(ステップS202,S203)。2/3<0.8であるため(ステップS204、<Th_min)、評価値判定部111は、「True」を出力する(ステップS205)。 In the case of FIG. 9 (i), the evaluation value calculation unit 110 of the combination determination unit 104 sets the evaluation values of the L0, L1, and Bi costs as “150”, “150”, and “100”, respectively, as shown in FIG. Is calculated (step S201). When the equation (1) is applied by the evaluation value determination unit 111, the relative value = min (100, 150) / 150 = 100/150 = 2/3 (steps S202, S203). Since 2/3 <0.8 (step S204, <Th_min), the evaluation value determination unit 111 outputs "True" (step S205).

図9(ii)の場合、結合判定部104の評価値算出部110は、L0,L1,Biコストの評価値として、図10に示すように、それぞれ「150」、「500」、「400」を算出する(ステップS201)。評価値判定部111により式(1)を適用すると、相対値=min(400,500)/150=400/150=8/3となる(ステップS202,S203)。8/3>1.2であるため(ステップS204、>Th_max)、評価値判定部111は、「False」を出力する(ステップS206)。 In the case of FIG. 9 (ii), the evaluation value calculation unit 110 of the combination determination unit 104 has "150", "500", and "400" as the evaluation values of the L0, L1, and Bi costs, respectively, as shown in FIG. Is calculated (step S201). When the equation (1) is applied by the evaluation value determination unit 111, the relative value = min (400,500) / 150 = 400/150 = 8/3 (steps S202 and S203). Since 8/3> 1.2 (step S204,> Th_max), the evaluation value determination unit 111 outputs “False” (step S206).

図9(iii)の場合、結合判定部104の評価値算出部110は、L0,L1,Biコストの評価値として、図10に示すように、それぞれ「500」、「150」、「400」を算出する(ステップS201)。評価値判定部111により式(1)を適用すると、相対値=min(400,150)/500=150/500=0.3となる(ステップS202,S203)。0.3<0.8であるため(ステップS204、<Th_min)、評価値判定部111は、「True」を出力する(ステップS205)。 In the case of FIG. 9 (iii), the evaluation value calculation unit 110 of the combination determination unit 104 sets the evaluation values of the L0, L1, and Bi costs as “500”, “150”, and “400”, respectively, as shown in FIG. Is calculated (step S201). When the equation (1) is applied by the evaluation value determination unit 111, the relative value = min (400, 150) / 500 = 150/500 = 0.3 (steps S202, S203). Since 0.3 <0.8 (step S204, <Th_min), the evaluation value determination unit 111 outputs "True" (step S205).

図9(iv)の場合、結合判定部104の評価値算出部110は、L0,L1,Biコストの評価値として、図10に示すように、それぞれ「300」、「400」、「300」を算出する(ステップS201)。評価値判定部111により式(1)を適用すると、相対値=min(300,400)/300=300/300=1となる(ステップS202,S203)。0.8≦1≦1.2であるため(ステップS204、≧Th_minかつ≦Th_max)、評価値判定部111は、Biコストの値の大きさを絶対評価用閾値に基づいて判定する(ステップS207)。Biコストの値「300」<Th_abs「350」であるため(ステップS207、<Th_abs)、評価値判定部111は、「True」を出力する(ステップS208)。 In the case of FIG. 9 (iv), the evaluation value calculation unit 110 of the combination determination unit 104 sets the evaluation values of the L0, L1, and Bi costs as “300”, “400”, and “300”, respectively, as shown in FIG. Is calculated (step S201). When the equation (1) is applied by the evaluation value determination unit 111, the relative value = min (300, 400) / 300 = 300/300 = 1 (steps S202 and S203). Since 0.8 ≦ 1 ≦ 1.2 (step S204, ≧ Th_min and ≦ Th_max), the evaluation value determination unit 111 determines the magnitude of the Bi cost value based on the absolute evaluation threshold value (step S207). ). Since the Bi cost value "300" <Th_abs "350" (step S207, <Thh_abs), the evaluation value determination unit 111 outputs "True" (step S208).

図9(v)の場合、結合判定部104の評価値算出部110は、L0,L1,Biコストの評価値として、図10に示すように、それぞれ「400」、「500」、「400」を算出する(ステップS201)。評価値判定部111により式(1)を適用すると、相対値=min(400,500)/400=400/400=1となる(ステップS202,S203)。0.8≦1≦1.2であるため(ステップS204、≧Th_minかつ≦Th_max)、評価値判定部111は、Biコストの値の大きさを絶対評価用閾値に基づいて判定する(ステップS207)。Biコストの値「400」≧Th_abs「350」であるため(ステップS207、≧Th_abs)、評価値判定部111は、「False」を出力する(ステップS206)。 In the case of FIG. 9 (v), the evaluation value calculation unit 110 of the combination determination unit 104 uses “400”, “500”, and “400” as the evaluation values of the L0, L1, and Bi costs, respectively, as shown in FIG. Is calculated (step S201). When the equation (1) is applied by the evaluation value determination unit 111, the relative value = min (400,500) / 400 = 400/400 = 1 (steps S202 and S203). Since 0.8 ≦ 1 ≦ 1.2 (step S204, ≧ Th_min and ≦ Th_max), the evaluation value determination unit 111 determines the magnitude of the Bi cost value based on the absolute evaluation threshold value (step S207). ). Since the Bi cost value “400” ≧ Th_abs “350” (step S207, ≧ Th_abs), the evaluation value determination unit 111 outputs “False” (step S206).

上記の第1の実施形態の構成により、符号化構造構築部10において、符号化対象フレーム選択部101が、入力映像情報から予め定められるGOPのサイズにしたがう枚数のフレームを選択してフレーム群を生成する。Iピクチャ選定部102は、フレーム群の最初のフレームをIピクチャとして選定し、起点フレームとする。参照グループ生成部103は、起点フレームを起点として3枚の連続するフレームを選択し、選択した3枚のフレームをA,B,Cフレームとして参照グループを生成する。結合判定部104の評価値算出部110は、参照グループに含まれるA,B,Cフレームに基づいて、L0コスト、L1コスト、Biコストという3つの評価値を算出する。評価値判定部111は、BiコストとL1コストのうち値の小さい方を選択し、L0コストの値を基準とした相対値と、予め定められる相対評価用閾値Th_min,Th_maxとに基づいて、判定対象フレームであるBフレームと、AとCフレームの参照関係を結合するか否かを判定する。また、評価値判定部111は、相対値が、Th_minの値以上であって、かつTh_maxの値以下の範囲に含まれる場合、更に、Biコストの値と、絶対評価用閾値Th_absとに基づいて、判定対象フレームであるBフレームと、AとCフレームの参照関係を結合するか否かを判定する。ピクチャタイプ選定部105は、評価値判定部111が、Bフレームと、AとCフレームの参照関係を結合すると判定した場合、Bフレームを、AとCフレームを参照フレームとするBピクチャとして選定する。すなわち、符号化構造構築部10では、実際の符号化を行うような演算を行っておらず、3つのフレームに基づいて3つの評価値を算出し、算出した3つの評価値に基づいて、3つのフレームの参照関係を結合するか否かを判定している。このため、第1の実施形態の符号化構造構築部10では、符号化効率の高い符号化構造を低演算量で求めることが可能となる。 According to the configuration of the first embodiment described above, in the coding structure construction unit 10, the coding target frame selection unit 101 selects a number of frames according to a predetermined GOP size from the input video information to form a frame group. Generate. The I-picture selection unit 102 selects the first frame of the frame group as the I-picture and uses it as the starting frame. The reference group generation unit 103 selects three consecutive frames starting from the starting frame, and generates a reference group using the selected three frames as A, B, and C frames. The evaluation value calculation unit 110 of the combination determination unit 104 calculates three evaluation values, L0 cost, L1 cost, and Bi cost, based on the A, B, and C frames included in the reference group. The evaluation value determination unit 111 selects the smaller value of the Bi cost and the L1 cost, and determines based on the relative value based on the value of the L0 cost and the predetermined relative evaluation thresholds Th_min and Th_max. It is determined whether or not the reference relationship between the B frame, which is the target frame, and the A and C frames is combined. Further, when the relative value is not more than the value of Th_min and is included in the range not more than the value of Th_max, the evaluation value determination unit 111 further bases on the value of Bi cost and the absolute evaluation threshold Th_abs. , It is determined whether or not the reference relationship between the B frame, which is the determination target frame, and the A and C frames is combined. When the evaluation value determination unit 111 determines that the reference relationship between the B frame and the A and C frames is to be combined, the picture type selection unit 105 selects the B frame as the B picture with the A and C frames as the reference frames. .. That is, the coded structure construction unit 10 does not perform an operation that actually performs coding, calculates three evaluation values based on three frames, and based on the calculated three evaluation values, 3 It is determined whether or not to combine the reference relationships of two frames. Therefore, in the coded structure construction unit 10 of the first embodiment, it is possible to obtain a coded structure having high coding efficiency with a low calculation amount.

また、参照グループ生成部103は、評価値判定部111が、判定対象フレームと最初と最後のフレームの参照関係を結合すると判定した隣接する2つの参照グループを結合して重複するフレームを判定対象フレームとする新たな参照グループを生成することを繰り返す。結合判定部104は、参照グループ生成部103が、新たに生成した参照グループのα,β,γフレームに基づいて、結合判定処理を行う。これにより、第1の実施形態の符号化構造構築部10では、2階層以上の深い階層の符号化構造を構築することが可能となっており、符号化効率を向上させることが可能となっている。例えば、上述したように、図8(k)の例では、4階層のBピクチャの階層構造を有する符号化構造を構築することができることを示している。 In addition, the reference group generation unit 103 combines two adjacent reference groups determined by the evaluation value determination unit 111 to combine the reference relationship between the determination target frame and the first and last frames, and determines the overlapping frame. Repeat the process of creating a new reference group. The coupling determination unit 104 performs the coupling determination processing based on the α, β, and γ frames of the newly generated reference group by the reference group generation unit 103. As a result, the coded structure construction unit 10 of the first embodiment can construct a coded structure having two or more layers deep, and can improve the coding efficiency. There is. For example, as described above, the example of FIG. 8K shows that it is possible to construct a coded structure having a hierarchical structure of four layers of B pictures.

(第2の実施形態)
図11は、本発明の第2の実施形態における符号化構造構築部10aの構成を示すブロック図である。符号化構造構築部10aは、第1の実施形態の映像符号化装置1の符号化構造構築部10に置き換えて適用される機能部である。なお、第2の実施形態の符号化構造構築部10aが適用される場合、映像符号化装置の符号を「1」に替えて「1a」で表すものとする。第2の実施形態において、第1の実施形態と同一の構成については、同一の符号を付し、以下、第1の実施形態の符号化構造構築部10と異なる構成について説明する。
(Second Embodiment)
FIG. 11 is a block diagram showing the configuration of the coded structure construction unit 10a according to the second embodiment of the present invention. The coded structure construction unit 10a is a functional unit that is applied in place of the coded structure construction unit 10 of the video coding apparatus 1 of the first embodiment. When the coded structure construction unit 10a of the second embodiment is applied, the code of the video coding device is replaced with "1" and represented by "1a". In the second embodiment, the same configurations as those in the first embodiment are designated by the same reference numerals, and the configurations different from those in the coded structure construction unit 10 of the first embodiment will be described below.

符号化構造構築部10aは、符号化対象フレーム選択部101、Iピクチャ選定部102a、参照グループ生成部103a、結合判定部104、ピクチャタイプ選定部105a、ピクチャタイプ記憶部106、ブロック出力部107、及び参照グループ記憶部108を備える。 The coded structure construction unit 10a includes a coded frame selection unit 101, an I picture selection unit 102a, a reference group generation unit 103a, a combination determination unit 104, a picture type selection unit 105a, a picture type storage unit 106, and a block output unit 107. And a reference group storage unit 108.

符号化構造構築部10aにおいて、Iピクチャ選定部102aは、フレーム群の最初のフレームをIピクチャとして選定する。参照グループ生成部103aは、初期値をi=0、j=0とし、フレーム群からフレーム番号が「2j」,「2j+2」,「2j+2(i+1)」の3枚のフレームを含む参照グループを生成することができなくなるまで、jに1を加算しつつ、jがN/2未満の間繰り返す。ここで、Nの値は、フレーム群に含まれるフレームに付与されるフレーム番号の最大値であり、フレーム群のフレーム数から「1」減算した値である。 In the coded structure construction unit 10a, the I picture selection unit 102a selects the first frame of the frame group as the I picture. The reference group generation unit 103a sets the initial values to i = 0 and j = 0, and sets a reference group including three frames whose frame numbers are "2j", "2j + 2 i ", and "2j + 2 (i + 1) " from the frame group. Repeat while j is less than N / 2, adding 1 to j until it can no longer be generated. Here, the value of N is the maximum value of the frame number given to the frame included in the frame group, and is a value obtained by subtracting "1" from the number of frames in the frame group.

また、参照グループ生成部103aは、選択したフレーム番号が「2j」,「2j+2」,「2j+2(i+1)」のフレームの組み合わせの各々において、3つのフレームをA,B,Cフレームとし、A,B,Cフレームを含む、iとjのインデックスが付いた参照グループRef[i][j]を生成する(ただし、A,B,Cフレームを含む参照グループを生成する場合、i=0に固定され、jのみが変数となる)。また、参照グループ生成部103aは、生成した参照グループRef[0][j]を参照グループ記憶部108に書き込んで記憶させる。 The reference group generation unit 103a, and "2j" is selected frame number, "2j + 2 i", in each of the combinations of the frame of the "2j + 2 (i + 1)", the three frames A, B, and C frame, A Generate a reference group Ref [i] [j] with indexes of i and j including frames B and C (however, when generating a reference group including frames A, B and C, set i = 0. It is fixed and only j is a variable). Further, the reference group generation unit 103a writes and stores the generated reference groups Ref [0] [j] in the reference group storage unit 108.

また、参照グループ生成部103aは、初期値をi=1,j=0として、参照グループRef[i−1][j]とRef[i−1][j+1]の両方において、結合判定部104が判定した判定結果が「True」となっている組み合わせの検出を、jに2を加算しつつ、jがN/2未満の間繰り返すことを、更に、iに1加算しつつ、iがdepth_max未満の間繰り返し行う。ここで、depth_maxは、予め定めらえる構築する符号化構造の階層数を示す値であり、3階層の場合、depth_maxは、「3」となる。 Further, the reference group generation unit 103a sets the initial value to i = 1, j = 0, and sets the combination determination unit 104 in both the reference groups Ref [i-1] [j] and Ref [i-1] [j + 1]. The detection of the combination in which the judgment result determined by is "True" is repeated while adding 2 to j and while j is less than N / 2, and further adding 1 to i, i is depth_max. Repeat for less than. Here, depth_max is a value indicating the number of layers of the coded structure to be constructed, which is predetermined, and in the case of three layers, depth_max is "3".

また、参照グループ生成部103aは、検出した参照グループRef[i−1][j]とRef[i−1][j+1]の組み合わせの各々において、Ref[i−1][j]の最初と最後のフレームと、Ref[i−1][j+1]の最後のフレームの3つのフレームをα,β,γフレームとして選択する。また、参照グループ生成部103aは、選択したα,β,γフレーム含む新たな参照グループを参照グループRef[i]「j/2」として参照グループ記憶部108に書き込んで記憶させる。 In addition, the reference group generation unit 103a is the first of Ref [i-1] [j] in each of the detected combinations of the reference groups Ref [i-1] [j] and Ref [i-1] [j + 1]. The last frame and the last frame of Ref [i-1] [j + 1] are selected as α, β, and γ frames. Further, the reference group generation unit 103a writes and stores a new reference group including the selected α, β, and γ frames in the reference group storage unit 108 as the reference group Ref [i] “j / 2”.

ピクチャタイプ選定部105aは、結合判定部104が出力する判定結果にしたがって、参照グループRef[i][j]に含まれるフレームのピクチャタイプを選定する。また、ピクチャタイプ選定部105aは、参照グループ生成部103aが、フレーム番号が「2j」,「2j+2」,「2j+2(i+1)」のフレームを選択できないと判定した場合、残りのフレームをPピクチャとして選定する。 The picture type selection unit 105a selects the picture type of the frame included in the reference groups Ref [i] [j] according to the determination result output by the combination determination unit 104. If the picture type selection unit 105a determines that the reference group generation unit 103a cannot select a frame having a frame number of "2j", "2j + 2 i ", or "2j + 2 (i + 1) ", the picture type selection unit 105a selects the remaining frame as a P picture. Select as.

また、ピクチャタイプ選定部105aは、全てのフレームについて、ピクチャタイプを選定した後、Pピクチャとして選定したフレームに対して、当該フレームに表示順で最も近い過去のPピクチャとして選定されたフレームを当該フレームの参照フレームとして選定する。表示順で最も近い過去のPピクチャがない場合、Iピクチャのフレームを当該フレームの参照フレームとして選定する。参照グループ記憶部108は、参照グループ生成部103aが生成した参照グループRef[i][j]を記憶する。 Further, the picture type selection unit 105a selects the picture type for all the frames, and then selects the frame selected as the past P picture closest to the frame in the display order with respect to the frame selected as the P picture. Select as the reference frame for the frame. If there is no past P picture closest to the display order, the frame of the I picture is selected as the reference frame of the frame. The reference group storage unit 108 stores the reference groups Ref [i] [j] generated by the reference group generation unit 103a.

(第2の実施形態の符号化構造構築処理)
次に、第2の実施形態の符号化構造構築部10aによる処理について説明する。図12及び図13は、符号化構造構築部10による符号化構造構築処理の流れを示すフローチャートである。図12と図13に示す処理は、符号Aで示される箇所で処理が接続される連続した処理である。図12に示す符号Aで示される箇所に至るまでの処理は、i=0で示される1階層目の符号化構造を構築する処理であり、図13に示す処理は、i=1,2で示される2階層目、3階層目の符号化構造を構築する処理である。
(Coded structure construction process of the second embodiment)
Next, the processing by the coded structure construction unit 10a of the second embodiment will be described. 12 and 13 are flowcharts showing the flow of the coded structure construction process by the coded structure construction unit 10. The processes shown in FIGS. 12 and 13 are continuous processes in which the processes are connected at the locations indicated by reference numerals A. The process up to the point indicated by the reference numeral A shown in FIG. 12 is the process of constructing the coded structure of the first layer indicated by i = 0, and the process shown in FIG. 13 is the process indicated by i = 1 and 2. This is a process for constructing the coded structure of the second and third layers shown.

符号化対象フレーム選択部101は、入力映像情報から予め定められるGOPのサイズにしたがう枚数のフレームを選択してフレーム群を生成する。符号化対象フレーム選択部101は、生成したフレーム群に対して表示順に「0」からフレーム番号を付与してIピクチャ選定部102aとブロック出力部107に出力する。Iピクチャ選定部102aは、フレーム群の最初のフレーム、すなわちフレーム番号0のフレームのピクチャタイプをIピクチャとして選定する。Iピクチャ選定部102aは、フレーム番号0のフレームをIピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる(ステップS301)。 The coded target frame selection unit 101 selects a number of frames according to a predetermined GOP size from the input video information to generate a frame group. The coded target frame selection unit 101 assigns a frame number from “0” to the generated frame group in the display order and outputs the frame number to the I picture selection unit 102a and the block output unit 107. The I-picture selection unit 102a selects the picture type of the first frame of the frame group, that is, the frame of frame number 0, as the I-picture. The I-picture selection unit 102a writes and stores information indicating that the frame having the frame number 0 is selected as the I-picture in the picture type storage unit 106 (step S301).

参照グループ生成部103aは、i=0,j=0とし(ステップS302)、フレーム群からフレーム番号が「2j」,「2j+2」,「2j+2(i+1)」の3つのフレームを選択できるか否かを判定する(ステップS303)。 The reference group generation unit 103a sets i = 0 and j = 0 (step S302), and whether or not three frames having frame numbers "2j", "2j + 2 i ", and "2j + 2 (i + 1) " can be selected from the frame group. (Step S303).

参照グループ生成部103aは、3枚のフレームを選択することができると判定した場合(ステップS303−YES)、参照グループ生成部103aは、3枚のフレームを表示順にA,B,Cフレームとして含む参照グループRef[0][j]を生成する。参照グループ生成部103aは、生成した参照グループRef[0][j]を参照グループ記憶部108に書き込んで記憶させる(ステップS305)。なお、当該参照グループにおいて判定対象フレームは、Bフレームとなる。 When the reference group generation unit 103a determines that three frames can be selected (step S303-YES), the reference group generation unit 103a includes the three frames as A, B, and C frames in the display order. Generate reference groups Ref [0] [j]. The reference group generation unit 103a writes and stores the generated reference groups Ref [0] [j] in the reference group storage unit 108 (step S305). The determination target frame in the reference group is the B frame.

結合判定部104は、参照グループ生成部103aによって参照グループ記憶部108に参照グループRef[0][j]の情報が書き込まれると、書き込まれた参照グループRef[0][j]に含まれるA,B,CフレームをS,M,Eフレームとして図4に示す結合判定処理を行う(ステップS306)。 When the information of the reference group Ref [0] [j] is written to the reference group storage unit 108 by the reference group generation unit 103a, the combination determination unit 104 includes A included in the written reference group Ref [0] [j]. , B, C frames are set as S, M, E frames, and the combination determination process shown in FIG. 4 is performed (step S306).

ピクチャタイプ選定部105aは、結合判定部104が出力する判定結果を判定する(ステップS307)。ピクチャタイプ選定部105aは、判定結果が「False」の場合(ステップS307−False)、参照グループRef[0][j]のBフレームとCフレームのピクチャタイプをPピクチャとして選定する。ピクチャタイプ選定部105aは、参照グループRef[0][j]のBフレームとCフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる(ステップS308)。 The picture type selection unit 105a determines the determination result output by the combination determination unit 104 (step S307). When the determination result is "False" (step S307-False), the picture type selection unit 105a selects the B frame and C frame picture types of the reference groups Ref [0] [j] as P pictures. The picture type selection unit 105a writes and stores information indicating that the B frame and the C frame of the reference groups Ref [0] [j] are selected as P pictures in the picture type storage unit 106 (step S308).

一方、ピクチャタイプ選定部105aは、判定結果が「True」の場合(ステップS307−True)、参照グループRef[0][j]のBフレームのピクチャタイプをAフレームとCフレームを参照フレームとするBピクチャとして選定する。ピクチャタイプ選定部105aは、参照グループRef[0][j]のBフレームをBピクチャとして選定したことを示す情報、及びAフレームとCフレームが参照フレームであることを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。また、ピクチャタイプ選定部105aは、参照グループRef[0][j]のCフレームのピクチャタイプをPピクチャとして選定する。ピクチャタイプ選定部105aは、参照グループRef[0][j]のCフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる(ステップS309)。 On the other hand, when the determination result is "True" (step S307-True), the picture type selection unit 105a sets the picture type of the B frame of the reference groups Ref [0] [j] as the reference frame A frame and the C frame. Select as B picture. The picture type selection unit 105a stores information indicating that the B frame of the reference group Ref [0] [j] is selected as the B picture and information indicating that the A frame and the C frame are reference frames. Write to 106 and memorize it. Further, the picture type selection unit 105a selects the picture type of the C frame of the reference group Ref [0] [j] as the P picture. The picture type selection unit 105a writes and stores information indicating that the C frame of the reference group Ref [0] [j] is selected as the P picture in the picture type storage unit 106 (step S309).

ステップS308及びステップS309の処理の後、ピクチャタイプ選定部105aは、処理を継続する指示情報を参照グループ生成部103aに出力する。参照グループ生成部103aは、jの値に「1」を加算し(ステップS310)、jの値がN/2未満か否かを判定する(ステップS311)。参照グループ生成部103aは、jの値がN/2未満であると判定した場合(ステップS311−YES)、ステップS303からの処理を繰り返す。一方、参照グループ生成部103aは、jの値がN/2未満でないと判定した場合(ステップS311−NO)、符号Aで示される箇所を介して図13に示す処理を開始する。 After the processing of step S308 and step S309, the picture type selection unit 105a outputs instruction information for continuing the processing to the reference group generation unit 103a. The reference group generation unit 103a adds "1" to the value of j (step S310), and determines whether or not the value of j is less than N / 2 (step S311). When the reference group generation unit 103a determines that the value of j is less than N / 2 (step S311-YES), the reference group generation unit 103a repeats the process from step S303. On the other hand, when the reference group generation unit 103a determines that the value of j is not less than N / 2 (step S311-NO), the reference group generation unit 103a starts the process shown in FIG. 13 via the portion indicated by the reference numeral A.

一方、参照グループ生成部103aは、3枚のフレームを選択することができないと判定した場合(ステップS303−NO)、フレーム群の残りのフレームをPピクチャとして選定させる指示情報をピクチャタイプ選定部105aに出力する。ピクチャタイプ選定部105aは、参照グループ生成部103aから当該指示情報を受けて、残りのフレームのピクチャタイプをPピクチャとして選定し、残りのフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる(ステップS304)。参照グループ生成部103aは、当該指示情報をピクチャタイプ選定部105aに出力し、その後、符号Aで示される箇所を介して図13に示す処理を開始する。 On the other hand, when the reference group generation unit 103a determines that the three frames cannot be selected (step S303-NO), the picture type selection unit 105a provides instruction information for selecting the remaining frames of the frame group as P pictures. Output to. The picture type selection unit 105a receives the instruction information from the reference group generation unit 103a, selects the picture type of the remaining frame as the P picture, and stores information indicating that the remaining frame is selected as the P picture. It is written and stored in the unit 106 (step S304). The reference group generation unit 103a outputs the instruction information to the picture type selection unit 105a, and then starts the process shown in FIG. 13 via the portion indicated by reference numeral A.

図13に示すように、参照グループ生成部103aは、i=1,j=0とし(ステップS312)、結合判定部104の判定結果記憶部112を参照し、参照グループRef[i−1][j]と、Ref[i−1][j+1]の判定結果が共に「True」であるか否かを判定する(ステップS313)。参照グループ生成部103aは、参照グループRef[i−1][j]と、Ref[i−1][j+1]の判定結果が共に「True」でないと判定した場合(ステップS313−NO)、処理をステップS318に進める。 As shown in FIG. 13, the reference group generation unit 103a sets i = 1, j = 0 (step S312), refers to the determination result storage unit 112 of the combination determination unit 104, and refers to the reference group Ref [i-1] [ It is determined whether or not the determination results of [j] and Ref [i-1] [j + 1] are both “True” (step S313). When the reference group generation unit 103a determines that both the determination results of the reference groups Ref [i-1] [j] and Ref [i-1] [j + 1] are not "True" (step S313-NO), the process To step S318.

一方、参照グループ生成部103aは、参照グループRef[i−1][j]と、Ref[i−1][j+1]の判定結果が共に「True」であると判定した場合(ステップS313−YES)、参照グループRef[i−1][j]の最初と最後のフレームと、参照グループRef[i−1][j+1]の最後のフレームの3つのフレームをα,β,γフレームとして選択する。参照グループ生成部103aは、選択したα,β,γフレームを含む参照グループRef[i][j/2]を生成し、生成した参照グループRef[i][j/2]を参照グループ記憶部108に書き込んで記憶させる(ステップS314)。 On the other hand, when the reference group generation unit 103a determines that the determination results of the reference groups Ref [i-1] [j] and Ref [i-1] [j + 1] are both "True" (step S313-YES). ), The first and last frames of the reference group Ref [i-1] [j] and the last frame of the reference group Ref [i-1] [j + 1] are selected as α, β, and γ frames. .. The reference group generation unit 103a generates a reference group Ref [i] [j / 2] including the selected α, β, γ frames, and uses the generated reference group Ref [i] [j / 2] as a reference group storage unit. It is written in 108 and stored (step S314).

結合判定部104は、参照グループ生成部103aによって参照グループ記憶部108に参照グループRef[i][j/2]の情報が書き込まれると、書き込まれた参照グループRef[i][j/2]に含まれるα,β,γフレームをS,M,Eフレームとして図4に示す結合判定処理を行う(ステップS315)。 When the information of the reference group Ref [i] [j / 2] is written in the reference group storage unit 108 by the reference group generation unit 103a, the combination determination unit 104 writes the reference group Ref [i] [j / 2]. The combination determination process shown in FIG. 4 is performed using the α, β, and γ frames included in the above as S, M, and E frames (step S315).

ピクチャタイプ選定部105aは、結合判定部104が出力する判定結果を判定する(ステップS316)。ピクチャタイプ選定部105aは、判定結果が「False」の場合(ステップS316−False)、処理をステップS318に進める指示情報を参照グループ生成部103aに出力する。 The picture type selection unit 105a determines the determination result output by the combination determination unit 104 (step S316). When the determination result is "False" (step S316-False), the picture type selection unit 105a outputs instruction information for advancing the process to step S318 to the reference group generation unit 103a.

一方、ピクチャタイプ選定部105aは、判定結果が「True」の場合(ステップS316−True)、参照グループRef[i][j/2]のβフレームのピクチャタイプをαフレームとγフレームを参照フレームとするBピクチャとして選定する。ピクチャタイプ選定部105aは、参照グループRef[i][j/2]のβフレームをBピクチャとして選定したことを示す情報、及びαフレームとγフレームが参照フレームであることを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。また、ピクチャタイプ選定部105aは、参照グループRef[i][j/2]のγフレームのピクチャタイプをPピクチャとして選定する。ピクチャタイプ選定部105aは、参照グループRef[i][j/2]のγフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。ピクチャタイプ選定部105aは、処理をステップS318に進める指示情報を参照グループ生成部103aに出力する(ステップS317)。 On the other hand, when the determination result is "True" (step S316-True), the picture type selection unit 105a refers to the α frame and the γ frame as the picture types of the β frames of the reference groups Ref [i] [j / 2]. Select as the B picture. The picture type selection unit 105a provides information indicating that the β frame of the reference group Ref [i] [j / 2] is selected as the B picture and information indicating that the α frame and the γ frame are reference frames. It is written in the storage unit 106 and stored. Further, the picture type selection unit 105a selects the picture type of the γ frame of the reference group Ref [i] [j / 2] as the P picture. The picture type selection unit 105a writes and stores information indicating that the γ frame of the reference group Ref [i] [j / 2] is selected as the P picture in the picture type storage unit 106. The picture type selection unit 105a outputs instruction information for advancing the process to step S318 to the reference group generation unit 103a (step S317).

参照グループ生成部103aは、jの値に「2」を加算し(ステップS318)、jの値がN/2未満であるか否かを判定する(ステップS319)。参照グループ生成部103aは、jの値がN/2未満であると判定した場合(ステップS319−YES)、ステップS313からの処理を繰り返す。 The reference group generation unit 103a adds "2" to the value of j (step S318), and determines whether or not the value of j is less than N / 2 (step S319). When the reference group generation unit 103a determines that the value of j is less than N / 2 (step S319-YES), the reference group generation unit 103a repeats the processing from step S313.

一方、参照グループ生成部103aは、jの値がN/2未満でないと判定した場合(ステップS319−NO)、iの値に「1」を加算し、j=0とする(ステップS320)。
参照グループ生成部103aは、iの値が、depth_max(ここでは、depth_max=3)未満であるか否かを判定する(ステップS321)。参照グループ生成部103aは、iの値が、depth_max未満であると判定した場合(ステップS321−YES)、ステップS313からの処理を繰り返す。一方、参照グループ生成部103aは、iの値が、depth_max未満でないと判定した場合(ステップS321−NO)、ピクチャタイプ選定部105aに、Pピクチャのフレームに対する参照フレームを選択させる指示情報を出力する。
On the other hand, when the reference group generation unit 103a determines that the value of j is not less than N / 2 (step S319-NO), "1" is added to the value of i to set j = 0 (step S320).
The reference group generation unit 103a determines whether or not the value of i is less than depth_max (here, depth_max = 3) (step S321). When the reference group generation unit 103a determines that the value of i is less than depth_max (step S321-YES), the reference group generation unit 103a repeats the process from step S313. On the other hand, when the reference group generation unit 103a determines that the value of i is not less than depth_max (step S321-NO), the reference group generation unit 103a outputs instruction information for causing the picture type selection unit 105a to select a reference frame for the frame of the P picture. ..

ピクチャタイプ選定部105aは、当該指示情報を受けて、Pピクチャとして選定したフレームの各々に対して、当該フレームに表示順で最も近い過去のPピクチャのフレームを当該フレームの参照フレームとして選定する。表示順で最も近い過去のPピクチャがない場合、Iピクチャのフレームを当該フレームの参照フレームとして選定する。ピクチャタイプ選定部105aは、各Pピクチャに対して選定した参照フレームの情報をピクチャタイプ記憶部106に書き込んで記憶させる(ステップS322)。 Upon receiving the instruction information, the picture type selection unit 105a selects the frame of the past P picture closest to the frame in the display order as the reference frame of the frame for each of the frames selected as the P picture. If there is no past P picture closest to the display order, the frame of the I picture is selected as the reference frame of the frame. The picture type selection unit 105a writes and stores the information of the reference frame selected for each P picture in the picture type storage unit 106 (step S322).

これにより、ピクチャタイプ記憶部106に、最終的に構築された符号化構造の情報が記憶されることになる。ブロック出力部107は、内部の記憶領域に一時的に符号化対象フレーム選択部101から受けたフレーム群を記憶しており、ピクチャタイプ記憶部106に記憶されている符号化構造に基づく順番で内部の記憶領域からフレームを読み出す。ブロック出力部107は、読み出したフレームの各々をラスタースキャンの順にCUブロックに分解して符号化対象ブロックとして出力し、符号化構造構築部10aは、1つのフレーム群についての処理を終了する。 As a result, the picture type storage unit 106 stores the information of the finally constructed coded structure. The block output unit 107 temporarily stores the frame group received from the coded target frame selection unit 101 in the internal storage area, and internally in the order based on the coded structure stored in the picture type storage unit 106. Read a frame from the storage area of. The block output unit 107 decomposes each of the read frames into CU blocks in the order of raster scan and outputs them as a coded target block, and the coded structure construction unit 10a ends the processing for one frame group.

(第2の実施形態の符号化構造構築処理の具体例)
次に、図14から図16を参照しつつ、図14(a)に示すフレーム群に、図12及び図13に示した第2の実施形態の符号化構造構築処理を適用した場合の例について説明する。符号化対象フレーム選択部101が、入力映像情報から図14(a)に示すフレーム群を生成する。当該フレーム群は、フレーム番号4とフレーム番号5のフレームにおいてシーンチェンジが含まれている。
(Specific example of the coded structure construction process of the second embodiment)
Next, with reference to FIGS. 14 to 16, an example in which the coded structure construction process of the second embodiment shown in FIGS. 12 and 13 is applied to the frame group shown in FIG. 14 (a). explain. The coded target frame selection unit 101 generates the frame group shown in FIG. 14A from the input video information. The frame group includes scene changes in the frames of frame number 4 and frame number 5.

図14(b)に示すように、Iピクチャ選定部102aによってフレーム番号0のフレームがIピクチャとして選定された後、参照グループ生成部103aによって、フレーム番号(0,1,2)のフレームを含む参照グループRef[0][0]が参照グループ記憶部108に書き込まれる(ステップS303,S305)。結合判定部104は、参照グループ記憶部108に書き込まれた参照グループRef[0][0]に対して図4に示す結合判定処理を行い、ここでは、シーンチェンジがないため、結合判定部104の評価値判定部111が「True」を出力したとする(ステップS315)。 As shown in FIG. 14B, after the frame of frame number 0 is selected as the I picture by the I picture selection unit 102a, the frame of the frame number (0, 1, 2) is included by the reference group generation unit 103a. The reference group Ref [0] [0] is written to the reference group storage unit 108 (steps S303 and S305). The combination determination unit 104 performs the combination determination process shown in FIG. 4 on the reference groups Ref [0] [0] written in the reference group storage unit 108. Here, since there is no scene change, the combination determination unit 104 It is assumed that the evaluation value determination unit 111 of the above outputs "True" (step S315).

ピクチャタイプ選定部105aは、結合判定部104が出力する判定結果が、「True」であるため、フレーム番号1のフレームのピクチャタイプをフレーム番号0とフレーム番号2のフレームを参照フレームとするBピクチャとして選定する。ピクチャタイプ選定部105は、フレーム番号2のフレームをBピクチャとして選定したことを示す情報、及びフレーム番号0とフレーム番号2のフレームが参照フレームであることを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる。 Since the determination result output by the combination determination unit 104 is "True", the picture type selection unit 105a is a B picture in which the picture type of the frame of frame number 1 is the frame of frame number 0 and the frame of frame number 2 is the reference frame. Select as. The picture type selection unit 105 writes in the picture type storage unit 106 information indicating that the frame of frame number 2 is selected as the B picture and information indicating that the frames of frame number 0 and frame number 2 are reference frames. Remember with.

また、ピクチャタイプ選定部105aは、フレーム番号2のフレームのピクチャタイプをPピクチャとして選定し、フレーム番号2のフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に書き込んで記憶させる(ステップS309)。 Further, the picture type selection unit 105a selects the picture type of the frame of the frame number 2 as the P picture, and writes and stores the information indicating that the frame of the frame number 2 is selected as the P picture in the picture type storage unit 106. (Step S309).

参照グループ生成部103aは、jの値がN/2未満の間、jに1を加算し、フレーム番号(2,3,4)のフレームを含む参照グループRef[0][1]、フレーム番号(4,5,6)のフレームを含む参照グループRef[0][2]、フレーム番号(6,7,8)のフレームを含む参照グループRef[0][3]、フレーム番号(8,9,10)のフレームを含む参照グループRef[0][4]を参照グループ記憶部108に書き込んで記憶させていく。結合判定部104は、新たな参照グループが参照グループ記憶部108に書き込まれるごとに、図4に示す結合判定処理を行う。その結果、図14(b)に示すように、シーンチェンジを含む参照グループRef[0][2]については、判定結果として「False」を出力し、参照グループRef[0][2]以外については「True」を出力する。 The reference group generation unit 103a adds 1 to j while the value of j is less than N / 2, and refers to the reference group Ref [0] [1] including the frame of the frame number (2, 3, 4), and the frame number. Reference group Ref [0] [2] including frames of (4,5,6), reference group Ref [0] [3] including frames of frame number (6,7,8), frame number (8,9) , 10) The reference group Ref [0] [4] including the frame is written in the reference group storage unit 108 and stored. The combination determination unit 104 performs the combination determination process shown in FIG. 4 every time a new reference group is written in the reference group storage unit 108. As a result, as shown in FIG. 14B, for the reference group Ref [0] [2] including the scene change, "False" is output as the determination result, and for the reference groups other than the reference groups Ref [0] [2]. Outputs "True".

その結果、ピクチャタイプ選定部105aは、フレーム番号1〜10のフレームについて図14(b)に示すようなピクチャタイプを選定する。すなわち、結合判定部104によって、「True」と判定された参照グループRef[0][0],Ref[0][1],Ref[0][3]、Ref[0][4]の各々の判定対象フレームのBフレームは、各々のAとCのフレームを参照するBピクチャとして選定され、Cフレームは、Pピクチャとして選定される。これに対して、結合判定部104によって、「False」と判定された参照グループRef[0][2]のフレームは、BフレームとCフレームは、Pピクチャとして選定される。 As a result, the picture type selection unit 105a selects the picture type as shown in FIG. 14 (b) for the frames of frame numbers 1 to 10. That is, each of the reference groups Ref [0] [0], Ref [0] [1], Ref [0] [3], and Ref [0] [4] determined to be "True" by the combination determination unit 104. The B frame of the determination target frame of is selected as a B picture that refers to each of the A and C frames, and the C frame is selected as a P picture. On the other hand, as for the frames of the reference group Ref [0] [2] determined to be "False" by the combination determination unit 104, the B frame and the C frame are selected as P pictures.

参照グループ生成部103aが、図13に示すように、i=1,j=0として(ステップS312)、最初に、結合判定部104の判定結果記憶部112に記憶されている参照グループRef[0][0]と、参照グループRef[0][1]の判定結果を参照する。参照グループRef[0][0]と、参照グループRef[0][1]の判定結果は、共に「True」であるため(ステップS313−YES)、参照グループ生成部103aは、参照グループRef[0][0]の最初と最後のフレーム、及び参照グループRef[0][1]の最後のフレーム、すなわちフレーム番号0,2,4のフレームをα、β,γフレームとして含む参照グループRef[1][0]を生成する。 As shown in FIG. 13, the reference group generation unit 103a sets i = 1, j = 0 (step S312), and first, the reference group Ref [0] stored in the determination result storage unit 112 of the combination determination unit 104. ] [0] and the determination result of the reference group Ref [0] [1] are referred to. Since the determination results of the reference group Ref [0] [0] and the reference group Ref [0] [1] are both “True” (step S313-YES), the reference group generation unit 103a can use the reference group Ref [0]. 0] The first and last frames of [0] and the last frame of the reference group Ref [0] [1], that is, the frames of frame numbers 0, 2, and 4 are included as α, β, and γ frames of the reference group Ref [ 1] Generate [0].

図15(c)に示すように、参照グループ生成部103aは、生成した参照グループRef[1][0]を参照グループ記憶部108に書き込んで記憶させる(ステップS314)。結合判定部104は、参照グループ記憶部108に書き込まれた参照グループRef[1][0]に対して図4に示す結合判定処理を行い、ここでは、シーンチェンジがないため、評価値判定部111は、「True」を出力したとする(ステップS315)。ピクチャタイプ選定部105aは、判定結果が「True」であるため(ステップS316−True)、参照グループRef[1][0]の判定対象フレームであるフレーム番号2のフレームのピクチャタイプをフレーム番号0とフレーム番号4のフレームを参照フレームとするBピクチャとして選定する。 As shown in FIG. 15C, the reference group generation unit 103a writes the generated reference groups Ref [1] and [0] to the reference group storage unit 108 and stores them (step S314). The combination determination unit 104 performs the combination determination process shown in FIG. 4 on the reference groups Ref [1] [0] written in the reference group storage unit 108, and since there is no scene change here, the evaluation value determination unit It is assumed that 111 outputs "True" (step S315). Since the determination result is "True" (step S316-True), the picture type selection unit 105a sets the picture type of the frame number 2 which is the determination target frame of the reference groups Ref [1] [0] to the frame number 0. And the frame of frame number 4 is selected as the B picture with the frame as the reference frame.

ピクチャタイプ記憶部106には、既に、フレーム番号2のフレームについて、Pピクチャであることを示す情報が書き込まれている。そのため、ピクチャタイプ選定部105aは、フレーム番号2のフレームをBピクチャとして選定したことを示す情報、及びフレーム番号0とフレーム番号4のフレームが参照フレームであることを示す情報をピクチャタイプ記憶部106に上書きして記憶させる。 Information indicating that the frame of the frame number 2 is a P picture has already been written in the picture type storage unit 106. Therefore, the picture type selection unit 105a stores information indicating that the frame of frame number 2 is selected as the B picture and information indicating that the frames of frame number 0 and frame number 4 are reference frames. Overwrite and memorize.

また、ピクチャタイプ選定部105aは、γフレームであるフレーム番号4のフレームのピクチャタイプをPピクチャとして選定する。ピクチャタイプ記憶部106には、既に、フレーム番号4のフレームについて、Pピクチャであることを示す情報が書き込まれているが、ピクチャタイプ選定部105aは、フレーム番号4のフレームをPピクチャとして選定したことを示す情報をピクチャタイプ記憶部106に上書きして記憶させる(ステップS317)。 Further, the picture type selection unit 105a selects the picture type of the frame number 4 which is the γ frame as the P picture. Information indicating that the frame of frame number 4 is a P picture has already been written in the picture type storage unit 106, but the picture type selection unit 105a has selected the frame of frame number 4 as a P picture. The information indicating that is overwritten in the picture type storage unit 106 and stored (step S317).

参照グループ生成部103aは、jの値に2を加算してj=2とし(ステップS318)、jの値がN/2(N=10)未満であるため(ステップS319−YES)、結合判定部104の判定結果記憶部112に記憶されている参照グループRef[0][2]と、参照グループRef[0][3]の判定結果を参照する。参照グループRef[0][2]の判定結果は「False」であるため、参照グループ生成部103aは、参照グループRef[0][2]と、参照グループRef[0][3]の判定結果が共に「True」でないと判定する(ステップS313−NO)。したがって、図15(c)に、説明の便宜上示している参照グループRef[1][1]は、参照グループ生成部103aによって生成されないことになる。 The reference group generation unit 103a adds 2 to the value of j to make j = 2 (step S318), and since the value of j is less than N / 2 (N = 10) (step S319-YES), the combination determination is made. The determination results of the reference group Ref [0] [2] and the reference group Ref [0] [3] stored in the determination result storage unit 112 of the unit 104 are referred to. Since the determination result of the reference group Ref [0] [2] is "False", the reference group generation unit 103a determines the determination results of the reference group Ref [0] [2] and the reference group Ref [0] [3]. Is not both "True" (step S313-NO). Therefore, the reference groups Ref [1] [1] shown in FIG. 15 (c) for convenience of explanation are not generated by the reference group generation unit 103a.

参照グループ生成部103aは、jの値に2を加算してj=4とし(ステップS318)、jの値がN/2(N=10)未満であるため(ステップS319−YES)、参照グループRef[0][4]と、参照グループRef[0][5]の判定結果を参照しようとする。しかし、参照グループRef[0][5]が存在しないため、参照グループ生成部103aは、参照グループRef[0][4]と、参照グループRef[0][5]の判定結果が、共に「True」でないと判定する(ステップS313−NO)。参照グループ生成部103aは、jの値に2を加算してj=6とし(ステップS318)、jの値がN/2(N=10)未満ではなくなるため(ステップS319−NO)、iの値に「1」を加算してi=1とし、j=0とする(ステップS320)。 The reference group generation unit 103a adds 2 to the value of j to make j = 4 (step S318), and since the value of j is less than N / 2 (N = 10) (step S319-YES), the reference group Attempts are made to refer to the determination results of Ref [0] [4] and the reference group Ref [0] [5]. However, since the reference group Ref [0] [5] does not exist, the reference group generation unit 103a determines that both the reference group Ref [0] [4] and the reference group Ref [0] [5] are ". It is determined that it is not "True" (step S313-NO). The reference group generation unit 103a adds 2 to the value of j to make j = 6 (step S318), and the value of j is not less than N / 2 (N = 10) (step S319-NO). Add "1" to the value to make i = 1 and j = 0 (step S320).

iの値は、depth_max(depth_max=3)未満であるため(ステップS321−YES)、参照グループ生成部103aは、結合判定部104の判定結果記憶部112に記憶されている参照グループRef[1][0]と、参照グループRef[1][1]の判定結果を参照しようとする。しかし、前述の通り、参照グループRef[1][1]は生成されていないため、参照グループ生成部103aは、参照グループRef[0][4]と、参照グループRef[0][5]の判定結果が、共に「True」でないと判定する(ステップS313−NO)。したがって、図15(d)に、説明の便宜上示している参照グループRef[2][0]は、参照グループ生成部103aによって生成されないことになる。 Since the value of i is less than depth_max (depth_max = 3) (step S321-YES), the reference group generation unit 103a has the reference group Ref [1] stored in the determination result storage unit 112 of the combination determination unit 104. Attempts are made to refer to the determination results of [0] and the reference groups Ref [1] [1]. However, as described above, since the reference group Ref [1] [1] has not been generated, the reference group generation unit 103a has the reference group Ref [0] [4] and the reference group Ref [0] [5]. It is determined that both of the determination results are not "True" (step S313-NO). Therefore, the reference groups Ref [2] and [0] shown in FIG. 15 (d) for convenience of explanation are not generated by the reference group generation unit 103a.

その後、ステップS318及びS319の処理が、jがN/2未満でなくなるまで繰り返され、更にステップS320においてiの値に「1」が加えられi=2,j=0となる。iの値は、depth_max未満であるため(ステップS321−YES)、処理が継続されるが、前述の通り、図15(d)に示す参照グループRef[2][0]は、参照グループ生成部103aによって生成されていないため、ステップS313の判定は、「NO」となる。再び、ステップS318及びS319の処理が、jが、N/2未満でなくなるまで繰り替えされ、ステップS320においてiの値に「1」が加えられて、i=3,j=0となる。参照グループ生成部103aは、iの値が、depth_max未満でなくなるため(ステップS321−NO)、ピクチャタイプ選定部105aに、Pピクチャのフレームに対する参照フレームを選択させる指示情報を出力する。 After that, the processes of steps S318 and S319 are repeated until j is not less than N / 2, and "1" is added to the value of i in step S320 to make i = 2, j = 0. Since the value of i is less than depth_max (step S321-YES), the processing is continued, but as described above, the reference groups Ref [2] and [0] shown in FIG. 15 (d) are the reference group generation units. Since it is not generated by 103a, the determination in step S313 is "NO". Again, the processing of steps S318 and S319 is repeated until j is no less than N / 2, and "1" is added to the value of i in step S320 to make i = 3, j = 0. Since the value of i is not less than depth_max (step S321-NO), the reference group generation unit 103a outputs instruction information for causing the picture type selection unit 105a to select a reference frame for the frame of the P picture.

ピクチャタイプ選定部105aは、当該指示情報を受けて、Pピクチャとして選定したフレームの各々に対して、当該フレームに表示順で最も近い過去のPピクチャのフレームを当該フレームの参照フレームとして選定する。表示順で最も近い過去のPピクチャがない場合、Iピクチャのフレームを当該フレームの参照フレームとして選定する。ピクチャタイプ選定部105aは、各Pピクチャに対して選定した参照フレームの情報をピクチャタイプ記憶部106に書き込んで記憶させる(ステップS322)。これにより、ピクチャタイプ記憶部106に、図16(e)に示す、2階層のBピクチャの階層構造を有する符号化構造が記憶されることになる。 Upon receiving the instruction information, the picture type selection unit 105a selects the frame of the past P picture closest to the frame in the display order as the reference frame of the frame for each of the frames selected as the P picture. If there is no past P picture closest to the display order, the frame of the I picture is selected as the reference frame of the frame. The picture type selection unit 105a writes and stores the information of the reference frame selected for each P picture in the picture type storage unit 106 (step S322). As a result, the picture type storage unit 106 stores the coded structure having the hierarchical structure of the two layers of B pictures shown in FIG. 16 (e).

上記の第2の実施形態の構成により、符号化構造構築部10aにおいて、符号化対象フレーム選択部101が、入力映像情報から予め定められるGOPのサイズにしたがう枚数のフレームを選択してフレーム群を生成する。Iピクチャ選定部102aは、フレーム群の最初のフレームをIピクチャとして選定する。参照グループ生成部103aは、i=0、j=0とし、フレーム群からフレーム番号が「2j」,「2j+2」,「2j+2(i+1)」のフレームをjに「1」を加算しつつ繰り返し選択し、選択した3枚のフレームをA,B,Cフレームとして含む参照グループRef[0][j]を生成する。結合判定部104の評価値算出部110は、参照グループに含まれるA,B,Cフレームに基づいて、L0コスト、L1コスト、Biコストという3つの評価値を算出する。評価値判定部111は、BiコストとL1コストのうち値の小さい方を選択し、L0コストの値を基準とした相対値と、予め定められる相対評価用閾値Th_min,Th_maxとに基づいて、判定対象フレームであるBフレームと、AとCフレームの参照関係を結合するか否かを判定する。また、評価値判定部111は、相対値が、Th_minの値以上であって、かつTh_maxの値以下の範囲に含まれる場合、更に、Biコストの値と、絶対評価用閾値Th_absとに基づいて、判定対象フレームであるBフレームと、AとCフレームの参照関係を結合するか否かを判定する。ピクチャタイプ選定部105aは、評価値判定部111が、Bフレームと、AとCフレームの参照関係を結合すると判定した場合、Bフレームを、AとCフレームを参照フレームとするBピクチャとして選定する。すなわち、符号化構造構築部10aでは、実際の符号化を行うような演算を行っておらず、3つのフレームに基づいて3つの評価値を算出し、算出した3つの評価値に基づいて、3つのフレームの参照関係を結合するか否かを判定している。このため、第2の実施形態の符号化構造構築部10aでは、符号化効率の高い符号化構造を低演算量で求めることが可能となる。 According to the configuration of the second embodiment described above, in the coding structure construction unit 10a, the coding target frame selection unit 101 selects a number of frames according to a predetermined GOP size from the input video information to form a frame group. Generate. The I-picture selection unit 102a selects the first frame of the frame group as the I-picture. The reference group generation unit 103a sets i = 0 and j = 0, and repeats the frames whose frame numbers are "2j", "2j + 2 i ", and "2j + 2 (i + 1) " from the frame group while adding "1" to j. A reference group Ref [0] [j] is generated which is selected and includes the three selected frames as A, B, and C frames. The evaluation value calculation unit 110 of the combination determination unit 104 calculates three evaluation values, L0 cost, L1 cost, and Bi cost, based on the A, B, and C frames included in the reference group. The evaluation value determination unit 111 selects the smaller value of the Bi cost and the L1 cost, and determines based on the relative value based on the value of the L0 cost and the predetermined relative evaluation thresholds Th_min and Th_max. It is determined whether or not the reference relationship between the B frame, which is the target frame, and the A and C frames is combined. Further, when the relative value is not more than the value of Th_min and is included in the range not more than the value of Th_max, the evaluation value determination unit 111 further bases on the value of Bi cost and the absolute evaluation threshold Th_abs. , It is determined whether or not the reference relationship between the B frame, which is the determination target frame, and the A and C frames is combined. When the evaluation value determination unit 111 determines that the reference relationship between the B frame and the A and C frames is combined, the picture type selection unit 105a selects the B frame as the B picture with the A and C frames as the reference frames. .. That is, the coded structure construction unit 10a does not perform an operation that actually performs coding, calculates three evaluation values based on three frames, and based on the calculated three evaluation values, 3 It is determined whether or not to combine the reference relationships of two frames. Therefore, in the coded structure construction unit 10a of the second embodiment, it is possible to obtain a coded structure having high coding efficiency with a low calculation amount.

また、参照グループ生成部103aは、評価値判定部111が、判定対象フレームと最初と最後のフレームの参照関係を結合すると判定した隣接する2つの参照グループを結合して重複するフレームを判定対象フレームとする新たな参照グループを生成することを繰り返す。結合判定部104は、参照グループ生成部103aが、新たに生成した参照グループのα,β,γフレームに基づいて、結合判定処理を行う。これにより、第2の実施形態の符号化構造構築部10aでは、2階層以上の深い階層の符号化構造を構築することが可能となっており、符号化効率を向上させることが可能となっている。 Further, the reference group generation unit 103a combines two adjacent reference groups determined by the evaluation value determination unit 111 to combine the reference relationship between the determination target frame and the first and last frames, and determines the overlapping frame. Repeat the process of creating a new reference group. The coupling determination unit 104 performs the coupling determination processing based on the α, β, and γ frames of the newly generated reference group by the reference group generation unit 103a. As a result, the coded structure construction unit 10a of the second embodiment can construct a coded structure having two or more layers deep, and can improve the coding efficiency. There is.

また、第1及び第2の実施形態の符号化構造構築部10,10aでは、評価値として、フレーム間において動き探索を行った場合の絶対誤差和の最小値を算出しており、動きベクトルのみではないため、複雑な入力映像に対しても精度よく結合判定を行うことが可能となっている。このため、第1及び第2の実施形態の符号化構造構築部10,10aは、符号化効率の高い符号化構造を低演算量で求めることを可能としている。 Further, in the coded structure construction units 10 and 10a of the first and second embodiments, the minimum value of the absolute error sum when the motion search is performed between frames is calculated as the evaluation value, and only the motion vector is calculated. Therefore, it is possible to accurately perform the combination judgment even for a complicated input video. Therefore, the coded structure construction units 10 and 10a of the first and second embodiments can obtain a coded structure having high coding efficiency with a low calculation amount.

第1及び第2の実施形態の符号化構造構築部10,10aでは、図4を参照して説明したように、ステップS207の絶対評価用閾値を用いたBiコストの絶対評価を行う前に、ステップS204において、L0コストを基準とした相対評価を行っている。このため、ロバストな判定を実現することができている。これに対して、非特許文献1に記載の技術では、評価値として、符号化コストの最小値のみを用いた絶対評価を行うようになっている。そのため、非特許文献1に記載の技術の手法を、図9(ii)及び(iii)に示すフレームに適用した場合、インターコストが十分に大きいと仮定すると、どちらも同じ「150」の値が算出されることになる。したがって、非特許文献1に記載の技術では、第1及び第2の実施形態の評価値判定部111のように、図9(ii)の方を結合しないとし、図9(iii)の方を結合するとする異なる判定を行うことができない。 In the coded structure construction units 10 and 10a of the first and second embodiments, as described with reference to FIG. 4, before performing the absolute evaluation of the Bi cost using the absolute evaluation threshold value in step S207, In step S204, a relative evaluation is performed based on the L0 cost. Therefore, a robust determination can be realized. On the other hand, in the technique described in Non-Patent Document 1, absolute evaluation is performed using only the minimum value of the coding cost as the evaluation value. Therefore, when the technique of the technique described in Non-Patent Document 1 is applied to the frames shown in FIGS. 9 (ii) and 9 (iii), assuming that the intercost is sufficiently large, the same value of "150" is obtained in both cases. It will be calculated. Therefore, in the technique described in Non-Patent Document 1, unlike the evaluation value determination unit 111 of the first and second embodiments, FIG. 9 (ii) is not combined, and FIG. 9 (iii) is used. It is not possible to make different determinations to combine.

図9(ii)及び(iii)の双方において結合するとした場合、図9(iii)では、Mフレームにおいて、同シーンであるEフレームを参照するメリットがあるため結合することが有効と考えられる。これに対して、図9(ii)では、Mフレームと、Eフレームとは異なるシーンとなるため、誤った判定となる可能性が高い。結合しないとした場合、逆に、図9(iii)が誤った判定となる可能性が高くなる。上述したように、第1及び第2の実施形態における評価値判定部111では、図9(ii)の方を結合しないとし、図9(iii)の方を結合するとする異なる判定を行うことができるため、どちらのケースに対しても符号化効率を向上させることができる。これは、Mフレームに着目した際に、Eフレームとの相関が高い、すなわちL0コストよりも、L1コストまたはBiコストが十分小さい場合に結合するメリットが得られるということを反映した評価となっているためである。 When combining in both FIGS. 9 (ii) and 9 (iii), it is considered effective to combine in FIG. 9 (iii) because there is a merit of referring to the E frame which is the same scene in the M frame. On the other hand, in FIG. 9 (ii), since the scenes of the M frame and the E frame are different, there is a high possibility that the determination will be erroneous. If they are not combined, on the contrary, there is a high possibility that FIG. 9 (iii) is an erroneous determination. As described above, the evaluation value determination unit 111 in the first and second embodiments may make a different determination that the one shown in FIG. 9 (ii) is not combined and the one shown in FIG. 9 (iii) is combined. Therefore, the coding efficiency can be improved in both cases. This is an evaluation that reflects the fact that when focusing on the M frame, the merit of combining is obtained when the correlation with the E frame is high, that is, when the L1 cost or the Bi cost is sufficiently smaller than the L0 cost. Because it is.

また、上記の第1及び第2の実施形態において、結合判定部104は、参照グループ生成部103,103aが生成する参照グループの判定対象フレームと、最初と最後のフレームの3枚のフレームを単位として結合判定処理を行うことを前提としているが、本発明の構成は、当該実施の形態に限られない。例えば、非特許文献1に記載の技術に対して適用するようにしてもよい。上述したように、非特許文献1に記載の技術では、基準フレームと、選択したPフレームとの間に、これらを参照する中間フレームを定義する。基準フレームと中間フレームとの間に位置するフレームに対して、これらのフレームを基準フレームと中間フレームとを参照するBピクチャとした場合のコストを算出している。また、中間フレームとPピクチャとの間に位置するフレームに対して、これらのフレームを基準フレームと中間フレームとを参照するBピクチャとした場合のコストを算出している。そして、算出したコストが最小となる組み合わせを最終的な符号化構造として選択している。これらのコストに替えて、非特許文献1に技術に結合判定部104を適用し、結合判定部104が算出する3つの評価値を用いて符号化構造を構築するようにしてもよい。 Further, in the first and second embodiments described above, the combination determination unit 104 units the determination target frame of the reference group generated by the reference group generation units 103 and 103a and the three frames of the first and last frames. However, the configuration of the present invention is not limited to the embodiment, although it is premised that the combination determination process is performed. For example, it may be applied to the technique described in Non-Patent Document 1. As described above, in the technique described in Non-Patent Document 1, an intermediate frame that refers to the reference frame and the selected P frame is defined between the reference frame and the selected P frame. For the frames located between the reference frame and the intermediate frame, the cost is calculated when these frames are B pictures that refer to the reference frame and the intermediate frame. Further, for the frame located between the intermediate frame and the P picture, the cost is calculated when these frames are B pictures that refer to the reference frame and the intermediate frame. Then, the combination that minimizes the calculated cost is selected as the final coding structure. Instead of these costs, the coupling determination unit 104 may be applied to the technique in Non-Patent Document 1 to construct a coded structure using the three evaluation values calculated by the coupling determination unit 104.

なお、上記の第1及び第2の実施形態では、結合判定の結果にしたがって、BフレームをPピクチャとして選定したり、CフレームをPピクチャとして選定したり、γフレームをPピクチャとして選定したり、また、3つのフレームを選択することができない場合に、残りのフレームをPピクチャとして選定したりしているが、本発明の構成は、当該実施の形態に限られない。例えば、Iピクチャから予め定められる間隔で、事前にPピクチャとするフレームを選定しておいてもよいし、結合判定の結果、Bピクチャとするフレームを全て選定した後、IピクチャとBピクチャのフレーム以外のフレームをPピクチャとするようにしてもよい。 In the first and second embodiments described above, the B frame is selected as the P picture, the C frame is selected as the P picture, and the γ frame is selected as the P picture according to the result of the combination determination. Further, when three frames cannot be selected, the remaining frames are selected as P pictures, but the configuration of the present invention is not limited to the embodiment. For example, frames to be P-pictures may be selected in advance at predetermined intervals from I-pictures, or after all frames to be B-pictures are selected as a result of the combination determination, the I-pictures and B-pictures may be selected. A frame other than the frame may be a P picture.

また、上記の第1及び第2の実施形態では、3枚の連続するフレームを参照グループとして生成するようにしているが、3枚以上であってもよい。 Further, in the first and second embodiments described above, three consecutive frames are generated as a reference group, but the number may be three or more.

また、上記の第1及び第2の実施形態では、隣接する参照グループにおいて重複するフレームが1枚になるように、隣接する参照グループを生成するようにしているが、1枚以上のフレームが重複するように隣接する参照グループを生成してもよい。複数枚のフレームが重複する場合、重複しているフレームのいずれかから判定対象フレームが選択されることになる。 Further, in the first and second embodiments described above, adjacent reference groups are generated so that there is one overlapping frame in the adjacent reference group, but one or more frames are duplicated. Adjacent reference groups may be generated as such. When a plurality of frames overlap, the judgment target frame is selected from any of the overlapping frames.

また、上記の第1及び第2の実施形態において参照グループ生成部103,103aは、隣接する参照グループの判定結果に基づいて、新たな参照グループを生成して2階層以上の符号化構造を構築するようになっているが、1階層のみを構築する処理を行うようにしてもよい。 Further, in the first and second embodiments described above, the reference group generation units 103 and 103a generate a new reference group based on the determination result of the adjacent reference group to construct a coded structure having two or more layers. However, the process of constructing only one layer may be performed.

また、上記の第1及び第2の実施形態において参照グループ生成部103,103aは、表示順で過去の隣接する参照グループを結合して新たな参照グループを生成するようにしているが、本発明の実施の形態は、当該実施の形態に限られない。例えば、表示順で未来の隣接する参照グループを結合してもよいし、過去と未来の双方で隣接する参照グループを結合してもよい。 Further, in the first and second embodiments described above, the reference group generation units 103 and 103a combine past adjacent reference groups in the display order to generate a new reference group. The embodiment of the above is not limited to the embodiment. For example, adjacent reference groups in the future may be combined in display order, or adjacent reference groups in both the past and future may be combined.

また、上記の第1及び第2の実施形態において、評価値判定部111は、相対評価用閾値であるTh_min及びTh_max、並びに絶対評価用閾値であるTh_absに基づく判定を行っている。この判定において、評価値判定部111は、Th_min未満であるか否か、Th_maxを超過しているか否か、Th_abs未満であるか否かに基づく判定を行っているが、未満であるか否か、超過しているか否かという判定は、一例であり、Th_min以下であるか否か、Th_max以上であるか否か、Th_abs以下であるか否かに基づいて判定するようにしてもよい。 Further, in the first and second embodiments described above, the evaluation value determination unit 111 makes a determination based on the relative evaluation thresholds Th_min and Th_max and the absolute evaluation threshold Th_abs. In this determination, the evaluation value determination unit 111 makes a determination based on whether or not it is less than Th_min, whether or not it exceeds Th_max, and whether or not it is less than Th_abs, but whether or not it is less than. The determination as to whether or not the amount is exceeded is an example, and the determination may be made based on whether or not it is Th_min or less, whether or not it is Th_max or more, and whether or not it is Th_abs or less.

上述した第1及び第2の実施形態における映像符号化装置1,1aをコンピュータで実現するようにしてもよい。その場合、この機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現してもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含んでもよい。また上記プログラムは、前述した機能の一部を実現するためのものであってもよく、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであってもよく、FPGA(Field Programmable Gate Array)等のプログラマブルロジックデバイスを用いて実現されるものであってもよい。 The video coding devices 1 and 1a according to the first and second embodiments described above may be realized by a computer. In that case, a program for realizing this function may be recorded on a computer-readable recording medium, and the program recorded on the recording medium may be read by a computer system and executed. The term "computer system" as used herein includes hardware such as an OS and peripheral devices. Further, the "computer-readable recording medium" refers to a portable medium such as a flexible disk, a magneto-optical disk, a ROM, or a CD-ROM, or a storage device such as a hard disk built in a computer system. Further, a "computer-readable recording medium" is a communication line for transmitting a program via a network such as the Internet or a communication line such as a telephone line, and dynamically holds the program for a short period of time. It may also include a program that holds a program for a certain period of time, such as a volatile memory inside a computer system that serves as a server or a client in that case. Further, the above program may be for realizing a part of the above-mentioned functions, and may be further realized for realizing the above-mentioned functions in combination with a program already recorded in the computer system. It may be realized by using a programmable logic device such as FPGA (Field Programmable Gate Array).

以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。 Although the embodiments of the present invention have been described in detail with reference to the drawings, the specific configuration is not limited to this embodiment, and the design and the like within a range not deviating from the gist of the present invention are also included.

10…符号化構造構築部,101…符号化対象フレーム選択部,102…Iピクチャ選定部,103…参照グループ生成部,104…結合判定部,105…ピクチャタイプ選定部,106…ピクチャタイプ記憶部,107…ブロック出力部,110…評価値算出部,111…評価値判定部,112…判定結果記憶部 10 ... Coded structure construction unit, 101 ... Coded frame selection unit, 102 ... I picture selection unit, 103 ... Reference group generation unit, 104 ... Combination determination unit, 105 ... Picture type selection unit, 106 ... Picture type storage unit , 107 ... Block output unit, 110 ... Evaluation value calculation unit, 111 ... Evaluation value judgment unit, 112 ... Judgment result storage unit

Claims (8)

フレーム間予測符号化を行う映像符号化装置であって、
入力映像情報から取得されるフレーム群から、予め定められる3枚以上の枚数の連続するフレームを含む参照グループを生成する参照グループ生成部と、
前記参照グループ生成部が生成する前記参照グループの最初と最後の前記フレームと、前記最初と最後のフレームの間のいずれか1つの判定対象フレームとに基づいて、前記フレーム間の誤差に関する評価値を算出する評価値算出部と、
前記評価値算出部が算出する前記評価値のうち前記判定対象フレームと前記最初のフレームとの間の前記評価値と、前記判定対象フレームと前記最後のフレーム間の評価値、若しくは前記判定対象フレームと前記最初のフレーム及び前記最後のフレーム間の評価値のうち小さいほうから求められる相対値に基づいて前記判定対象フレームと前記最初と最後のフレームとの参照関係を結合するか否かを判定する評価値判定部と、
前記評価値判定部の判定結果に基づいて、前記フレーム群に含まれる前記フレームのピクチャタイプを選定するピクチャタイプ選定部と、
を備え
前記評価値判定部は、前記相対値が第1の相対評価用閾値未満であった場合、結合すると判定する映像符号化装置。
A video coding device that performs inter-frame predictive coding.
A reference group generation unit that generates a reference group including a predetermined number of three or more consecutive frames from a frame group acquired from input video information.
Based on the first and last frames of the reference group generated by the reference group generation unit and any one of the determination target frames between the first and last frames, the evaluation value regarding the error between the frames is determined. Evaluation value calculation unit to be calculated and
Of the evaluation values calculated by the evaluation value calculation unit, the evaluation value between the determination target frame and the first frame, the evaluation value between the determination target frame and the last frame, or the determination target frame. determining whether to combine the reference relationship between the first frame and the before and SL determination target frame based on the relative value calculated from the smaller among the evaluation values between the last frame first and last frame and Evaluation value judgment unit and
A picture type selection unit that selects a picture type of the frame included in the frame group based on the determination result of the evaluation value determination unit, and
Equipped with a,
The evaluation value determination unit is a video coding device that determines that the relative values are combined when the relative values are less than the first relative evaluation threshold value .
前記評価値算出部は、
前記判定対象フレームと前記最初のフレームとの間の前記フレーム間の誤差に関する第1の片方向評価値と、前記判定対象フレームと前記最後のフレームとの間の前記フレーム間の誤差に関する第2の片方向評価値と、前記判定対象フレームと前記最初と最後のフレーム双方との間の前記フレーム間の誤差に関する双方向評価値とを算出し、
前記評価値判定部は、
前記第2の片方向評価値と前記双方向評価値のうち小さい方の評価値を選択し、選択した前記評価値の前記第1の片方向評価値に対する相対的な値の大きさとして前記相対値を算出し、算出した前記相対値と、予め定められる相対評価用閾値とに基づいて、前記判定対象フレームと前記最初と最後のフレームとの参照関係を結合するか否かを判定する、請求項1に記載の映像符号化装置。
The evaluation value calculation unit
A first one-way evaluation value regarding an error between the determination target frame and the first frame, and a second regarding an error between the determination target frame and the last frame. A one-way evaluation value and a two-way evaluation value regarding an error between the frames to be determined and both the first and last frames are calculated.
The evaluation value determination unit
The smaller evaluation value of the second one-way evaluation value and the two-way evaluation value is selected, and the relative value of the selected evaluation value relative to the first one-way evaluation value is set. A claim for calculating a value and determining whether or not to combine a reference relationship between the determination target frame and the first and last frames based on the calculated relative value and a predetermined relative evaluation threshold value. Item 2. The video coding apparatus according to item 1.
前記予め定められる相対評価用閾値は、さらに前記第1の相対評価用閾値よりも値の大きい第2の相対評価用閾値を含んでおり、
前記評価値判定部は
記相対値が、前記第1の相対評価用閾値以上で前記第2の相対評価用閾値以下の値である場合、前記双方向評価値と、予め定められる絶対評価用閾値とに基づいて、前記判定対象フレームと前記最初と最後のフレームとの参照関係を結合するか否かを判定する、請求項2に記載の映像符号化装置。
The predetermined relative evaluation threshold value further includes a second relative evaluation threshold value having a value larger than that of the first relative evaluation threshold value.
The evaluation value determination section,
Before SL relative value, when the a first value below the second relative evaluation threshold value relative evaluation threshold or more, and the bidirectional evaluation value, based on an absolute evaluation threshold defined in advance, The video coding apparatus according to claim 2, wherein it is determined whether or not the reference relationship between the determination target frame and the first and last frames is combined.
前記参照グループ生成部は、
前記評価値判定部により結合すると判定された前記参照グループの最初の前記フレーム、または最後の前記フレームが前記判定対象フレームとなるように、当該参照グループを含み前記予め定められる3枚以上の枚数よりも多い枚数の連続するフレームを含む新たな前記参照グループを生成し、
前記評価値算出部は、
前記新たな参照グループの最初と最後の前記フレームと、前記判定対象フレームとに基づいて、前記フレーム間の誤差に関する前記評価値を算出し、
前記評価値判定部は、
前記評価値算出部が算出する前記評価値のうち前記新たな参照グループの前記判定対象フレームと前記最初のフレームとの間の前記評価値と、前記新たな参照グループの判定対象フレームと前記最後のフレーム間の評価値、若しくは前記新たな参照グループの判定対象フレームと前記最初のフレーム及び前記最後のフレーム間の評価値のうち小さいほうから求められる相対値に基づいて前新たな参照グループの判定対象フレームと前記最初と最後のフレームとの参照関係を結合するか否かを判定し、前記相対値が第1の相対評価用閾値未満であった場合、結合すると判定する、請求項1から3のいずれか一項に記載の映像符号化装置。
The reference group generation unit
From the predetermined number of three or more sheets including the reference group so that the first frame or the last frame of the reference group determined to be combined by the evaluation value determination unit becomes the determination target frame. Generates a new reference group that also contains a large number of consecutive frames,
The evaluation value calculation unit
Based on the first and last frames of the new reference group and the determination target frame, the evaluation value regarding the error between the frames is calculated.
The evaluation value determination unit
Among the evaluation values calculated by the evaluation value calculation unit, the evaluation value between the determination target frame and the first frame of the new reference group, the determination target frame of the new reference group, and the last frame. evaluation value between frames, or the determination of the reference group before SL new based on the relative value calculated from the smaller among the evaluation values between the new reference group determination target frame and the first frame and the last frame determines whether to combine the reference relationship between the target frame beginning and ending frames, if the relative value is less than the first relative evaluation threshold, determines that binds, claims 1 to 3 The video coding apparatus according to any one of the above.
前記参照グループ生成部は、
前記参照グループに隣接する他の参照グループを生成する際、当該参照グループの最後の前記フレームが、前記隣接する他の参照グループの最初の前記フレームとなるように重複させて前記予め定められる3枚以上の枚数の連続するフレームを含む前記参照グループを生成しており、
隣接する2つの前記参照グループの双方において前記評価値判定部が前記判定対象フレームと前記最初と最後のフレームとの参照関係を結合すると判定する場合、当該隣接する2つの前記参照グループを結合して前記新たな参照グループを生成し、重複する前記フレームを前記判定対象フレームとする、請求項4に記載の映像符号化装置。
The reference group generation unit
When generating another reference group adjacent to the reference group, the three predetermined frames are overlapped so that the last frame of the reference group becomes the first frame of the other adjacent reference group. The reference group including the above number of consecutive frames is generated.
When the evaluation value determination unit determines that the reference relationship between the determination target frame and the first and last frames is combined in both of the two adjacent reference groups, the two adjacent reference groups are combined. The video coding apparatus according to claim 4, wherein the new reference group is generated, and the overlapping frames are set as the determination target frames.
前記参照グループ生成部は、
予め定めらる構築する符号化構造の階層数の値にしたがって、前記新たな参照グループを生成することを繰り返す、請求項5に記載の映像符号化装置。
The reference group generation unit
According to the hierarchy number of values of the coding structure to build Ru been predetermined et al, repeated to generate the new reference group, the image encoding apparatus according to claim 5.
前記ピクチャタイプ選定部は、
前記入力映像情報から前記フレーム群を取得し、取得した前記フレーム群の最初のフレームをIピクチャとして選定するIピクチャ選定部を備え、
前記ピクチャタイプ選定部は、
前記評価値判定部が、前記判定対象フレームと前記最初と最後のフレームとの参照関係を結合すると判定する場合、前記判定対象フレームを前記最初と最後のフレームを参照フレームとするBピクチャとして選定し、
前記Iピクチャ、または前記Bピクチャとして選定されていない前記フレームをPピクチャとして選定し、前記フレーム群の表示順において、選定した前記フレームに最も近い過去の前記Pピクチャの前記フレームを、選定した前記フレームの前記参照フレームとし、選定した前記フレームに最も近い過去の前記Pピクチャの前記フレームがない場合、前記Iピクチャの前記フレームを、選定した前記フレームの前記参照フレームとする、請求項1から6のいずれか一項に記載の映像符号化装置。
The picture type selection unit
It is provided with an I-picture selection unit that acquires the frame group from the input video information and selects the first frame of the acquired frame group as an I-picture.
The picture type selection unit
When the evaluation value determination unit determines that the reference relationship between the determination target frame and the first and last frames is combined, the determination target frame is selected as a B picture having the first and last frames as reference frames. ,
The I picture or the frame not selected as the B picture is selected as the P picture, and the frame of the past P picture closest to the selected frame in the display order of the frame group is selected. Claims 1 to 6 are the reference frame of the frame, and when there is no frame of the past P picture closest to the selected frame, the frame of the I picture is the reference frame of the selected frame. The video coding apparatus according to any one of the above.
前記予め定められる3枚以上の枚数は、3枚である、請求項1から7のいずれか一項に記載の映像符号化装置。 The video coding apparatus according to any one of claims 1 to 7, wherein the predetermined number of 3 or more sheets is 3.
JP2017074619A 2017-04-04 2017-04-04 Video coding device Active JP6767299B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017074619A JP6767299B2 (en) 2017-04-04 2017-04-04 Video coding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017074619A JP6767299B2 (en) 2017-04-04 2017-04-04 Video coding device

Publications (2)

Publication Number Publication Date
JP2018182393A JP2018182393A (en) 2018-11-15
JP6767299B2 true JP6767299B2 (en) 2020-10-14

Family

ID=64276146

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017074619A Active JP6767299B2 (en) 2017-04-04 2017-04-04 Video coding device

Country Status (1)

Country Link
JP (1) JP6767299B2 (en)

Also Published As

Publication number Publication date
JP2018182393A (en) 2018-11-15

Similar Documents

Publication Publication Date Title
JP7225381B2 (en) Method and apparatus for processing video signals based on inter-prediction
JP7096896B2 (en) Methods and equipment for video coding
JP5580453B2 (en) Direct mode encoding and decoding apparatus
JP4663792B2 (en) Apparatus and method for encoding and decoding multi-view video
JP5197591B2 (en) VIDEO ENCODING METHOD AND DECODING METHOD, DEVICE THEREOF, THEIR PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
US20080240247A1 (en) Method of encoding and decoding motion model parameters and video encoding and decoding method and apparatus using motion model parameters
JP2022514923A (en) Video decoding and encoding methods, programs, and equipment
JP2021517392A5 (en)
JP2010515400A (en) Multi-view video encoding and decoding method and apparatus using global difference vector
JP2004056823A (en) Motion vector encoding/decoding method and apparatus
CA2576690A1 (en) Method and device for motion estimation and compensation for panorama image
KR100584603B1 (en) Direct mode motion prediction method and apparatus for multi-view video
JP2021517798A (en) Video processing method based on inter-prediction mode and equipment for that
RU2680204C2 (en) Method and device for inducing motion information between temporal points of sub prediction unit
US11838519B2 (en) Image encoding/decoding method and apparatus for signaling image feature information, and method for transmitting bitstream
JP2011029863A (en) Decoding processing method
JP2021518093A (en) Subblock motion vector prediction method, its device and computer program
JP3466162B2 (en) Image decoding apparatus and image decoding method
JP6626319B2 (en) Encoding device, imaging device, encoding method, and program
JP6767299B2 (en) Video coding device
JP5711514B2 (en) Encoding device, decoding device, encoding method, decoding method, encoding program, and decoding program
JP6767300B2 (en) Video coding device
JP6386466B2 (en) Video encoding apparatus and method, and video decoding apparatus and method
JP2006013754A (en) Dynamic image coder and dynamic image decoder
JP5281597B2 (en) Motion vector prediction method, motion vector prediction apparatus, and motion vector prediction program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190628

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200622

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200707

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200904

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200917

R150 Certificate of patent or registration of utility model

Ref document number: 6767299

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150