Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7148236B2 - Encoding device and its control method and program - Google Patents
[go: Go Back, main page]

JP7148236B2 - Encoding device and its control method and program - Google Patents

Encoding device and its control method and program Download PDF

Info

Publication number
JP7148236B2
JP7148236B2 JP2017208511A JP2017208511A JP7148236B2 JP 7148236 B2 JP7148236 B2 JP 7148236B2 JP 2017208511 A JP2017208511 A JP 2017208511A JP 2017208511 A JP2017208511 A JP 2017208511A JP 7148236 B2 JP7148236 B2 JP 7148236B2
Authority
JP
Japan
Prior art keywords
image
encoding
sub
frame
interest
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
JP2017208511A
Other languages
Japanese (ja)
Other versions
JP2019083368A (en
JP2019083368A5 (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2017208511A priority Critical patent/JP7148236B2/en
Publication of JP2019083368A publication Critical patent/JP2019083368A/en
Publication of JP2019083368A5 publication Critical patent/JP2019083368A5/ja
Application granted granted Critical
Publication of JP7148236B2 publication Critical patent/JP7148236B2/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 video encoding technology .

動画像はその情報量が非常に大きい。それ故、動画像を撮像する装置(ビデオカメラやカメラ内蔵の携帯型通信装置等)では、撮像した動画像を圧縮符号化してから記憶媒体に記録する。 A moving image has a very large amount of information. Therefore, in a device for capturing moving images (such as a video camera or a portable communication device with a built-in camera), captured moving images are compression-encoded and then recorded in a storage medium.

近年、1920×1080画素をはじめ、それを超える8192×4320画素等の多種のサイズ(解像度)の再生可能な装置が登場してきている。このような再生環境の多様化にともない、たとえば特許文献1のような、複数の画像サイズの動画像の符号化を実現する方法が提案されてきている。特許文献1では、動画像に対して、注目領域を切り出した小サイズ画像の動画像と、切出していない動画像の2つの動画像を符号化する技術を開示している。特許文献1では、動画像の注目領域に対応する画素値を単一色に置き換えることで符号量を抑えつつ、2つの異なる画像サイズの動画像データを符号化している。 In recent years, devices capable of reproducing various sizes (resolutions) such as 1920×1080 pixels and beyond such as 8192×4320 pixels have appeared. With such diversification of reproduction environments, methods for realizing encoding of moving images of a plurality of image sizes have been proposed, as in Patent Document 1, for example. Japanese Patent Application Laid-Open No. 2002-200000 discloses a technique of encoding two moving images, one of which is a small-sized image in which a region of interest is cut out, and the other of which is not cut out. In Patent Literature 1, moving image data of two different image sizes are encoded while suppressing the amount of code by replacing pixel values corresponding to a region of interest of a moving image with a single color.

特開2010-212811号公報JP 2010-212811 A

しかしながら、特許文献1で符号化された動画データは元画像を縮小したものであるので、画質の劣化が発生する。更に、注目領域の動画像を再生する場合に2つの符号化データを復号化し、1つの再生画像として合成する処理が必要となる。 However, since the moving image data encoded in Patent Document 1 is obtained by reducing the original image, the image quality is degraded. Furthermore, when reproducing a moving image of a region of interest, it is necessary to decode two pieces of encoded data and synthesize them into one reproduced image.

本発明はかかる問題に鑑みなされたものであり、高い解像度の画像の符号化を行いながらも、主被写体を含む部分領域を復号可能な符号化データを生成する技術を提供しようとするものである。 SUMMARY OF THE INVENTION The present invention has been made in view of such problems, and it is an object of the present invention to provide a technique for generating encoded data capable of decoding a partial area including a main subject while encoding a high-resolution image. .

この課題を解決するため、例えば本発明の符号化装置は以下の構成を備える。すなわち、
動画像を符号化する符号化装置であって、
符号化しようとする着目フレームから、主被写体を含み、予め設定されたサイズの副画像の領域の位置を決定する決定手段と、
該決定手段で決定した前記副画像の領域の境界に基づき前記着目フレームを複数の領域に分割する分割手段と、
該分割手段で分割して得た各領域の画像を符号化する符号化手段と、
前記符号化手段で得た符号化データと、前記着目フレームにおける前記副画像の領域の位置、並びに、前記副画像の符号化データの格納アドレスを示す付加情報とから前記着目フレームの符号化データを生成する生成手段とを有し、
前記符号化手段は、
前記着目フレーム内の前記副画像の領域については、当該副画像の領域、或いは以前に符号化されたフレーム内の副画像領域を参照する符号化を行い、
前記着目フレーム内の前記副画像の領域以外の領域については、前記着目フレーム、或いは以前に符号化されたフレームを参照する符号化を行い、
前記決定手段は、符号化しようとする前記着目フレームがIピクチャ、又は、Iピクチャを参照するピクチャである場合を更新タイミングとして、前記主被写体の位置、及び、前記副画像の領域の位置を決定し、
前記符号化手段は、符号化しようとする着目フレームが前記更新タイミングではない場合には、前記副画像の領域の位置が前のフレームと同じであるとして符号化を行うことを特徴とする。
In order to solve this problem, for example, the encoding device of the present invention has the following configuration. i.e.
An encoding device for encoding a moving image,
Determination means for determining the position of a sub-image area of a preset size containing the main subject from the frame of interest to be encoded;
dividing means for dividing the frame of interest into a plurality of regions based on boundaries of the sub-image regions determined by the determining means;
encoding means for encoding an image of each region obtained by dividing by the dividing means;
The encoded data of the frame of interest is obtained from the encoded data obtained by the encoding means, the position of the area of the sub-image in the frame of interest, and additional information indicating the storage address of the encoded data of the sub-image. and generating means for generating
The encoding means are
For the area of the sub-image in the frame of interest, encoding is performed with reference to the area of the sub-image or the sub-image area in the previously encoded frame,
Encoding an area other than the area of the sub-image in the frame of interest with reference to the frame of interest or a previously encoded frame,
The determining means determines the position of the main subject and the position of the sub-image region using update timing when the frame of interest to be coded is an I picture or a picture referring to the I picture. death,
When the frame of interest to be encoded is not at the update timing, the encoding means performs encoding assuming that the position of the area of the sub-image is the same as that of the previous frame.

本発明によれば、高解像度の画像の符号化を行いながらも、主被写体を含む部分領域を復号可能な符号化データを生成することができる。 According to the present invention, it is possible to generate encoded data capable of decoding a partial area including a main subject while encoding a high-resolution image.

また、本発明によれば、高解像度の符号化データから、主被写体を含む部分領域のみを復号し再生することが可能になる。 Also, according to the present invention, it is possible to decode and reproduce only a partial area including the main subject from high-resolution encoded data.

実施形態におけるシステムの一例を示す図。The figure which shows an example of the system in embodiment. 実施形態における符号化装置及び復号化装置のブロック構成図。FIG. 2 is a block configuration diagram of an encoding device and a decoding device according to the embodiment; 実施形態における符号化処理部のブロック構成図。FIG. 2 is a block configuration diagram of an encoding processing unit according to the embodiment; 実施形態における符号化処理におけるタイル分割の例を示す図。FIG. 4 is a diagram showing an example of tile division in encoding processing according to the embodiment; 実施形態における符号化装置の処理を示すフローチャート。4 is a flowchart showing processing of the encoding device in the embodiment; 実施形態における符号化装置のタイル構成の決定処理と符号化処理を示すフローチャート。4 is a flowchart showing tile configuration determination processing and encoding processing of the encoding device according to the embodiment. 実施形態における復号装置の処理を示すフローチャート。4 is a flowchart showing processing of the decoding device in the embodiment; フレーム間でタイル位置が変わる場合の不具合を説明するための図。FIG. 10 is a diagram for explaining a problem when tile positions change between frames; 第2の実施形態における復号した画像の画面内をトリミングする例を示す図。FIG. 11 is a diagram showing an example of trimming the screen of a decoded image according to the second embodiment; 第2の実施形態における符号化装置の処理を示すフローチャート。9 is a flowchart showing processing of the encoding device in the second embodiment; 第2の実施形態における復号装置の処理を示すフローチャート。9 is a flowchart showing processing of the decoding device in the second embodiment; 第2の実施形態における復号画像のトリミング位置決定の処理の一例を示すフローチャート。10 is a flowchart showing an example of processing for determining a trimming position of a decoded image according to the second embodiment;

以下、添付図面に従って本発明に係る実施形態を詳細に説明する。 Hereinafter, embodiments according to the present invention will be described in detail with reference to the accompanying drawings.

<システム構成図>
図1に示すように、本実施形態のシステムは、符号化装置100、復号装置200、及び、表示装置300を有する。
<System configuration diagram>
As shown in FIG. 1, the system of this embodiment has an encoding device 100, a decoding device 200, and a display device 300. FIG.

符号化装置100は、ユーザによる操作部104のシャッタースイッチによる撮影指示により撮像を行い、画像データを得る。符号化装置100は、撮像して得た画像データを符号化することで、画像データのデータ量を圧縮することが可能である。符号化装置100は符号化して得た符号化画像データを着脱式の不揮発性記録媒体に記録するか、或いは、無線通信を使用して復号装置200等の装置に転送する。復号装置200は、着脱式の不揮発性記録媒体、または無線通信を使用して符号化画像データを受信する。そして、復号装置200は、操作部204または、不図示のリモコンより操作させることで、符号化画像データを復号してた画像データを表示装置300に出力することで再生を行う。表示装置300は復号装置200からの画像データ(画像信号)を受信し、表示部にその画像を表示する。 The encoding device 100 performs imaging in response to a shooting instruction by the user through the shutter switch of the operation unit 104, and obtains image data. The encoding device 100 can compress the amount of image data by encoding image data obtained by imaging. The encoding device 100 records encoded image data obtained by encoding in a removable non-volatile recording medium, or transfers the data to a device such as the decoding device 200 using wireless communication. The decoding device 200 receives encoded image data using a removable non-volatile recording medium or wireless communication. The decoding device 200 reproduces by outputting the image data obtained by decoding the encoded image data to the display device 300 by operating the operation unit 204 or a remote controller (not shown). The display device 300 receives the image data (image signal) from the decoding device 200 and displays the image on the display section.

符号化装置100は、デジタルスチルカメラ、スマートフォン、カメラ付き携帯電話、デジタルビデオカメラ等の撮像装置である。復号装置200は、画像データや音声データの再生を行うプレイヤ等の再生装置であってもよく、デジタルスチルカメラ、スマートフォン、カメラ付き携帯電話、デジタルビデオカメラ等の撮像装置であっても構わない。表示装置300は、液晶や有機EL等のディスプレイ装置である。なお、符号化装置100は、復号化装置200と同様の復号化処理を行ってもよい。また、復号化装置200は表示装置300を含んでもよい。 The encoding device 100 is an imaging device such as a digital still camera, a smart phone, a camera-equipped mobile phone, or a digital video camera. The decoding device 200 may be a reproducing device such as a player that reproduces image data or audio data, or may be an imaging device such as a digital still camera, a smart phone, a mobile phone with a camera, or a digital video camera. The display device 300 is a display device such as liquid crystal or organic EL. Note that the encoding device 100 may perform decoding processing similar to that of the decoding device 200 . The decoding device 200 may also include a display device 300 .

<全体ブロック図>
図2は、符号化装置100と、復号装置200のブロック構成を示す図である。
<Overall block diagram>
FIG. 2 is a diagram showing block configurations of the encoding device 100 and the decoding device 200. As shown in FIG.

符号化装置100は、CPU101、メモリ102、不揮発性メモリ103、操作部104、撮像レンズ111、撮像部112、画像処理部113、符号化処理部114を有する。また、符号化装置100は、表示制御部115、表示部116、通信制御部117、通信部118、記録媒体制御部119、記録媒体120、及び、内部バス130を有する。 The encoding device 100 has a CPU 101 , a memory 102 , a nonvolatile memory 103 , an operation section 104 , an imaging lens 111 , an imaging section 112 , an image processing section 113 and an encoding processing section 114 . The encoding device 100 also has a display control unit 115 , a display unit 116 , a communication control unit 117 , a communication unit 118 , a recording medium control unit 119 , a recording medium 120 and an internal bus 130 .

CPU101は、不揮発性メモリ103に記憶されているコンピュータプログラムを実行することによって、符号化装置100の各部の動作を制御する。CPU101は、ユーザによって操作される操作部104から入力されるシャッターボタン、メニューボタン等の信号により、主被写体となる人物等を予め撮影しておき、不揮発性メモリ103に主被写体情報として記録する。また、CPU101は、ユーザにより操作部104から入力されるメニューボタン等の信号により、特定の主被写体を含む画像サイズ小の画面領域のサイズを判断する。CPU101は、ユーザにより指定された画面領域のサイズ情報をメモリ102に保存する。 The CPU 101 controls the operation of each unit of the encoding device 100 by executing computer programs stored in the nonvolatile memory 103 . The CPU 101 shoots a person or the like as the main subject in advance in response to a signal such as a shutter button or a menu button input from the operation unit 104 operated by the user, and records it in the nonvolatile memory 103 as main subject information. In addition, the CPU 101 determines the size of the small image size screen area including the specific main subject based on a signal such as a menu button input from the operation unit 104 by the user. The CPU 101 stores the size information of the screen area specified by the user in the memory 102 .

メモリ102は、書き換え可能な揮発性メモリであり、一時的に符号化装置100の各部の動作を制御するコンピュータプログラム、各部の動作に関するパラメータ等の情報、通信制御部117によって受信した情報等を記録する。メモリ102は、撮像部112、画像処理部113、符号化処理部114等で処理した画像や情報を一時的に記録するための十分な記憶容量を備えている。 The memory 102 is a rewritable volatile memory, and temporarily stores a computer program for controlling the operation of each unit of the encoding apparatus 100, information such as parameters related to the operation of each unit, information received by the communication control unit 117, and the like. do. The memory 102 has a sufficient storage capacity for temporarily recording images and information processed by the imaging unit 112, the image processing unit 113, the encoding processing unit 114, and the like.

不揮発性メモリ103は、電気的に消去・記録可能なメモリであり、例えばEEPROM等が用いられる。不揮発性メモリ103は、符号化装置100の各部の動作を制御するコンピュータプログラム及び各部の動作に関するパラメータ等の情報を記憶する。ここでいう、コンピュータプログラムとは、本実施形態にて後述する各種フローチャートを実行するためのプログラムのことである。 The nonvolatile memory 103 is an electrically erasable/recordable memory, and for example, an EEPROM or the like is used. The nonvolatile memory 103 stores information such as a computer program for controlling the operation of each unit of the encoding apparatus 100 and parameters related to the operation of each unit. The computer program referred to here is a program for executing various flowcharts described later in this embodiment.

操作部104は、符号化装置100を操作するためのユーザインターフェースを提供する。操作部104は、符号化装置100の電源ボタン及びメニューボタン、シャッターボタン等を有し、各ボタンはスイッチ、タッチパネル等により構成される。CPU101は、操作部104を介して入力されたユーザの指示に従って符号化装置100を制御する。なお、操作部104は、不図示のリモートコントローラから受信したリモコン信号や、不図示の携帯端末から通信制御部117を介して通知された要求に応じて符号化装置100を制御してもよい。 An operation unit 104 provides a user interface for operating the encoding device 100 . An operation unit 104 has a power button, a menu button, a shutter button, and the like of the encoding apparatus 100, and each button is configured by a switch, a touch panel, and the like. The CPU 101 controls the encoding device 100 according to user instructions input via the operation unit 104 . Note that the operation unit 104 may control the encoding apparatus 100 according to a remote control signal received from a remote controller (not shown) or a request notified from a portable terminal (not shown) via the communication control unit 117 .

撮像レンズ111は、ズームレンズ、フォーカスレンズを含むレンズ群、レンズ制御部、絞りなどにより構成される。撮像レンズ111は図示しないレンズ制御部を有し、CPU101から送信される制御信号により、焦点の調整や絞り値(F値)を制御する。 The imaging lens 111 includes a lens group including a zoom lens and a focus lens, a lens control section, an aperture, and the like. The imaging lens 111 has a lens control unit (not shown), and controls focus adjustment and an aperture value (F value) according to a control signal transmitted from the CPU 101 .

撮像部112は、被写体の光学像を電気信号に変換する撮像素子を備える。撮像素子は、例えばCCD(電荷結合素子)やCMOS(相補型金属酸化膜半導体)素子等で構成されるエリアイメージセンサである。撮像部112は撮像して得たアナログ画像信号をデジタル画像信号(画像データ)に変換し、画像処理部113またはメモリ102に出力する。 The imaging unit 112 includes an imaging device that converts an optical image of a subject into an electrical signal. The imaging device is an area image sensor composed of, for example, a CCD (charge-coupled device) or a CMOS (complementary metal oxide semiconductor) device. The imaging unit 112 converts an analog image signal obtained by imaging into a digital image signal (image data), and outputs the digital image signal (image data) to the image processing unit 113 or the memory 102 .

画像処理部113は、撮像部112からの画像データ、又は、メモリ102から読み出された画像データに対し所定の画素補間、縮小といったリサイズ処理や色変換処理等を行う。また、画像処理部113では、撮像した画像データを用いて所定の演算処理が行われ、得られた演算結果に基づいてCPU101が露光制御、測距制御を行う。これにより、AE(自動露出)処理、AWB(オートホワイトバランス)処理、AF(オートフォーカス)処理が行われる。また、画像処理部113では予め不揮発性メモリ103に記録された顔や人物の特徴量と、撮像部112から受信した画像データから算出した特徴量の比較を行う。画像処理部113は、比較した特徴量と画素の座標から、画像データ内における主被写体の座標位置と範囲を特定する。 The image processing unit 113 performs resizing processing such as predetermined pixel interpolation and reduction, color conversion processing, and the like on the image data from the imaging unit 112 or the image data read from the memory 102 . Further, the image processing unit 113 performs predetermined arithmetic processing using captured image data, and the CPU 101 performs exposure control and distance measurement control based on the obtained arithmetic results. As a result, AE (auto exposure) processing, AWB (auto white balance) processing, and AF (auto focus) processing are performed. Further, the image processing unit 113 compares the feature amount of the face or person recorded in advance in the nonvolatile memory 103 with the feature amount calculated from the image data received from the imaging unit 112 . The image processing unit 113 identifies the coordinate position and range of the main subject in the image data from the compared feature amount and pixel coordinates.

ここで主被写体検出機能について説明する。CPU101は顔検出対象の画像データを画像処理部113に送る。CPU101の制御下で画像処理部113は、当該画像データに水平方向バンドパスフィルタを作用させる。また、CPU101の制御下で画像処理部113は処理された画像データに垂直方向バンドパスフィルタを作用させる。これら水平及び垂直方向のバンドパスフィルタにより、画像データよりエッジ成分が検出される。その後、CPU101は、検出されたエッジ成分に関してパターンマッチングを行い、候補群を抽出する。そして、CPU101は、抽出された候補群の中から、予め設定された条件を満たすものを絞り込む。そして、CPU101は、絞り込まれた候補群とそれに対応する人物を形成する対応付け、また、予め設定した非人物条件フィルタを通すことで、人物を検出する。CPU101は、人物の検出結果に応じて上記人物情報を出力し、処理を終了する。このとき、人物などの特徴量をメモリ102に記憶する。 The main subject detection function will now be described. The CPU 101 sends image data for face detection to the image processing unit 113 . Under the control of the CPU 101, the image processing unit 113 applies a horizontal bandpass filter to the image data. Under the control of the CPU 101, the image processing unit 113 applies a vertical bandpass filter to the processed image data. Edge components are detected from the image data by these horizontal and vertical bandpass filters. After that, the CPU 101 performs pattern matching on the detected edge components and extracts a candidate group. Then, the CPU 101 narrows down candidates that satisfy a preset condition from the group of extracted candidates. Then, the CPU 101 detects a person by associating the group of narrowed-down candidates with the person corresponding thereto, and by passing through a preset non-person condition filter. The CPU 101 outputs the person information according to the person detection result, and ends the process. At this time, the feature amount such as a person is stored in the memory 102 .

以上のようにライブビュー表示あるいは再生表示される画像データを画像解析して、画像データの特徴量を抽出して主被写体(人物)を検出することが可能である。 As described above, it is possible to detect the main subject (person) by performing image analysis on image data displayed in live view display or reproduced display, and extracting feature amounts of the image data.

符号化処理部114は、入力された画像データを画面内予測及び画面間予測符号化することで画像データのデータ量を圧縮する。符号化処理部114は、例えばH.265(ITU H.265又はISO/IEC23008-2)方式で圧縮処理を行う。符号化処理部114の詳細な説明は図3を用いて後述する。 The encoding processing unit 114 compresses the amount of image data by performing intra-frame prediction and inter-frame prediction coding on the input image data. The encoding processing unit 114 is, for example, H.264. 265 (ITU H.265 or ISO/IEC23008-2). A detailed description of the encoding processing unit 114 will be given later with reference to FIG.

表示制御部115は、表示部116を制御する。表示制御部115は表示部116で表示可能な画像になるようにリサイズ処理や色変換処理等を行い、画像信号を表示部116に出力する。表示部116は、液晶ディスプレイや有機EL等で構成されており、表示制御部115から送られてきた画像信号を表示する。表示部116はタッチパネルでありユーザからの操作を受け付ける操作部も兼ねる。 The display control section 115 controls the display section 116 . The display control unit 115 performs resizing processing, color conversion processing, etc. so that the image can be displayed on the display unit 116 , and outputs an image signal to the display unit 116 . The display unit 116 is composed of a liquid crystal display, organic EL, or the like, and displays image signals sent from the display control unit 115 . The display unit 116 is a touch panel and also serves as an operation unit for receiving operations from the user.

通信制御部117は、CPU101に制御され、IEEE802.11等で予め定められた無線通信規格に適用した変調信号を生成して、通信部118へ出力する。また、通信制御部117は、通信部118より無線通信規格に適用した変調信号を受信して復号することでアナログ信号をデジタル信号変換してCPU101に通知する。また、通信制御部108は通信を設定するためのレジスタを持っており、CPU101から制御されることで通信時の送受信感度を調整し、所定の変調方式で送受信をおこなうことができる。通信部118は、通信制御部117から送られてくる変調信号を外部へ出力、もしくは外部からの変調信号を受信するアンテナ及び、アナログ回路等により構成される。 Communication control section 117 is controlled by CPU 101 to generate a modulated signal conforming to a predetermined wireless communication standard such as IEEE 802.11 and outputs the modulated signal to communication section 118 . Further, the communication control unit 117 receives and decodes a modulated signal conforming to the wireless communication standard from the communication unit 118 , converts the analog signal into a digital signal, and notifies the CPU 101 of the digital signal. Further, the communication control unit 108 has a register for setting communication, and is controlled by the CPU 101 to adjust transmission/reception sensitivity during communication and transmit/receive with a predetermined modulation method. The communication unit 118 includes an antenna for outputting the modulated signal sent from the communication control unit 117 to the outside or receiving the modulated signal from the outside, an analog circuit, and the like.

記録媒体制御部119は、記録媒体120を制御するための制御部であり、CPU101から要求を受けて、記録媒体120を制御するための制御信号を出力する。記録媒体120は、撮像され符号化された画像データを記録するための着脱式、または内蔵式の不揮発性メモリや磁気ディスク等から構成される。なお、CPU101が記録媒体120に記録する場合には、記録媒体のファイルシステムに適応した形式でファイルデータとして保存する。ここでいうファイルデータとは、MP4ファイル(ISO/IEC 14496-14:2003)やMXF(Material eXchange Format)ファイル等のコンテナを示す。 A recording medium control unit 119 is a control unit for controlling the recording medium 120 , and receives a request from the CPU 101 to output a control signal for controlling the recording medium 120 . The recording medium 120 is composed of a detachable or built-in nonvolatile memory, magnetic disk, or the like for recording captured and encoded image data. Note that when the CPU 101 records on the recording medium 120, it saves as file data in a format adapted to the file system of the recording medium. The file data here refers to containers such as MP4 files (ISO/IEC 14496-14:2003) and MXF (Material Exchange Format) files.

内部バス130は、CPU101とメモリ102に各処理部がアクセスするための内部バスである。以上、実施形態における符号化装置100を説明した。 An internal bus 130 is an internal bus for accessing the CPU 101 and the memory 102 from each processing unit. The encoding device 100 according to the embodiment has been described above.

復号装置200は、図2に示すように、CPU201、メモリ202、不揮発性メモリ203、操作部204、通信制御部211、通信部212、復号処理部213、記録媒体制御部214、記録媒体215、表示制御部216、及び内部バス220を有する。 As shown in FIG. 2, the decoding device 200 includes a CPU 201, a memory 202, a nonvolatile memory 203, an operation unit 204, a communication control unit 211, a communication unit 212, a decoding processing unit 213, a recording medium control unit 214, a recording medium 215, It has a display control unit 216 and an internal bus 220 .

CPU201は、不揮発性メモリ203に記憶されているコンピュータプログラムを実行することによって、復号装置200の各部の動作を制御する。 The CPU 201 controls the operation of each unit of the decoding device 200 by executing computer programs stored in the nonvolatile memory 203 .

メモリ202は、書き換え可能な揮発性メモリであり、一時的に復号装置200の各部の動作を制御するコンピュータプログラム、各部の動作に関するパラメータ等の情報、通信部212によって受信した情報等を記録する。不揮発性メモリ203は、不揮発性メモリ203に記憶されているコンピュータプログラムを実行することによって、復号装置200の各部の動作を制御する。 The memory 202 is a rewritable volatile memory, and temporarily records a computer program that controls the operation of each unit of the decoding device 200, information such as parameters related to the operation of each unit, information received by the communication unit 212, and the like. The nonvolatile memory 203 controls the operation of each unit of the decoding device 200 by executing the computer programs stored in the nonvolatile memory 203 .

操作部204は、復号装置200を操作するためのユーザインターフェースを提供する。操作部204は、復号装置200の電源ボタン及び再生、停止ボタン等を有し、各ボタンはスイッチ、タッチパネル等により構成される。CPU201は、操作部204を介して入力されたユーザの指示に従って復号装置200を制御する。なお、操作部204は、不図示のリモートコントローラから受信したリモコン信号や、不図示の携帯端末から通信制御部211を介して通知された要求に応じて復号装置200を制御してもよい。 An operation unit 204 provides a user interface for operating the decoding device 200 . The operation unit 204 has a power button, a play button, a stop button, and the like of the decoding device 200, and each button is configured by a switch, a touch panel, and the like. The CPU 201 controls the decoding device 200 according to user's instructions input via the operation unit 204 . Note that the operation unit 204 may control the decoding device 200 according to a remote control signal received from a remote controller (not shown) or a request notified from a portable terminal (not shown) via the communication control unit 211 .

通信制御部211は、CPU201に制御され、IEEE802.11等で予め定められた無線通信規格に適用した変調信号を生成して、通信部212へ出力する。また、通信制御部211は、通信部212より無線通信規格に適用した変調信号を受信して復号することでアナログ信号をデジタル信号変換してCPU201に通知する。また、通信制御部212は通信を設定するためのレジスタを持っており、CPU201から制御されることで通信時の送受信感度を調整し、所定の変調方式で送受信をおこなうことができる。通信部212は、通信制御部211から送られてくる変調信号を外部へ出力、もしくは外部からの変調信号を受信するアンテナ及び、アナログ回路等により構成される。 The communication control unit 211 is controlled by the CPU 201 to generate a modulated signal conforming to a predetermined wireless communication standard such as IEEE802.11, and outputs the modulated signal to the communication unit 212 . Further, the communication control unit 211 receives and decodes a modulated signal conforming to the wireless communication standard from the communication unit 212 , converts the analog signal into a digital signal, and notifies the CPU 201 of the digital signal. Further, the communication control unit 212 has a register for setting communication, and is controlled by the CPU 201 to adjust the transmission/reception sensitivity during communication and perform transmission/reception according to a predetermined modulation method. The communication unit 212 includes an antenna for outputting the modulated signal sent from the communication control unit 211 to the outside or receiving the modulated signal from the outside, an analog circuit, and the like.

復号処理部213は、画面内予測及び画面間予測復号された符号化画像データ(符号化ストリーム)の復号処理を行う。例えばH.265方式で符号化された画像データの復号処理を行い、復号処理を行った画像データはメモリ202に一時的に保存される。 The decoding processing unit 213 performs decoding processing of the encoded image data (encoded stream) that has undergone intra-frame prediction and inter-frame prediction decoding. For example, H.I. H.265-encoded image data is decoded, and the decoded image data is temporarily stored in the memory 202 .

記録媒体制御部214は、記録媒体215を制御するための制御部であり、CPU201から要求を受けて、記録媒体215を制御するための制御信号を出力する。記録媒体215は、符号化された画像データを記録するための着脱式、または内蔵式の不揮発性メモリや磁気ディスク等から構成される。 A recording medium control unit 214 is a control unit for controlling the recording medium 215 , and receives a request from the CPU 201 to output a control signal for controlling the recording medium 215 . A recording medium 215 is composed of a detachable or built-in nonvolatile memory, magnetic disk, or the like for recording encoded image data.

表示制御部216は、表示装置300に画像信号を出力するための制御部である。表示制御部216は表示装置300で表示可能な画像になるようにリサイズ処理や色変換処理等を行い、画像信号を表示装置300に出力する。なお、表示装置300への出力は、例えばHDMI(High Definition Multimedeia Interface)(登録商標)等のケーブルを介して行われる。 The display control unit 216 is a control unit for outputting image signals to the display device 300 . The display control unit 216 performs resizing processing, color conversion processing, and the like so that the image can be displayed on the display device 300 , and outputs an image signal to the display device 300 . The output to the display device 300 is performed via a cable such as HDMI (High Definition Multimedia Interface) (registered trademark).

内部バス220は、CPU201とメモリ202に各処理部及び制御部がアクセスするための内部バスである。 The internal bus 220 is an internal bus for accessing the CPU 201 and the memory 202 by each processing unit and control unit.

<符号化処理部114の詳細>
次に実施形態における符号化装置100における符号化処理部114の構成と処理の流れを図3を参照して説明する。符号化処理部114は、H.265方式に従って符号化を行うものとする。
<Details of Encoding Processing Unit 114>
Next, the configuration and processing flow of the encoding processing unit 114 in the encoding device 100 according to the embodiment will be described with reference to FIG. The encoding processing unit 114 uses H.264. It is assumed that encoding is performed according to the H.265 system.

画面分割部301は、符号化対象の入力画像の画面サイズよりも小さい、いくつかの画面サイズに画面を分割する。具体的には、ユーザに設定された表示画面のサイズや主被写体の位置情報を基に、主被写体が含まれるように、符号化対象の入力画像の画面サイズよりも小さい、いくつかのスライスまたは及びタイルの分割サイズを決定する。なお、主被写体の位置はCPU101、または画像処理部113から取得する。スライスまたは及びタイルの分割が画面の分割に相当する。なお、スライスの分割数は、num_tile_columns_minus1により水平方向が決まり、num_tile_rows_minus1により垂直方向が決定される。なお、本実施形態においてはタイルの分割方法は全てのビットスリームで一意である場合のtiles_fixed_structure_flagを0にセットする。 The screen dividing unit 301 divides the screen into several screen sizes smaller than the screen size of the input image to be encoded. Specifically, based on the size of the display screen set by the user and the position information of the main subject, several slices or slices smaller than the screen size of the input image to be encoded are included so that the main subject is included. and determine the division size of the tiles. Note that the position of the main subject is acquired from the CPU 101 or the image processing unit 113 . Division into slices or tiles corresponds to division of the screen. Note that the number of slice divisions is determined in the horizontal direction by num_tile_columns_minus1, and in the vertical direction by num_tile_rows_minus1. In this embodiment, the tiles_fixed_structure_flag is set to 0 when the tile division method is unique for all bitstreams.

画面サイズは、水平、垂直方向の画素数で定義されるものとする。ただし、一方の辺の画素数とアスペクト比があれば画面サイズは特定できるので、この限りではない。 The screen size shall be defined by the number of pixels in the horizontal and vertical directions. However, since the screen size can be specified by the number of pixels on one side and the aspect ratio, this is not the case.

画面分割部301は、決定した座標位置で、符号化対象の画面をタイル状に分割した各領域(以下、この領域を単にタイルと呼ぶ)に番号(以下、タイル番号という)を付す。そして、タイル番号で示されるタイル番号と符号化対象の画面におけるタイルの位置とを対応づける。なお、各タイルのサイズはCTB(Cording Tree Block)の数を示す各種情報で決定される。 The screen dividing unit 301 assigns a number (hereinafter referred to as a tile number) to each area (hereinafter simply referred to as a tile) obtained by dividing the screen to be encoded into tiles at the determined coordinate position. Then, the tile number indicated by the tile number is associated with the position of the tile on the screen to be encoded. The size of each tile is determined by various information indicating the number of CTBs (Coding Tree Blocks).

そして、画面分割部301は、符号化処理中に、タイル毎の予測符号化条件を予測符号化方法決定部302へ出力する。この予測符号化条件には、或るタイル内の着目画素ブロックを符号化する際、その着目画素ブロック(符号化対象ブロック)の予測画素ブロックを取得する範囲を規定する情報が含まれる(詳細後述)。 Then, the screen dividing unit 301 outputs the predictive encoding condition for each tile to the predictive encoding method determining unit 302 during the encoding process. This predictive coding condition includes information defining a range for obtaining a predicted pixel block of a target pixel block (encoding target block) when encoding the target pixel block in a certain tile (details will be described later). ).

予測符号化方法決定部302は、画面分割部301から入力される画面分割情報及び予測符号化条件に基づき符号化対象画面内の各画素ブロックに対する予測方法を決定する。予測符号化方法決定部302は、入力される画像信号と、符号化済みの領域の復号画像を格納するメモリ102から読み出した符号化済み画素値から簡易的な画面内予測又は動き検出を含む画面間予測処理を行うことにより符号化効率を示す評価値を算出する。そして、その符号化効率が最適となる予測方式を決定する。 The predictive encoding method determination unit 302 determines the predictive method for each pixel block in the encoding target screen based on the screen division information and the predictive encoding conditions input from the screen division unit 301 . The predictive encoding method determination unit 302 determines a screen including simple intra-screen prediction or motion detection from the input image signal and the encoded pixel values read from the memory 102 that stores the decoded image of the encoded area. An evaluation value indicating coding efficiency is calculated by performing inter-prediction processing. Then, a prediction method that optimizes the coding efficiency is determined.

符号化対象画素ブロックがIスライスの場合は、画面内予測画素ブロックサイズ及び予測モードを決定する。Pスライス又はBスライスの場合には、画面内予測又は画面間予測の内、符号化効率の高い方を選択する。フレーム内の全てのスライスがIスライスのフレームをIフレーム、フレーム内の全てのスライスがPスライスのフレームをPフレーム、フレーム内の全てのスライスがBスライスのフレームをBフレームと呼ぶ。 When the pixel block to be encoded is an I slice, the intra-screen prediction pixel block size and prediction mode are determined. In the case of P-slice or B-slice, the one with higher coding efficiency is selected from intra-frame prediction and inter-frame prediction. A frame in which all slices are I-slices is called an I-frame, a frame in which all slices are P-slices is called a P-frame, and a frame in which all slices are B-slices is called a B-frame.

ここで、画面間予測の場合には画面内予測画素ブロックサイズ及び画面内予測モード等の画面内予測符号化用パラメータを決定する。また、画面間予測の場合には、参照画像フレーム、画素ブロック分割パターン、動きベクトル等の画面間予測符号化用パラメータを決定する。 Here, in the case of inter prediction, parameters for intra prediction coding such as intra prediction pixel block size and intra prediction mode are determined. In the case of inter-prediction, parameters for inter-predictive coding such as reference image frames, pixel block division patterns, motion vectors, etc. are determined.

予測符号化方法決定部302は、決定した予測符号化用パラメータを予測符号化処理部303へ出力する。 The predictive encoding method determination unit 302 outputs the determined predictive encoding parameters to the predictive encoding processing unit 303 .

予測符号化処理部303は、符号化対象のフレーム中の着目タイル内の着目画素ブロックを符号化する際、予測符号化方法決定部302により決定された予測符号化用パラメータに応じて、メモリ102から読出した符号化済み画像から予測画素ブロックを生成する。そして、予測符号化処理部303は、着目画素ブロックと予測画素ブロックの差分である予測残差ブロックを、直交変換・量子化部305へ出力する。また、予測画素ブロックを、局所復号部306にも出力する。 When encoding a pixel block of interest in a tile of interest in a frame to be encoded, the predictive encoding processing unit 303 stores data in the memory 102 according to the predictive encoding parameter determined by the predictive encoding method determination unit 302 . A prediction pixel block is generated from the encoded image read from the . Then, the predictive encoding processing unit 303 outputs the predictive residual block, which is the difference between the pixel block of interest and the predictive pixel block, to the orthogonal transform/quantization unit 305 . The prediction pixel block is also output to the local decoding unit 306 .

直交変換・量子化部305は、与えられた予測残差ブロックに対して直交変換処理を行う。また、直交変換・量子化部305は、後述する符号量制御部307から設定された量子化パラメータに応じた量子化ステップを用いて、直交変換して得られた係数を量子化する。その量子化後の係数(量子化データ)はエントロピー符号化部308、局所復号部306へ供給される。 The orthogonal transform/quantization unit 305 performs orthogonal transform processing on the given prediction residual block. Further, the orthogonal transform/quantization unit 305 quantizes the coefficient obtained by orthogonal transform using a quantization step corresponding to a quantization parameter set by the code amount control unit 307, which will be described later. The quantized coefficients (quantized data) are supplied to the entropy coding section 308 and the local decoding section 306 .

局所復号部306は、入力した量子化データに対し逆量子化処理、逆直交変換処理を行うことで、予測残差データを生成する。そして、局所復号部306は、その予測残差データに、予測符号化処理部303から入力される予測画像を加算して復号処理を行い、得られた画素ブロックが示す画像データをメモリ102へ格納する。メモリ102へ格納された復号後の画像データは、以降の画面内予測処理に利用される。更にデブロッキングフィルタ処理が施された復号画像データをメモリ102へ保持する。メモリ102へ保持されたデブロッキングフィルタ処理後の復号データは、以降の画面間予測処理にも利用される。 The local decoding unit 306 generates prediction residual data by performing inverse quantization processing and inverse orthogonal transform processing on the input quantized data. Then, the local decoding unit 306 performs decoding processing by adding the prediction image input from the prediction encoding processing unit 303 to the prediction residual data, and stores the image data indicated by the obtained pixel block in the memory 102. do. The decoded image data stored in the memory 102 is used for subsequent intra-frame prediction processing. Furthermore, the decoded image data subjected to deblocking filter processing is held in the memory 102 . The decoded data after the deblocking filtering process held in the memory 102 is also used for the subsequent inter-screen prediction process.

エントロピー符号化部308では、入力された量子化データに対してスライス単位にCABAC(コンテキスト適応型2値算術符号化)によるエントロピー符号化処理を行う。エントロピー符号化部308は、このため入力される量子化データ(多値データ)を2値データに変換する2値化部、その2値化部により生成された2値化データを格納する2値化データ・メモリを有する。また、エントロピー符号化部308は、2値化データの発生確率をコンテキストに応じて計算し、保持するコンテキスト計算部、及びコンテキスト計算部により供給される発生確率に応じて算術符号化を行う算術符号化部を有する。こうして符号化したデータをタイル単位に多重化処理部309へ供給すると共に、発生符号量を符号量制御部307へ出力する。 The entropy coding unit 308 performs entropy coding processing by CABAC (context adaptive binary arithmetic coding) on the input quantized data in units of slices. The entropy coding unit 308 includes a binarization unit that converts input quantized data (multilevel data) into binary data, and a binary code that stores the binarized data generated by the binarization unit. has a modified data memory. Further, the entropy coding unit 308 calculates the occurrence probability of the binarized data according to the context, and performs arithmetic coding according to the held context calculation unit and the occurrence probability supplied by the context calculation unit. It has a chemical part. The encoded data is supplied to the multiplexing processing unit 309 in tile units, and the generated code amount is output to the code amount control unit 307 .

符号量制御部307は、符号化ピクチャバッファをオーバーフロー、又はアンダーフローさせないように符号化データの符号量を制御する処理部である。符号量制御部307は、エントロピー符号化部308から供給されるエントロピー符号化後の発生符号量を元に、後続して入力するフレームに対する量子化パラメータを生成し、直交変換・量子化部305へ供給する。 The code amount control unit 307 is a processing unit that controls the code amount of encoded data so as not to overflow or underflow the encoded picture buffer. The code amount control unit 307 generates a quantization parameter for the subsequently input frame based on the generated code amount after entropy coding supplied from the entropy coding unit 308 , and sends it to the orthogonal transform/quantization unit 305 . supply.

多重化処理部309は、画像の符号化の開始時には、ファイルヘッダに符号化対象のフレームのサイズ等の情報に加えて、各タイルの分割位置と、設定された画面サイズ、タイル番号、並びに、主被写体が存在するタイル番号を示す情報を格納する。 At the start of image encoding, the multiplexing processing unit 309 stores, in the file header, information such as the size of the frame to be encoded, the division position of each tile, the set screen size, the tile number, and Stores information indicating the tile number where the main subject exists.

なお、タイル番号が、タイルを単位とするラスタースキャン順に符番されることが、符号化、復号を行う装置双方の共通事項である場合にはタイル番号は不要としてもよい。 Note that if it is common for both the encoding and decoding apparatuses that the tile numbers are assigned in raster scan order in units of tiles, the tile numbers may be unnecessary.

<画面分割部301によるタイル分割例>
図4に、本実施形態における、タイル構成の一例を示す。
<Example of tile division by screen division unit 301>
FIG. 4 shows an example of a tile configuration according to this embodiment.

図4(a)は、入力される画像データに対する有る時点におけるタイル構成の一例を示した図である。図4(a)は、タイルA1乃至A8、及び、タイルBの9つのタイルで構成されている。図4(a)に示すように、画面分割部301は、主被写体となる人物を含むタイルBの位置を決定し、タイルBの位置に合わせて、その他のタイル構成を決定する。具体的には、タイルBの位置が決まると、タイルBの4辺を表す線分を延長を主画面の分割の境界線とすることで、タイルAを決定する。なお、タイルBのように主被写体を含むタイルのことを以降、「主タイル」とする。また、入力される画像を「主画像」とし、主画像内の「主タイル」が表す、主画面よりも小さい画面を「副画像」と定義する。 FIG. 4(a) is a diagram showing an example of a tile configuration at a certain time for input image data. FIG. 4A is composed of nine tiles, tiles A1 to A8 and tile B. FIG. As shown in FIG. 4A, the screen dividing unit 301 determines the position of tile B including the person who is the main subject, and determines other tile configurations according to the position of tile B. As shown in FIG. Specifically, when the position of tile B is determined, tile A is determined by extending the line segments representing the four sides of tile B as boundary lines for dividing the main screen. A tile including a main subject, such as tile B, is hereinafter referred to as a "main tile". An input image is defined as a "main image", and a screen smaller than the main screen represented by a "main tile" in the main image is defined as a "sub-image".

図4(b)は、実施形態における、同図(a)に対して時系列で後のフレームにおける、タイル構成の一例を示した図である。図4(b)に示すように、画面分割部301は、主被写体となる人物が移動したことで、タイルB(主タイル)の位置を移動する。画面分割部301は、タイルBの位置に合わせてタイルA1、タイルA2、タイルA3、タイルA4、タイルA5のサイズ及び位置も変更され、図示の場合、タイルA6乃至8は存在しなくなる。 FIG. 4(b) is a diagram showing an example of a tile configuration in a frame subsequent in time series to FIG. 4(a) in the embodiment. As shown in FIG. 4B, the screen dividing unit 301 moves the position of the tile B (main tile) due to the movement of the person who is the main subject. The screen dividing unit 301 also changes the size and position of tile A1, tile A2, tile A3, tile A4, and tile A5 according to the position of tile B, and tiles A6 to 8 do not exist in the illustrated case.

なお、タイルBのサイズは図4(a)及び図4(b)で同サイズとする。また、主画面のサイズが例えば8192×4320画素である場合には、タイルB(主タイル)はその1/4サイズである、4096×2160画素等、DCI(Digital Cinema Initiatives)等の規格団体で決定されている一般的に使用される画面サイズに設定してもよい。 Note that the size of the tile B is the same size in FIGS. 4(a) and 4(b). When the size of the main screen is, for example, 8192×4320 pixels, tile B (main tile) is 1/4 of that size, such as 4096×2160 pixels. It may be set to a determined commonly used screen size.

また、図4(b)の状態から主被写体が更に左方向に移動して、タイルBが主画面の左下隅の位置に移動した場合、分割するタイルの総数は最小の“4”になる。つまり、主画面を分割するタイル数は、主タイルの位置に応じて、4乃至9の範囲で変動する。なお、符号化はタイル単位に行うことになる。タイル数の増加は符号化効率を下げる要因となる。それ故、先に示した条件で主画面をタイル分割した場合に、タイルのサイズ(面積)が予め設定された閾値以下であって、互いに接続しても矩形の形状を維持できる場合には、それらのタイルを1つに統合しても良い。例えば、図4(a)の状態で、タイルA6、A7,A8それぞれのサイズが閾値以下であって、互いに接続したとしても矩形形状が維持できるので、タイルA6、A7,A8を1つのタイルとして決定するようにしても良い。 Also, when the main subject moves further to the left from the state of FIG. 4B and tile B moves to the lower left corner position of the main screen, the total number of divided tiles becomes the minimum "4". That is, the number of tiles into which the main screen is divided varies in the range of 4 to 9 depending on the position of the main tile. Note that the encoding is performed in tile units. An increase in the number of tiles is a factor in lowering coding efficiency. Therefore, when the main screen is divided into tiles under the above conditions, if the size (area) of the tiles is equal to or less than a preset threshold value and the rectangular shape can be maintained even when the tiles are connected to each other, You may merge those tiles into one. For example, in the state shown in FIG. 4A, the sizes of the tiles A6, A7, and A8 are equal to or less than the threshold value, and the rectangular shape can be maintained even if the tiles A6, A7, and A8 are connected to each other. You may make it decide.

<符号化装置100の全体の処理フロー>
符号化装置100における処理全体の一例を図5のフローチャートに示す。なお、本実施形態におけるフローチャートの制御プログラムは、不揮発性メモリ103に格納されている。そして、符号化装置100の電源がONの状態において、CPU101がその不揮発性メモリ103に格納されているプログラムをメモリ102に展開して実行する。本実施形態における符号化装置100の制御プログラムは、定期的に処理を繰り返し実行してもよい。
<Overall Processing Flow of Encoding Apparatus 100>
An example of overall processing in the encoding device 100 is shown in the flowchart of FIG. Note that the control program of the flowchart in this embodiment is stored in the nonvolatile memory 103 . Then, while the encoding device 100 is powered on, the CPU 101 expands the program stored in the nonvolatile memory 103 into the memory 102 and executes it. The control program of the encoding device 100 in this embodiment may repeatedly execute the process periodically.

S501において、CPU101は、撮像部112で撮影した画像よりも小さい画面サイズである副画像の画面サイズを決定する。CPU101は、操作部104からの操作により、ユーザから設定された画面サイズを設定値として、不揮発性メモリ103に保存しておいた設定情報から、主被写体が含まれる主画面より画面サイズが小さい副画像の画面サイズを決定する。CPU101は、本フローチャートにおける処理をS501からS502へ進める。 In S<b>501 , the CPU 101 determines the screen size of the sub-image that is smaller than the screen size of the image captured by the imaging unit 112 . By operating the operation unit 104, the CPU 101 uses the screen size set by the user as a setting value, and selects a secondary image having a smaller screen size than the main screen including the main subject, from the setting information stored in the nonvolatile memory 103. Determines the screen size of the image. The CPU 101 advances the processing in this flowchart from S501 to S502.

S502において、CPU101は、主被写体を指定する。CPU101は、操作部104からの操作によりユーザにより選択された、予め不揮発性メモリ103に保存されている複数の主被写体情報から主被写体を決定する。また、CPU101は、不揮発性メモリ103に主被写体情報が存在しない場合は、表示部116のライブビュー画像にタッチ操作を促すような表示を重畳し、ユーザによりタッチされた被写体(オブジェクト)を主被写体とする。または、表示部116に重畳される被写体を登録する枠内に主被写体が入るように撮影された被写体を主被写体として不揮発性メモリ103に登録する。CPU101は、本フローチャートにおける処理をS502からS503へ進める。 In S502, the CPU 101 designates a main subject. The CPU 101 determines a main subject from a plurality of pieces of main subject information that are selected by the user through an operation from the operation unit 104 and stored in advance in the nonvolatile memory 103 . Further, when main subject information does not exist in the nonvolatile memory 103, the CPU 101 superimposes a display prompting a touch operation on the live view image on the display unit 116, and displays the subject (object) touched by the user as the main subject. and Alternatively, a subject photographed such that the main subject falls within the frame for registering the subject superimposed on the display unit 116 is registered in the nonvolatile memory 103 as the main subject. The CPU 101 advances the processing in this flowchart from S502 to S503.

S503において、CPU101は、操作部104の動画記録開始ボタンが押されたか否かを判断する。CPU101は、動画記録開始ボタンが押されたと判断した場合(S503のYES)、本フローチャートにおける処理をS503からS504へ進める。また、CPU101は、動画記録開始ボタンが押されていないと判断した場合(S503のNO)、本フローチャートにおける処理をS503で継続する。 In S503, the CPU 101 determines whether or not the moving image recording start button of the operation unit 104 has been pressed. When the CPU 101 determines that the moving image recording start button has been pressed (YES in S503), the processing in this flowchart proceeds from S503 to S504. Further, when the CPU 101 determines that the moving image recording start button has not been pressed (NO in S503), the processing in this flowchart continues in S503.

S504において、CPU101は、符号化処理部114による符号化処理を行う前の設定を行う。CPU101は、符号化処理部114の画面分割部301が参照するための主被写体の情報をメモリ102に書き込む。また、CPU101は、主画面の符号化画像のみファイルに記録するか、主画面と副画面の2画面の符号化画像を別々のファイルに記録するか設定する。更に、CPU101は符号化処理を行うための各種レジスタ設定等を行い、符号化処理部114が動作可能な状態にし、本フローチャートにおける処理をS504からS505に進める。 In S<b>504 , the CPU 101 performs settings before encoding processing by the encoding processing unit 114 . The CPU 101 writes main subject information to the memory 102 for reference by the screen division unit 301 of the encoding processing unit 114 . The CPU 101 also sets whether to record only the coded image of the main screen in a file, or to record the coded images of two screens, the main screen and the sub-screen, in separate files. Furthermore, the CPU 101 performs various register settings and the like for performing encoding processing, makes the encoding processing unit 114 operable, and advances the processing in this flowchart from S504 to S505.

S505において、CPU101は、画像処理部113がメモリ102に保存した画像データのアドレスを符号化処理部114に通知し、符号化処理の実行を命令する。なお、符号化処理部114における詳細な符号化処理に関して図6を用いて後述する。そして、CPU101は、本フローチャートにおける処理をS505からS506へ進める。 In S505, the CPU 101 notifies the encoding processing unit 114 of the address of the image data stored in the memory 102 by the image processing unit 113, and instructs execution of encoding processing. Note that detailed encoding processing in the encoding processing unit 114 will be described later using FIG. Then, the CPU 101 advances the processing in this flowchart from S505 to S506.

S506において、CPU101は、S505で符号化処理部114により生成された符号化画像データとシンタックス情報(付加情報)を記録媒体制御部119により記録媒体120を制御して順次記録する。主画面のみファイルに記録する場合は、主画面の符号化画像データと主画面のシンタックス情報を記録する。主画面と副画面を別々のファイルに記録する場合、主画面の符号化画像データと主画面のシンタックス情報と、副画面の符号化画像データと副画面のシンタックス情報をそれぞれ別々のファイルとなるように記録する。CPU101は、本フローチャートにおける処理をS506からS507に進める。 In S506, the CPU 101 causes the recording medium control unit 119 to control the recording medium 120 to sequentially record the encoded image data and the syntax information (additional information) generated by the encoding processing unit 114 in S505. When only the main screen is recorded in the file, the encoded image data of the main screen and the syntax information of the main screen are recorded. When the main screen and sub-screen are recorded in separate files, the encoded image data for the main screen and the syntax information for the main screen, and the encoded image data for the sub-screen and syntax information for the sub-screen are stored in separate files. Record so that The CPU 101 advances the processing in this flowchart from S506 to S507.

S507において、CPU101は、撮影が終了したか否かを判断する。CPU101は、ユーザからの操作による操作部104からの信号を受信して、撮影が終了したことを判断する。CPU101は、撮影が終了したと判断した場合(S508のYES)、本フローチャートにおける処理をS507からS508へ進める。CPU101は、撮影が終了していないと判断した場合(S507のNO)、本フローチャートにおける処理をS507からS505へ戻す。 In S507, the CPU 101 determines whether or not shooting has ended. The CPU 101 receives a signal from the operation unit 104 according to the user's operation, and determines that the shooting has ended. When the CPU 101 determines that the shooting has ended (YES in S508), the processing in this flowchart proceeds from S507 to S508. When the CPU 101 determines that the shooting has not ended (NO in S507), the processing in this flowchart returns from S507 to S505.

S508において、CPU101は、符号化処理部114に対して符号化処理の終了処理を行う。具体的には、符号化処理部114に存在する不図示のレジスタに終了の値を設定する。CPU101は、本フローチャートにおける処理をS508からS509へ進める。 In S<b>508 , the CPU 101 performs encoding processing termination processing on the encoding processing unit 114 . Specifically, an end value is set in a register (not shown) in the encoding processing unit 114 . The CPU 101 advances the processing in this flowchart from S508 to S509.

S509において、CPU101は、記録媒体制御部119を制御して記録媒体120に記録しているファイルの生成を完了させ、1つのファイルとして読み取り可能な状態とする。CPU101は、本フローチャートにおける処理を終了する。 In S509, the CPU 101 controls the recording medium control unit 119 to complete generation of the file recorded on the recording medium 120, and makes it readable as one file. The CPU 101 ends the processing in this flowchart.

なお、図5で示したフローチャートにおいては、ファイルを記録媒体120に記録したが、通信制御部により通信部を制御して復号装置200にファイルを送信してもよい。 Although the file is recorded on the recording medium 120 in the flowchart shown in FIG.

<符号化装置100のタイル構成の決定処理と符号化処理>
符号化装置100におけるタイル構成の決定と符号化の処理の一例を図6に示す。本処理は、図5を用いて前述したS505におけるCPU101からの要求により実行される、符号化処理部114の処理に関して詳細に説明したものである。
<Tile Configuration Determination Processing and Encoding Processing of Encoding Apparatus 100>
FIG. 6 shows an example of tile configuration determination and encoding processing in the encoding device 100 . This processing is a detailed description of the processing of the encoding processing unit 114, which is executed in response to a request from the CPU 101 in S505 described above with reference to FIG.

S601において、符号化処理部114は、着目フレームがタイル構成の更新タイミングのフレームであるか否かを判定する。これはタイルの分割位置の決定を、フレーム毎に実行するのではなく、ある程度のフレーム間隔で行うためである。実施形態では、予測符号化方法決定部302により着目フレームをIピクチャとして符号化すると判定した場合を、タイル構成の更新タイミングであるものとする。なお、より精度を高くするのであれば、Iピクチャだけでなく、Iピクチャを参照するP,Bピクチャの場合も更新タイミングとしても構わない。 In S<b>601 , the encoding processing unit 114 determines whether or not the frame of interest is the frame at the update timing of the tile configuration. This is because the tile division positions are determined not for each frame but at certain frame intervals. In the embodiment, when the predictive encoding method determining unit 302 determines to encode the frame of interest as an I picture, it is assumed that the tile configuration is updated. Note that if the accuracy is to be improved, not only the I picture but also the P and B pictures that refer to the I picture may be used as the update timing.

符号化処理部114は、着目フレームがタイル構成の更新タイミングであると判断した場合(S601のYES)、本フローチャートにおける処理をS601からS602へ進める。符号化処理部114は、着目フレームがタイル構成の更新タイミングではないと判断した場合(S601のNO)、処理をS611に進め、前フレームと同じタイル構成に基づく符号化を行うことになる。 When the encoding processing unit 114 determines that it is time to update the tile configuration of the frame of interest (YES in S601), the processing in this flowchart proceeds from S601 to S602. If the encoding processing unit 114 determines that it is not the tile configuration update timing for the frame of interest (NO in S601), the processing advances to S611 to perform encoding based on the same tile configuration as the previous frame.

S602において、符号化処理部114は、画像処理部113あるいはCPU101が、メモリ102の所定アドレスに書き込んだ主被写体範囲情報NEW(着目フレーム内の主被写体のサイズと位置を示す情報)を取得する。符号化処理部114は、本フローチャートにおける処理をS602からS603へ進める。なお、符号化処理部114は、画面分割部301により主被写体の範囲を検出してもよい。また、主被写体の範囲は、主被写体の外接矩形とする。 In S602, the encoding processing unit 114 acquires the main subject range information NEW (information indicating the size and position of the main subject in the frame of interest) written at a predetermined address in the memory 102 by the image processing unit 113 or the CPU 101. The encoding processing unit 114 advances the processing in this flowchart from S602 to S603. Note that the encoding processing unit 114 may detect the range of the main subject using the screen division unit 301 . Also, the range of the main subject is assumed to be the circumscribed rectangle of the main subject.

S603において、符号化処理部114は、画面分割部301により主被写体の範囲が副画像の画像サイズよりも大きいか否かを判断する。実施形態では、主被写体の範囲を規定する水平又は垂直方向の画素数のいずれかが副画像のそれよりも大きい場合に、主被写体の範囲が副画像の画像サイズよりも大きいと判定される。符号化処理部114は、主被写体の範囲が副画像の画像サイズよりも大きい場合(S603のYES)、本フローチャートにおける処理をS603からS608へ進める。符号化処理部114は、主被写体の範囲が副画像の画像サイズ以下である場合(S603のNO)、本フローチャートにおける処理をS603からS604へ進める。 In S<b>603 , the encoding processing unit 114 determines whether the range of the main subject is larger than the image size of the sub-image by the screen division unit 301 . In an embodiment, it is determined that the extent of the main subject is larger than the image size of the sub-image if either the number of pixels in the horizontal or vertical direction defining the extent of the main subject is larger than that of the sub-image. If the range of the main subject is larger than the image size of the sub-image (YES in S603), the encoding processing unit 114 advances the processing in this flowchart from S603 to S608. If the range of the main subject is equal to or smaller than the image size of the sub-image (NO in S603), the encoding processing unit 114 advances the processing in this flowchart from S603 to S604.

S604において、符号化処理部114は、画面分割部301により主被写体の位置が移動したか否かを判断する。符号化処理部114は、メモリ102に保存されている主被写体範囲情報NEWと、前回のタイル構成の更新タイミング時のピクチャ(前回のIピクチャ)における主被写体範囲情報OLDの位置から移動したか否かを判断する。符号化処理部114は、主被写体が移動したと判断した場合(S604のYES)、本フローチャートにおける処理をS604からS605へ進める。符号化処理部114は、主被写体が移動しなかったと判断した場合(S604のNO)、タイルの構成は変更しないと判断し、本フローチャートにおける処理をS604からS611へ進める。なお、符号化処理部114は、予測符号化処理部303による主被写体が存在する画像ブロックの動きベクトル量により、主被写体が移動したか否かを判断してもよい。 In S604, the encoding processing unit 114 determines whether the screen dividing unit 301 has moved the position of the main subject. The encoding processing unit 114 determines whether or not the position of the main subject range information NEW stored in the memory 102 and the position of the main subject range information OLD in the picture (previous I-picture) at the previous tile configuration update timing have been moved. to judge whether When the encoding processing unit 114 determines that the main subject has moved (YES in S604), the processing in this flowchart proceeds from S604 to S605. When the encoding processing unit 114 determines that the main subject has not moved (NO in S604), the encoding processing unit 114 determines not to change the tile configuration, and advances the processing in this flowchart from S604 to S611. Note that the encoding processing unit 114 may determine whether or not the main subject has moved based on the motion vector amount of the image block in which the main subject exists, which is obtained by the predictive encoding processing unit 303 .

S605において、符号化処理部114は、画面分割部301により主被写体範囲情報NEWと主被写体範囲情報OLDから移動量を算出する。符号化処理部114は、移動量が不揮発性メモリ103に予め記録されている所定値と比較し、移動量が所定値以下である場合、本フローチャートにおける処理をS605からS607へ進める。符号化処理部114は、移動量が不揮発性メモリ103に記録されている所定値より大きい場合、本フローチャートにおける処理をS605からS606へ進める。 In S<b>605 , the encoding processing unit 114 uses the screen dividing unit 301 to calculate the movement amount from the main subject range information NEW and the main subject range information OLD. The encoding processing unit 114 compares the amount of movement with a predetermined value prerecorded in the nonvolatile memory 103, and if the amount of movement is equal to or less than the predetermined value, advances the processing in this flowchart from S605 to S607. If the movement amount is larger than the predetermined value recorded in the nonvolatile memory 103, the encoding processing unit 114 advances the processing in this flowchart from S605 to S606.

S606において、符号化処理部114は、画面分割部301により主タイルの位置を、主被写体範囲情報OLDから主被写体範囲情報NEWの方向に、所定値だけ副画像を移動させた位置を、新たな主タイルの位置とする。そして、符号化処理部114は、図4で示したように、主タイル以外のタイル位置を主タイルの位置に合わせて決定する。符号化処理部114は、本フローチャートにおける処理をS606からS611へ進める。 In S606, the encoding processing unit 114 converts the position of the main tile by the screen dividing unit 301 into a new position obtained by moving the sub-image by a predetermined value in the direction from the main subject range information OLD to the main subject range information NEW. Position the main tile. Then, the encoding processing unit 114 determines the positions of the tiles other than the main tile according to the positions of the main tiles, as shown in FIG. The encoding processing unit 114 advances the processing in this flowchart from S606 to S611.

S607において、符号化処理部114は、画面分割部301により、主被写体範囲情報NEWの位置にあわせて主タイルを決定する。例えば、主被写体の中心位置が、主体タイルの中心位置に合わせる等がその代表的な処理である。また、符号化処理部114は、図4で示したように、主タイル以外のタイル位置を主タイルの位置に合わせて決定する。符号化処理部114は、本フローチャートにおける処理をS606からS611へ進める。 In S607, the encoding processing unit 114 uses the screen division unit 301 to determine the main tile according to the position of the main subject range information NEW. For example, a typical process is to align the center position of the main subject with the center position of the subject tile. Also, the encoding processing unit 114 determines the positions of tiles other than the main tile according to the positions of the main tiles, as shown in FIG. The encoding processing unit 114 advances the processing in this flowchart from S606 to S611.

S608において、符号化処理部114は、画面分割部301により、副画像の動画を別ファイルとして生成しているか否かを判断する。符号化処理部114は、CPU101により設定されたレジスタを確認する。S608にて、符号化処理部114は、副画像の動画を別ファイルとして生成しないと判断した場合、本フローチャートにおける処理をS608からS610へ進める。符号化処理部114は、副画像の動画を別ファイルとして生成しないと判断した場合、本フローチャートにおける処理をS608からS609へ進める。 In S<b>608 , the encoding processing unit 114 determines whether or not the screen division unit 301 has generated a moving image of the sub-image as a separate file. The encoding processing unit 114 confirms the register set by the CPU 101 . If the encoding processing unit 114 determines in S608 not to generate the moving image of the sub-image as a separate file, the processing in this flowchart proceeds from S608 to S610. When the encoding processing unit 114 determines not to generate the moving image of the sub-image as a separate file, the processing in this flowchart proceeds from S608 to S609.

S609において、符号化処理部114は、画面分割部301により、主タイルを生成しない。つまり、符号化処理部114は、主画像の複数のタイルへの分割を行わず、主画像全体を1つのタイルとして決定する。符号化処理部114は、本フローチャートにおける処理をS606からS611へ進める。 In S<b>609 , the encoding processing unit 114 causes the screen dividing unit 301 not to generate the main tile. That is, the encoding processing unit 114 determines the entire main image as one tile without dividing the main image into a plurality of tiles. The encoding processing unit 114 advances the processing in this flowchart from S606 to S611.

S610において、符号化処理部114は、画像処理部113に対して縮小処理を要求する。画像処理部113は、要求に従い主画像を副画像の画像サイズに縮小してメモリ102に保存する。なお、主画像はそのままメモリ102に残しておくものとする。符号化処理部114は、本フローチャートにおける処理をS610からS611へ進める。 In S610, the encoding processing unit 114 requests the image processing unit 113 to perform reduction processing. The image processing unit 113 reduces the main image to the image size of the sub-image according to the request and saves it in the memory 102 . Note that the main image is left in the memory 102 as it is. The encoding processing unit 114 advances the processing in this flowchart from S610 to S611.

S611において、符号化処理部114は、主被写体範囲情報NEWを主被写体範囲情報OLDとしてメモリ102に保存する。符号化処理部114は、本フローチャートにおける処理をS611からS612へ進める。 In S611, the encoding processing unit 114 stores the main subject range information NEW in the memory 102 as the main subject range information OLD. The encoding processing unit 114 advances the processing in this flowchart from S611 to S612.

S612において、符号化処理部114は、符号量制御部307により設定される量子化テーブルにおける値として、主タイルに対しては予め設定された小さい値を設定し、主タイル以外において、それよりも大きい値を設定する。符号化処理部114は、本フローチャートにおける処理をS612からS613へ進める。 In S612, the encoding processing unit 114 sets a preset small value for the main tile as a value in the quantization table set by the code amount control unit 307, and sets a smaller value for the tiles other than the main tile. Set a large value. The encoding processing unit 114 advances the processing in this flowchart from S612 to S613.

S613において、符号化処理部114は、主画像に対する符号化処理を実行する。符号化処理に関しては、図3を用いて上述した通りであるが、主タイルの符号化では、着目フレームの種類を問わず、主タイル外の領域を参照せずに符号化を行う。これは、主タイルを単独で復号できるようにするためである。なお、S608の判断処理と同様に、副画像の動画を別ファイルで生成する場合には、副画像に対する符号化処理を別途実施する。符号化処理部114は、S610において縮小処理により副画像が別データとして存在する場合は、縮小画像を副画像として符号化処理する。 In S613, the encoding processing unit 114 performs encoding processing on the main image. The encoding process is as described above with reference to FIG. 3, but encoding of the main tile is performed without referring to areas outside the main tile regardless of the type of frame of interest. This is so that the main tile can be decoded independently. As with the determination process in S608, when the moving image of the sub-image is generated in a separate file, the encoding process for the sub-image is separately performed. If the sub-image exists as separate data due to the reduction processing in S610, the encoding processing unit 114 performs encoding processing on the reduced image as the sub-image.

なお、後述するように、復号装置200が主タイル単独で復号できるようにするためには、主タイルの符号化データの格納アドレス位置が判明している必要がある。そこで、符号化処理部114は、主画像の左上隅のタイルからラスタースキャン順に符号化を行う際に、各タイルの符号化データの符号量を累積加算していく。そして、復号装置200が主タイルの符号化データを開始する際の累積加算結果(正確には累積加算結果+1)を、主タイルの符号化データの先頭アドレスとして、着目フレームのシンタックス情報に含めるようにする。 As will be described later, in order for the decoding device 200 to be able to decode the main tile alone, it is necessary to know the storage address position of the encoded data of the main tile. Therefore, the encoding processing unit 114 cumulatively adds the code amount of the encoded data of each tile when encoding is performed in raster scan order from the tile at the upper left corner of the main image. Then, the result of cumulative addition when the decoding device 200 starts the encoded data of the main tile (more precisely, the result of cumulative addition +1) is included in the syntax information of the frame of interest as the start address of the encoded data of the main tile. make it

以上の着目フレームに対する符号化処理を終えると、符号化処理部114は本フローチャートにおける処理をS613からS614へ進める。 After completing the encoding process for the frame of interest described above, the encoding processing unit 114 advances the process in this flowchart from S613 to S614.

S614において、符号化処理部114は、符号化された主画像データのシンタックス情報にタイルの構成を示した情報を付加してメモリ102に記録する。また、主画像のシンタックス情報には、副画像の存在と主タイルの範囲情報を付加してメモリ102に保存する。なお、の動画を別ファイルで生成する場合には、符号化された副画像データのシンタックス情報にタイルの構成を示した情報を付加してメモリ102に記録する。なお、副画像の存在と主タイルの範囲情報は、シンタックス以外にファイルとして生成する際のコンテナ情報に含めてもよいものとする。符号化処理部114は、本フローチャートにおける処理をS614で終了する。 In S<b>614 , the encoding processing unit 114 adds information indicating the tile configuration to the syntax information of the encoded main image data, and records the information in the memory 102 . Also, the presence of the sub-image and the range information of the main tile are added to the syntax information of the main image and stored in the memory 102 . When the moving image is generated in a separate file, information indicating the tile configuration is added to the syntax information of the encoded sub-image data and recorded in the memory 102 . In addition to the syntax, the existence of the sub-image and the range information of the main tile may be included in the container information when generating the file. The encoding processing unit 114 ends the processing in this flowchart in S614.

なお、図6を用いて上述した処理はCPU101で行ってもよいものとする。また、主画像と副画像の両方を生成する処理としたが、主画像または副画像のいずれかのみを生成してもよいものとする。また、図5、図6で説明した符号化装置100においてタイルにより処理を行う構成としたが、スライス方向で構成できる横長の副画像であればタイルの代わりにスライスにより構成してもよいものとする。更に、タイル及び主タイルの中にスライスが含まれていてもよいものとする。 Note that the processing described above with reference to FIG. 6 may be performed by the CPU 101 . Also, although the process is described as generating both the main image and the sub-image, only either the main image or the sub-image may be generated. Also, although the coding apparatus 100 described with reference to FIGS. 5 and 6 is configured to perform processing using tiles, it is possible to configure slices instead of tiles as long as it is a horizontally long sub-image that can be configured in the slice direction. do. Furthermore, slices may be included in tiles and main tiles.

<復号装置200の全体の処理フロー>
復号装置200における副画像(主タイル)を復号して再生する際の処理全体の一例を示す。これは、表示装置300の表示解像度が主タイルと同じである場合と考える分かりやすい。なお、本実施形態におけるフローチャートの制御プログラムは、復号装置200の電源がONの状態において、不揮発性メモリ203に格納されているプログラムをメモリ202に展開してCPU201が実行する。本実施形態における復号装置200の制御プログラムは、定期的に処理を繰り返し実行してもよい。なお、本制御プログラムは操作部204の再生開始ボタンをユーザにより押下されて開始するものとする。また、本制御プログラムは記録媒体制御部214により記録媒体215を制御することで、ファイル情報を読み取り、メモリ202に保存してから処理を実行する。または、本制御プログラムは通信制御部211により通信部212を制御して、ファイル情報を受信して、メモリ202に保存してから処理を実行してもよい。
<Overall Processing Flow of Decoding Device 200>
An example of overall processing when decoding and reproducing a sub-image (main tile) in the decoding device 200 is shown. This is easily understood by considering the case where the display resolution of the display device 300 is the same as that of the main tiles. Note that the control program of the flowchart in the present embodiment is executed by the CPU 201 after expanding the program stored in the nonvolatile memory 203 into the memory 202 while the decoder 200 is powered on. The control program of the decryption device 200 in this embodiment may periodically and repeatedly execute the process. It is assumed that this control program is started when the user presses the reproduction start button of the operation unit 204 . Further, the present control program controls the recording medium 215 by the recording medium control unit 214 to read the file information, store it in the memory 202, and then execute the process. Alternatively, the control program may control the communication unit 212 by the communication control unit 211 to receive the file information, store it in the memory 202, and then execute the process.

S701において、CPU201は、ファイルのコンテナ情報あるいは、シンタックス情報から、再生を行うフレームにおけるタイル情報を取得してメモリ202へ記録する。CPU201は、本フローチャートにおける処理をS701からS702へ進める。 In S<b>701 , the CPU 201 acquires tile information in the frame to be reproduced from the container information or syntax information of the file and records it in the memory 202 . The CPU 201 advances the processing in this flowchart from S701 to S702.

S702において、CPU201は、S701により取得したタイル情報から再生するフレームにおける副画像の有無を判断する。CPU201は、副画像が存在する場合(S702のYES)、本フローチャートにおける処理をS702からS703へ進める。CPU201は、副画像が存在しない場合(S702のNO)、本フローチャートにおける処理をS702からS704へ進める。 In S702, the CPU 201 determines whether or not there is a sub-image in the frame to be reproduced from the tile information acquired in S701. If the sub-image exists (YES in S702), the CPU 201 advances the processing in this flowchart from S702 to S703. If the sub-image does not exist (NO in S702), the CPU 201 advances the processing in this flowchart from S702 to S704.

S703において、CPU201は、シンタックス情報に含まれる副画像の符号化データの格納アドレスを用いて復号処理部213を制御することで副画像を構成する主タイルのみの復号処理を行わせる。復号処理部213により復号されたデータはメモリ202に保存される。CPU201は、本フローチャートにおける処理をS703からS706へ進める。 In S703, the CPU 201 controls the decoding processing unit 213 using the storage address of the encoded data of the sub-image included in the syntax information to perform decoding processing only for the main tiles forming the sub-image. Data decoded by the decoding processing unit 213 is stored in the memory 202 . The CPU 201 advances the processing in this flowchart from S703 to S706.

S704において、CPU201は、復号処理部213を制御することで主画像の符号化画像データの復号処理を行わせる。復号処理部213により復号して得た主画像はメモリ202に保存される。CPU201は、本フローチャートにおける処理をS704からS705へ進める。S705において、CPU201は、メモリ202に保存された画像データを、副画像の画像サイズにまで縮小して、メモリ202に保存する。実施形態では、主画像は8192×4320画素であり、副画像は4096×2160画素である。それ故、CPU201は、例えば主画像における2×2画素から、縮小画像の1画素を求める処理を行う。例えば、CPU201は、主画像内の2×2画素内の予め設定された位置の1画素、或いは、2×2画素の平均値を縮小画像の1画素とすれば良い。CPU201は、本フローチャートにおける処理をS704からS705へ進める。 In S704, the CPU 201 controls the decoding processing unit 213 to perform decoding processing of the encoded image data of the main image. The main image obtained by decoding by the decoding processing unit 213 is stored in the memory 202 . The CPU 201 advances the processing in this flowchart from S704 to S705. In S<b>705 , the CPU 201 reduces the image data saved in the memory 202 to the image size of the sub-image and saves it in the memory 202 . In an embodiment, the main image is 8192×4320 pixels and the sub-image is 4096×2160 pixels. Therefore, the CPU 201 performs processing to obtain one pixel of the reduced image from, for example, 2×2 pixels of the main image. For example, the CPU 201 may set one pixel at a preset position within 2×2 pixels in the main image or the average value of the 2×2 pixels as one pixel of the reduced image. The CPU 201 advances the processing in this flowchart from S704 to S705.

S706において、CPU201は、表示制御部216を制御して表示装置300に対してメモリ202に保存された、復号処理で得た画像データを出力する。なお、CPU201は、表示装置300が表示可能な画像フォーマットに変換して出力するものとする。CPU201は、本フローチャートにおける処理をS706からS707へ進める。 In S<b>706 , the CPU 201 controls the display control unit 216 to output the image data obtained by the decoding process stored in the memory 202 to the display device 300 . Note that the CPU 201 converts the image into an image format that can be displayed by the display device 300 and outputs the image. The CPU 201 advances the processing in this flowchart from S706 to S707.

S707において、CPU201は、操作部204の再生停止ボタンをユーザにより押下されたか否かを判断する。CPU201は、操作部204の再生停止ボタンをユーザにより押下された場合(S707のYES)、本フローチャートにおける処理をS707で終了する。CPU201は、操作部204の再生停止ボタンをユーザにより押下されていない場合(S707のNO)、本フローチャートにおける処理をS707からS702へ処理を戻す。 In step S<b>707 , the CPU 201 determines whether the user has pressed the playback stop button of the operation unit 204 . When the user presses the playback stop button of the operation unit 204 (YES in S707), the CPU 201 ends the processing in this flowchart in S707. If the user has not pressed the playback stop button of the operation unit 204 (NO in S707), the CPU 201 returns the processing in this flowchart from S707 to S702.

なお、図7で説明した復号装置200において、タイルにより処理を行う構成としたが、スライス方向で構成できる横長の副画像であればタイルの代わりにスライスにより構成してもよいものとする。更に、タイル及び主タイルの中にスライスが含まれていてもよい。 Although the decoding apparatus 200 described with reference to FIG. 7 is configured to perform processing using tiles, it is assumed that horizontally long sub-images that can be configured in the slice direction may be configured using slices instead of tiles. Additionally, slices may be included within tiles and main tiles.

以上説明したように実施形態の符号化装置100によれば、主画像は勿論のこと、主画像内の主被写体を含む副画像領域のみを復号可能な符号化画像データを生成できる。また、副画像と同じ解像度の表示装置を有する復号装置200では、副画像のみを復号して再生することも可能になる。 As described above, according to the encoding apparatus 100 of the embodiment, it is possible to generate encoded image data capable of decoding not only the main image but also only the sub-image area including the main subject in the main image. Also, the decoding device 200 having a display device with the same resolution as the sub-image can decode and reproduce only the sub-image.

なお、上記実施形態では、符号化しようとするフレームが8192×4320画素であり、副画像(主タイル)のサイズを4096×2160画素であるものとして説明したが、副画像のサイズはユーザが所有する表示装置の解像度に合わせて設定できるようにしても良い。この結果、ユーザが所有する表示装置に特化した動画像の部分復号が可能となる。 In the above embodiment, the frame to be encoded is 8192×4320 pixels, and the size of the sub-image (main tile) is 4096×2160 pixels. The resolution may be set according to the resolution of the display device to be used. As a result, it becomes possible to perform partial decoding of a moving image specialized for the display device owned by the user.

[第2の実施形態]
第2の実施形態として、副画面の画面サイズが主タイルの画面サイズと同じサイズで、主タイルの画面サイズを固定のサイズとし、タイル位置を可変としてH.265の符号化を行い、主タイルを復号して得た画面をトリミングして表示する処理を示す。主タイルの位置が変わった場合、復号した画面内からトリミングする位置を徐々に変更する。なお、装置構成は前述した実施形態(第1の実施形態)と同等とし説明は省略する。
[Second embodiment]
As a second embodiment, the screen size of the sub screen is the same as the screen size of the main tile, the screen size of the main tile is fixed, and the tile position is variable. H.265 encoding and decoding of the main tile to trim and display the screen. When the position of the main tile changes, the trimming position is gradually changed from within the decoded screen. Note that the configuration of the device is assumed to be the same as that of the above-described embodiment (first embodiment), and the description thereof is omitted.

H.265では、タイルの境界位置とタイルのサイズはCTU(Coding Tree Unit)単位となる。CTUが取り得る設定値は16×16、32×32、64×64画素のいずれかである。このため、主タイルのみ復号して表示した場合、あるフレーム間でタイル位置が変わると、表示位置が1フレーム間で少なくとも16画素変わるため、不自然な動画となってしまうケースがある。 H. In H.265, tile boundary positions and tile sizes are in units of CTU (Coding Tree Unit). Possible settings for CTU are 16×16, 32×32, and 64×64 pixels. Therefore, when only the main tile is decoded and displayed, if the tile position changes between frames, the display position changes by at least 16 pixels between frames, which may result in an unnatural moving image.

図8を参照して、フレーム間でタイル位置が変わり、不自然な動画となる例を説明する。図8は連続するN乃至N+3の4フレーム分の画像を示しており、図8における参照符号801乃至804は主画像を示し、同811乃至814は副画像(主タイル)を示している。Nフレーム、N+1フレームでは、副画像の左隣のタイルの水平方向サイズはL1であったのに対し、N+2、N+3フレームでの左隣のタイルの水平方向サイズはL1とは異なるL2(L2<L1)となっていることを示している。つまり、副画像の位置は、N+1フレームとN+2フレームで異なった例を示している。この状態で副画像のみを復号して再生すると、N+1フレーム目の副画像と、N+2フレーム目の副画像とで主被写体や背景が突然にずれた位置に表示され、不自然な動画となってしまう。 With reference to FIG. 8, an example in which tile positions change between frames and an unnatural moving image is produced will be described. FIG. 8 shows images for four consecutive frames N to N+3, reference numerals 801 to 804 in FIG. 8 indicate main images, and reference numerals 811 to 814 indicate subimages (main tiles). In the N and N+1 frames, the horizontal size of the tile to the left of the sub-image was L1, whereas in the N+2 and N+3 frames, the horizontal size of the tile to the left was L2 (L2< L1). In other words, the position of the sub-image is different between the N+1 frame and the N+2 frame. If only the sub-image is decoded and reproduced in this state, the main subject and background are displayed at positions that are suddenly shifted between the sub-image of the N+1th frame and the sub-image of the N+2th frame, resulting in an unnatural moving image. put away.

そこで本実施形態では、図9に示すように、連続する主画像901~904から復号して得た副画像(主タイル)911乃至914の画面内をトリミングして表示する。この際、タイル位置が変わった場合、トリミング位置が徐々に変わるようにすることで、タイル位置が変わってた際の不自然さを軽減する。図9の説明は図12のフローチャートと共に後述する。ここで、図9のN+1フレーム目のタイル位置をタイル位置α、N+2フレーム目のタイル位置をタイル位置βとする。 Therefore, in this embodiment, sub-images (main tiles) 911 to 914 obtained by decoding continuous main images 901 to 904 are trimmed and displayed as shown in FIG. At this time, when the tile position changes, by gradually changing the trimming position, the unnaturalness when the tile position changes is reduced. 9 will be described later together with the flowchart of FIG. Here, let the tile position of the (N+1)th frame in FIG. 9 be the tile position α, and the tile position of the (N+2)th frame be the tile position β.

符号化装置100の全体の処理フローは、第1の実施形態と同様とし説明を省略する。ただし、本第2の実施形態では、副画像(主タイル)の画面サイズは固定のサイズとし、主画面のみファイルに記録するものとして説明する。 The overall processing flow of the encoding apparatus 100 is the same as that of the first embodiment, and description thereof is omitted. However, in the second embodiment, the screen size of the sub-image (main tile) is fixed, and only the main screen is recorded in the file.

<符号化装置100のタイル構成決定と符号化の処理フロー>
図10は、第2の実施形態における符号化装置100におけるタイル構成の決定と符号化処理を示すフローチャートである。本処理は、図5を用いて前述したS505におけるCPU101からの要求により実行される、符号化処理部114の処理に関して詳細に説明したものである。
<Tile Configuration Determination and Encoding Processing Flow of Encoding Apparatus 100>
FIG. 10 is a flow chart showing tile configuration determination and encoding processing in the encoding device 100 according to the second embodiment. This processing is a detailed description of the processing of the encoding processing unit 114, which is executed in response to a request from the CPU 101 in S505 described above with reference to FIG.

S1001において、符号化処理部114はタイル更新のタイミングであるか否かを判定する。第1の実施形態と同様、予測符号化方法決定部302により着目フレームをIピクチャとする符号化すると判定した場合を、タイル更新のタイミングとする。勿論、これに加えてIピクチャを参照するP,Bピクチャの符号化タイミングを更新タイミングとしても構わない。着目フレームに対してタイル構成の更新をすべきと判定された場合、符号化処理部114は、本フローチャートにおける処理をS1001からS1002へ進める。符号化処理部114は、更新タイミングではないと判定した場合、本フローチャートにおける処理をS1001からS1006へ進める。 In S1001, the encoding processing unit 114 determines whether it is time to update the tile. As in the first embodiment, the tile update timing is set when the predictive encoding method determination unit 302 determines that the frame of interest is to be coded as an I picture. Of course, in addition to this, the coding timing of the P and B pictures that refer to the I picture may be used as the update timing. When it is determined that the tile configuration should be updated for the frame of interest, the encoding processing unit 114 advances the processing in this flowchart from S1001 to S1002. When the encoding processing unit 114 determines that it is not the update timing, the processing in this flowchart proceeds from S1001 to S1006.

S1002において、符号化処理部114は、画像処理部113あるいはCPU101が、メモリ102の所定アドレスに書き込んだ主被写体範囲情報NEWを取得する。符号化処理部114は、本フローチャートにおける処理をS1002からS1003へ進める。なお、符号化処理部114は、画面分割部301により主被写体の範囲を検出してもよい。 In S<b>1002 , the encoding processing unit 114 acquires main subject range information NEW written at a predetermined address in the memory 102 by the image processing unit 113 or the CPU 101 . The encoding processing unit 114 advances the processing in this flowchart from S1002 to S1003. Note that the encoding processing unit 114 may detect the range of the main subject using the screen division unit 301 .

S1003において、符号化処理部114は、画面分割部301により主被写体の位置が移動したか否かを判断する。符号化処理部114は、メモリ102に保存されている主被写体範囲情報NEWで示される位置と、前回の更新タイミング(前回のIピクチャの符号化タイミング)における主被写体範囲情報OLDが示す位置の差分に基づき、移動したか否かを判断する。符号化処理部114は、主被写体が移動したと判断した場合、本フローチャートにおける処理をS1003からS1004へ進める。また、符号化処理部114は、主被写体が移動しなかったと判断した場合、タイル構成は変更しないと判断し、本フローチャートにおける処理をS1003からS1006へ進める。なお、符号化処理部114は、予測符号化処理部303による主被写体が存在する画像ブロックの動きベクトル量により、主被写体が移動したか否かを判断してもよい。 In S1003, the encoding processing unit 114 determines whether the screen dividing unit 301 has moved the position of the main subject. The encoding processing unit 114 calculates the difference between the position indicated by the main subject range information NEW stored in the memory 102 and the position indicated by the main subject range information OLD at the previous update timing (previous I-picture encoding timing). Based on the above, it is determined whether or not it has moved. When the encoding processing unit 114 determines that the main subject has moved, the processing in this flowchart proceeds from S1003 to S1004. If the encoding processing unit 114 determines that the main subject has not moved, the encoding processing unit 114 determines not to change the tile configuration, and advances the processing in this flowchart from S1003 to S1006. Note that the encoding processing unit 114 may determine whether or not the main subject has moved based on the motion vector amount of the image block in which the main subject exists, which is obtained by the predictive encoding processing unit 303 .

S1004において、符号化処理部114は、画面分割部301により主被写体範囲情報NEWと主被写体範囲情報OLDから移動量を算出する。そして、符号化処理部114は、移動量が不揮発性メモリ103に記録されている所定値以下である場合、本フローチャートにおける処理をS1004からS1006へ進める。符号化処理部114は、移動量が不揮発性メモリ103に記録されている所定値より大きい場合、本フローチャートにおける処理をS1004からS1005へ進める。 In S<b>1004 , the encoding processing unit 114 uses the screen division unit 301 to calculate the amount of movement from the main subject range information NEW and the main subject range information OLD. Then, if the movement amount is equal to or less than the predetermined value recorded in the nonvolatile memory 103, the encoding processing unit 114 advances the processing in this flowchart from S1004 to S1006. If the movement amount is greater than the predetermined value recorded in the nonvolatile memory 103, the encoding processing unit 114 advances the processing in this flowchart from S1004 to S1005.

S1005において、符号化処理部114は、主被写体範囲情報OLDから主被写体範囲情報NEWの方向に、所定値だけ副画像を移動させた位置を、更新後の主タイルの位置として決定する。そして、符号化処理部114は、図4で説明したように、主タイルの位置に従って、主タイル以外のタイルの位置を決定する。符号化処理部114は、本フローチャートにおける処理をS1005からS1006へ進める。 In S1005, the encoding processing unit 114 determines the position where the sub-image is moved by a predetermined value in the direction from the main subject range information OLD to the main subject range information NEW as the updated main tile position. Then, the encoding processing unit 114 determines the positions of the tiles other than the main tile according to the position of the main tile, as described with reference to FIG. The encoding processing unit 114 advances the processing in this flowchart from S1005 to S1006.

S1006において、符号化処理部114は、主被写体範囲情報NEWを主被写体範囲情報OLDとしてメモリ102に保存する。符号化処理部114は、本フローチャートにおける処理をS1006からS1007へ進める。 In S1006, the encoding processing unit 114 stores the main subject range information NEW in the memory 102 as the main subject range information OLD. The encoding processing unit 114 advances the processing in this flowchart from S1006 to S1007.

S1007において、符号化処理部114は、符号量制御部307により設定される量子化テーブルにおける値として、主タイルに対しては予め設定された小さい値を設定し、主タイル以外のタイルに対してはそれよりも大きい値を設定する。符号化処理部114は、本フローチャートにおける処理をS1007からS1008へ進める。 In S1007, the encoding processing unit 114 sets a preset small value for the main tile as a value in the quantization table set by the code amount control unit 307, and sets a small value for the tiles other than the main tile. set a value greater than that. The encoding processing unit 114 advances the processing in this flowchart from S1007 to S1008.

S1008において、符号化処理部114は、主画像に対する符号化処理を実行する。符号化処理に関しては、図3を用いて上述した通りである。符号化処理部114は、符号化した画像データをメモリ102に保存する。符号化処理部114は、本フローチャートにおける処理をS1008からS1009へ進める。 In S1008, the encoding processing unit 114 performs encoding processing on the main image. The encoding process is as described above with reference to FIG. The encoding processing unit 114 stores the encoded image data in the memory 102 . The encoding processing unit 114 advances the processing in this flowchart from S1008 to S1009.

S1009において、符号化処理部114は、符号化された主画像データのシンタックス情報にタイルの構成を示した情報を付加してメモリ102に記録する。また、主画像のシンタックス情報には、副画像の存在と主タイルの範囲情報を付加してメモリ102に保存する。なお、副画像(主タイル)の範囲情報は、シンタックス以外にファイルとして生成する際のコンテナ情報に含めてもよい。符号化処理部114は、本フローチャートにおける処理をS1009で終了する。 In S<b>1009 , the encoding processing unit 114 adds information indicating the tile configuration to the syntax information of the encoded main image data, and records the information in the memory 102 . Also, the presence of the sub-image and the range information of the main tile are added to the syntax information of the main image and stored in the memory 102 . In addition to the syntax, the range information of the sub-image (main tile) may be included in the container information when generating the file. The encoding processing unit 114 ends the processing in this flowchart in S1009.

なお、図10を用いて上述した処理はCPU101で行ってもよいものとする。また、タイル及び主タイルの中にスライスが含まれていてもよいものとする。 Note that the processing described above with reference to FIG. 10 may be performed by the CPU 101 . It is also assumed that slices may be included in tiles and main tiles.

<復号装置200の全体の処理フロー>
図11に第2の実施形態における復号装置200における副画像を復号して再生する際の処理を示す。なお、本実施形態におけるフローチャートの制御プログラムは、復号装置200の電源がONの状態において、不揮発性メモリ203に格納されているプログラムをメモリ202に展開してCPU201が実行する。本実施形態における復号装置200の制御プログラムは、定期的に処理を繰り返し実行してもよい。なお、本制御プログラムは操作部204の再生開始ボタンをユーザにより押下されて開始するものとする。また、本制御プログラムは記録媒体制御部214により記録媒体215を制御することで、ファイル情報を読み取り、メモリ202に保存してから処理を実行する。または、本制御プログラムは通信制御部211により通信部212を制御して、ファイル情報を受信して、メモリ202に保存してから処理を実行してもよい。
<Overall Processing Flow of Decoding Device 200>
FIG. 11 shows processing when decoding and reproducing a sub-image in the decoding device 200 according to the second embodiment. Note that the control program of the flowchart in the present embodiment is executed by the CPU 201 after expanding the program stored in the nonvolatile memory 203 into the memory 202 while the decoder 200 is powered on. The control program of the decryption device 200 in this embodiment may periodically and repeatedly execute the process. It is assumed that this control program is started when the user presses the reproduction start button of the operation unit 204 . Further, the present control program controls the recording medium 215 by the recording medium control unit 214 to read the file information, store it in the memory 202, and then execute the process. Alternatively, the control program may control the communication unit 212 by the communication control unit 211 to receive the file information, store it in the memory 202, and then execute the process.

S1101において、CPU201は、ファイルのコンテナ情報あるいは、シンタックス情報から再生を行うフレームにおけるタイル情報を取得してメモリ202へ記録する。CPU201は、本フローチャートにおける処理をS1101からS1102へ進める。 In S<b>1101 , the CPU 201 acquires tile information in the frame to be reproduced from the container information or syntax information of the file and records it in the memory 202 . The CPU 201 advances the processing in this flowchart from S1101 to S1102.

S1102において、CPU201は、S1101により取得したタイル情報から再生するフレームにおける副画像の有無を判断する。CPU201は、副画像が存在すると判断した場合、本フローチャートにおける処理をS1102からS1105へ進める。CPU201は、副画像が存在しないと判断した場合、本フローチャートにおける処理をS1102からS1103へ進める。 In S1102, the CPU 201 determines whether or not there is a sub-image in the frame to be reproduced from the tile information acquired in S1101. When the CPU 201 determines that the sub-image exists, the process in this flowchart proceeds from S1102 to S1105. When the CPU 201 determines that the sub-image does not exist, the process in this flowchart proceeds from S1102 to S1103.

S1103において、CPU201は、復号処理部213を制御することで主画像を符号化した画像データの復号処理を行う。復号処理部213により復号されたデータはメモリ202に保存される。CPU201は、本フローチャートにおける処理をS1103からS1104へ進める。 In S<b>1103 , the CPU 201 controls the decoding processing unit 213 to perform decoding processing of image data obtained by encoding the main image. Data decoded by the decoding processing unit 213 is stored in the memory 202 . The CPU 201 advances the processing in this flowchart from S1103 to S1104.

S1104において、CPU201は、メモリ202に保存された画像データを副画像の画像サイズに縮小してメモリ202に保存する。CPU201は、本フローチャートにおける処理をS1104からS1108へ進める。 In S<b>1104 , the CPU 201 reduces the image data saved in the memory 202 to the image size of the sub-image and saves it in the memory 202 . The CPU 201 advances the processing in this flowchart from S1104 to S1108.

S1105において、CPU201は、復号処理部213を制御することで副画像を構成する主タイルのみを復号処理する。復号処理部213により復号されたデータはメモリ202に保存される。CPU201は、本フローチャートにおける処理をS1105からS1106へ進める。 In S1105, the CPU 201 controls the decoding processing unit 213 to decode only the main tiles forming the sub-image. Data decoded by the decoding processing unit 213 is stored in the memory 202 . The CPU 201 advances the processing in this flowchart from S1105 to S1106.

S1106において、CPU201は、復号された画像のトリミング位置を決定する。画像のトリミング位置決定の処理は図12にて後述する。CPU201は、本フローチャートにおける処理をS1106からS1107へ進める。 In S1106, the CPU 201 determines the trimming position of the decoded image. The image trimming position determination process will be described later with reference to FIG. The CPU 201 advances the processing in this flowchart from S1106 to S1107.

S1107において、CPU201は、S1106で決定した画像のトリミング位置情報と画像処理部113により画像をトリミングしてメモリ202に保存する。CPU201は、本フローチャートにおける処理をS1107からS1108へ進める。 In S<b>1107 , the CPU 201 trims the image using the image trimming position information determined in S<b>1106 and the image processing unit 113 , and stores the trimmed image in the memory 202 . The CPU 201 advances the processing in this flowchart from S1107 to S1108.

S1108において、CPU201は、表示制御部216を制御して表示装置300に、メモリ202に保存された画像データを出力する。なお、CPU201は、表示装置300が表示可能な画像フォーマットに変換して出力するものとする。CPU201は、本フローチャートにおける処理をS1108からS1109へ進める。 In S<b>1108 , the CPU 201 controls the display control unit 216 to output the image data saved in the memory 202 to the display device 300 . Note that the CPU 201 converts the image into an image format that can be displayed by the display device 300 and outputs the image. The CPU 201 advances the processing in this flowchart from S1108 to S1109.

S1109において、CPU201は、操作部204の再生停止ボタンをユーザにより押下されたか否かを判断する。CPU201は、操作部204の再生停止ボタンをユーザにより押下されたと判断した場合、本フローチャートにおける処理をS1109で終了する。CPU201は、操作部204の再生停止ボタンをユーザにより押下されていないと判断した場合、本フローチャートにおける処理をS1109からS1110へ進める。 In S<b>1109 , the CPU 201 determines whether or not the user has pressed the playback stop button of the operation unit 204 . When the CPU 201 determines that the user has pressed the playback stop button of the operation unit 204, the processing in this flowchart ends in S1109. When the CPU 201 determines that the user has not pressed the playback stop button of the operation unit 204, the process in this flowchart proceeds from S1109 to S1110.

S1110において、CPU201は、全フレームの再生が終了したか否かを判断する。CPU201は、全フレームの再生が終了したと判断した場合、本フローチャートにおける処理をS1110で終了する。また、CPU201は、全フレームの処理が終了していないと判断した場合、本フローチャートにおける処理をS1110からS1102へ処理を戻す。 In S1110, the CPU 201 determines whether reproduction of all frames has ended. When the CPU 201 determines that reproduction of all frames has ended, the processing in this flowchart ends in S1110. If the CPU 201 determines that the processing of all frames has not been completed, the processing in this flowchart returns from S1110 to S1102.

なお、図11で説明した復号装置200において、タイルにより処理を行う構成としたが、スライス方向で構成できる横長の副画像であればタイルの代わりにスライスにより構成してもよいものとする。更に、タイル及び主タイルの中にスライスが含まれていてもよいものとする。 Although the decoding apparatus 200 described with reference to FIG. 11 is configured to perform processing using tiles, it is also possible to configure sub-images that are oblong sub-images that can be configured in the slice direction using slices instead of tiles. Furthermore, slices may be included in tiles and main tiles.

<トリミング位置の決定処理>
図12のフローチャートを参照して、本第2の実施形態におけるトリミング位置の決定処理の流れを説明する。
<Processing to determine trimming position>
The flow of the trimming position determination process according to the second embodiment will be described with reference to the flowchart of FIG.

S1201において、CPU201は、復号対象の着目フレームが1フレーム目か否かを判断する。CPU201は、着目フレームが1フレーム目であると判断した場合、本フローチャートにおける処理をS1201からS1202へ進める。また、CPU201は、復号対象の着目フレームが1フレーム目ではないと判断した場合、本フローチャートにおける処理をS1201からS1204へ進める。 In S1201, the CPU 201 determines whether the frame of interest to be decoded is the first frame. When the CPU 201 determines that the frame of interest is the first frame, the processing in this flowchart proceeds from S1201 to S1202. If the CPU 201 determines that the frame of interest to be decoded is not the first frame, the CPU 201 advances the process from S1201 to S1204 in the flowchart.

S1202において、CPU201は、メモリ202に保存されているトリミング位置変更フラグを0に設定し、本フローチャートにおける処理をS1202からS1203へ進める。 In S1202, the CPU 201 sets the trimming position change flag stored in the memory 202 to 0, and advances the processing in this flowchart from S1202 to S1203.

S1203において、CPU201は、図9の副画像911、912のように、副画像の中央部をトリミングの境界位置として決定し、本フローチャートにおける処理をS1203で終了する。 In S1203, the CPU 201 determines the center portion of the sub-image as the border position for trimming, like the sub-images 911 and 912 in FIG. 9, and ends the processing in this flowchart in S1203.

S1204において、CPU201は、トリミング位置変更フラグが1となっているか否かを判断する。CPU201は、トリミング位置変更フラグが1であると判断した場合、本フローチャートにおける処理をS1204からS1208へ進める。また、CPU201は、トリミング位置変更フラグが1ではないと判断した場合、本フローチャートにおける処理をS1204からS1205へ進める。 In S<b>1204 , the CPU 201 determines whether the trimming position change flag is 1 or not. When the CPU 201 determines that the trimming position change flag is 1, the processing in this flowchart proceeds from S1204 to S1208. If the CPU 201 determines that the trimming position change flag is not 1, it advances the processing in this flowchart from S1204 to S1205.

S1205において、CPU201は、タイルに関するシンタックス情報から現フレームの主タイルの位置が1つ前のフレームの主タイルの位置から変わったか否かを判断する。CPU201は、主タイルの位置が変わったと判断した場合、本フローチャートにおける処理をS1205からS1206へ進める。また、CPU201は、主タイルの位置が変わっていないと判断した場合、本フローチャートにおける処理をS1204からS1203へ進める。 In S1205, the CPU 201 determines whether the position of the main tile of the current frame has changed from the position of the main tile of the previous frame based on the syntax information regarding the tile. When the CPU 201 determines that the position of the main tile has changed, the process in this flowchart proceeds from S1205 to S1206. If the CPU 201 determines that the position of the main tile has not changed, it advances the processing in this flowchart from S1204 to S1203.

S1206において、CPU201は、トリミング位置変更フラグを1にし、本フローチャートにおける処理をS1206からS1207へ進める。 In S1206, the CPU 201 sets the trimming position change flag to 1, and advances the processing in this flowchart from S1206 to S1207.

S1207において、CPU201は、トリミングカウンタを0にし、本フローチャートにおける処理をS1207からS1208へ進める。 In S1207, the CPU 201 sets the trimming counter to 0, and advances the processing in this flowchart from S1207 to S1208.

S1208において、CPU201は、トリミングカウンタの値に応じてトリミング位置を決め、本フローチャートにおける処理をS1208からS1209へ進める。トリミング位置は、トリミングカウンタの値に応じて、図9の副画像913や914のように、主画面を基準とした位置で考えた時のタイル位置αの中央部からタイル位置βの中央部に徐々に変わるようにする。トリミングカウンタの値に応じたトリミング位置は、フレームレートや主被写体の移動速度に応じて可変としてもよい。 In S1208, the CPU 201 determines the trimming position according to the value of the trimming counter, and advances the processing in this flowchart from S1208 to S1209. The trimming position varies from the center of the tile position α to the center of the tile position β when considering the position based on the main screen, like the sub-images 913 and 914 in FIG. 9, according to the value of the trimming counter. Let it change gradually. The trimming position according to the value of the trimming counter may be variable according to the frame rate or moving speed of the main subject.

S1209において、CPU201は、トリミングカウンタをインクリメントし、本フローチャートにおける処理をS1209からS1210へ進める。 In S1209, the CPU 201 increments the trimming counter and advances the processing in this flowchart from S1209 to S1210.

S1210において、CPU201は、トリミングカウンタの値が閾値以上か否かを判断する。CPU201は、トリミングカウンタの値が閾値以上であると判断した場合、本フローチャートにおける処理をS1210からS1211へ進める。また、CPU201は、トリミングカウンタの値が閾値未満であると判断した場合、本フローチャートにおける処理をS1210で終了する。 In S1210, the CPU 201 determines whether the value of the trimming counter is greater than or equal to the threshold. When the CPU 201 determines that the value of the trimming counter is equal to or greater than the threshold, the processing in this flowchart proceeds from S1210 to S1211. Further, when the CPU 201 determines that the value of the trimming counter is less than the threshold value, the processing in this flowchart ends in S1210.

S1211において、CPU201は、トリミング位置変更フラグを0にし、本フローチャートにおける処理をS1211で終了する。 In S1211, the CPU 201 sets the trimming position change flag to 0, and ends the processing in this flowchart in S1211.

以上説明したように本第2の実施形態によれば、第1の実施形態と比較して、主画像内の副画像をより自然な動画像として再生できるようになる。 As described above, according to the second embodiment, the sub-image within the main image can be reproduced as a more natural moving image than in the first embodiment.

(他の実施形態)
本発明に係る符号化装置100は、本実施形態で説明した符号化装置100に限定されるものではない。また、本発明に係る復号装置200も本実施形態で説明した復号装置200に限定されるものではない。例えば、本発明に係る符号化装置100及び復号装置200は、複数の装置から構成されるシステムにより実現することも可能である。
(Other embodiments)
The encoding device 100 according to the present invention is not limited to the encoding device 100 described in this embodiment. Also, the decoding device 200 according to the present invention is not limited to the decoding device 200 described in this embodiment. For example, the encoding device 100 and decoding device 200 according to the present invention can also be realized by a system composed of a plurality of devices.

また、本実施形態で説明した様々な処理及び機能は、コンピュータプログラムにより実現することも可能である。この場合、本発明に係るコンピュータプログラムは、コンピュータ(CPU等を含む)で実行可能であり、本実施形態で説明した様々な機能を実現することになる。 Also, various processes and functions described in this embodiment can be realized by a computer program. In this case, the computer program according to the present invention can be executed by a computer (including a CPU, etc.), and implements various functions described in this embodiment.

本発明に係るコンピュータプログラムは、コンピュータ上で稼動しているOS(Operating System)などを利用して、本実施形態で説明した様々な処理及び機能を実現してもよいことは言うまでもない。 It goes without saying that the computer program according to the present invention may implement the various processes and functions described in the present embodiment using an OS (Operating System) running on the computer.

また、本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。 Further, the present invention supplies a program that implements one or more functions of the above-described embodiments to a system or device via a network or a storage medium, and one or more processors in the computer of the system or device executes the program. It can also be realized by a process of reading and executing. It can also be implemented by a circuit (for example, ASIC) that implements one or more functions.

100…符号化装置、101…CPU、102…メモリ、103…不揮発性メモリ、104…操作部、111…レンズ、112…撮像部、113…画像処理部、114…符号化処理部、115…表示制御部、116…表示部、117…通信制御部、118…通信部、119…記録媒体制御部、120…記録媒体、130…内部バス、200…復号装置、201…CPU、202…メモリ、203…不揮発性メモリ、204…操作部、210…通信制御部、211…通信部、212…復号処理部、213…記録媒体制御部、214…記録媒体、215…表示制御部、220…内部バス、300…表示装置、301…画面分割部、302…予測符号化方法決定部、303…予測符号化処理部、305…直交変換量子化部、306…局所復号部、307…符号量制御部、308…エントロピー符号化部、309…多重化処理部 DESCRIPTION OF SYMBOLS 100... Encoding apparatus, 101... CPU, 102... Memory, 103... Nonvolatile memory, 104... Operation unit, 111... Lens, 112... Imaging unit, 113... Image processing unit, 114... Encoding processing unit, 115... Display Control unit 116 Display unit 117 Communication control unit 118 Communication unit 119 Recording medium control unit 120 Recording medium 130 Internal bus 200 Decoding device 201 CPU 202 Memory 203 Non-volatile memory 204 operation unit 210 communication control unit 211 communication unit 212 decryption processing unit 213 recording medium control unit 214 recording medium 215 display control unit 220 internal bus, 300... Display device 301... Screen dividing unit 302... Predictive encoding method determining unit 303... Predictive encoding processing unit 305... Orthogonal transform quantizing unit 306... Local decoding unit 307... Code amount control unit 308 ... entropy coding unit, 309 ... multiplexing processing unit

Claims (11)

動画像を符号化する符号化装置であって、
符号化しようとする着目フレームから、主被写体を含み、予め設定されたサイズの副画像の領域の位置を決定する決定手段と、
該決定手段で決定した前記副画像の領域の境界に基づき前記着目フレームを複数の領域に分割する分割手段と、
該分割手段で分割して得た各領域の画像を符号化する符号化手段と、
前記符号化手段で得た符号化データと、前記着目フレームにおける前記副画像の領域の位置、並びに、前記副画像の符号化データの格納アドレスを示す付加情報とから前記着目フレームの符号化データを生成する生成手段とを有し、
前記符号化手段は、
前記着目フレーム内の前記副画像の領域については、当該副画像の領域、或いは以前に符号化されたフレーム内の副画像領域を参照する符号化を行い、
前記着目フレーム内の前記副画像の領域以外の領域については、前記着目フレーム、或いは以前に符号化されたフレームを参照する符号化を行い、
前記決定手段は、符号化しようとする前記着目フレームがIピクチャ、又は、Iピクチャを参照するピクチャである場合を更新タイミングとして、前記主被写体の位置、及び、前記副画像の領域の位置を決定し、
前記符号化手段は、符号化しようとする着目フレームが前記更新タイミングではない場合には、前記副画像の領域の位置が前のフレームと同じであるとして符号化を行う
ことを特徴とする符号化装置。
An encoding device for encoding a moving image,
Determination means for determining the position of a sub-image area of a preset size containing the main subject from the frame of interest to be encoded;
dividing means for dividing the frame of interest into a plurality of regions based on boundaries of the sub-image regions determined by the determining means;
encoding means for encoding an image of each region obtained by dividing by the dividing means;
The encoded data of the frame of interest is obtained from the encoded data obtained by the encoding means, the position of the area of the sub-image in the frame of interest, and additional information indicating the storage address of the encoded data of the sub-image. and generating means for generating
The encoding means are
For the area of the sub-image in the frame of interest, encoding is performed with reference to the area of the sub-image or the sub-image area in the previously encoded frame,
Encoding an area other than the area of the sub-image in the frame of interest with reference to the frame of interest or a previously encoded frame,
The determining means determines the position of the main subject and the position of the sub-image region using update timing when the frame of interest to be coded is an I picture or a picture referring to the I picture. death,
When the frame of interest to be encoded is not at the update timing, the encoding means performs encoding assuming that the position of the area of the sub-image is the same as that of the previous frame. Device.
前記決定手段は、
(1)前記着目フレームにおける主被写体が、前回の更新タイミングの主被写体の位置から移動していない場合は、前記副画像の領域の位置を変更せず、
(2)前記着目フレームにおける主被写体が、前回の更新タイミングの主被写体の位置から移動し、当該移動の量が予め設定された閾値以下の場合には前記着目フレームにおける主被写体の位置に基づいて前記副画像の領域の位置を決定し、
(3)前記着目フレームにおける主被写体が、前回の更新タイミングの主被写体の位置から移動し、当該移動の量が前記閾値を超える場合には、前記前回の主被写体の位置から前記着目フレームの主被写体の位置に向かう方向に、所定値だけ副画像を移動させた位置を、更新後の副画像の領域の位置とする
ことを特徴とする請求項1に記載の符号化装置。
The determining means is
(1) if the main subject in the frame of interest has not moved from the position of the main subject at the previous update timing, without changing the position of the sub-image area;
(2) If the main subject in the frame of interest has moved from the position of the main subject at the previous update timing and the amount of movement is equal to or less than a preset threshold value, the position of the main subject in the frame of interest is determined. determining a location of a region of said sub-image;
(3) When the main subject in the frame of interest has moved from the position of the main subject at the previous update timing, and the amount of movement exceeds the threshold, 2. The encoding device according to claim 1, wherein a position obtained by moving the sub-image by a predetermined value in a direction toward the position of the object is set as the position of the area of the sub-image after updating.
前記主被写体の特徴を設定する設定手段と、
符号化しようとするフレーム内に、前記設定手段で設定した前記主被写体の特徴を有する主被写体の領域を検出する検出手段とを有し、
前記決定手段は、前記主被写体の領域のサイズが前記副画像のサイズ以下の場合、前記副画像の領域を決定する
ことを特徴とする請求項1又は2に記載の符号化装置。
setting means for setting characteristics of the main subject;
detection means for detecting, within a frame to be encoded, a region of the main subject having the characteristics of the main subject set by the setting means;
3. The encoding apparatus according to claim 1, wherein the determining means determines the area of the sub-image when the size of the area of the main subject is equal to or smaller than the size of the sub-image.
前記決定手段は、前記主被写体の領域のサイズが前記副画像のサイズよりも大きい場合、前記着目フレームを前記複数の領域への分割を行わず、前記着目フレームを1つの領域として決定することを特徴とする請求項3に記載の符号化装置。 The determination means determines the frame of interest as one region without dividing the frame of interest into the plurality of regions when the size of the region of the main subject is larger than the size of the sub-image. 4. Encoding device according to claim 3. 前記設定手段は、表示手段に表示される動画像にてユーザが選択したオブジェクトを前記主被写体として決定し、当該決定した主被写体の特徴を抽出する手段を含む
ことを特徴とする請求項3に記載の符号化装置。
4. The method according to claim 3, wherein the setting means includes means for determining an object selected by the user in the moving image displayed on the display means as the main subject and extracting features of the determined main subject. Encoding apparatus as described.
前記副画像の領域のサイズを設定する第2の設定手段を有することを特徴とする請求項1乃至5のいずれか1項に記載の符号化装置。 6. The encoding apparatus according to any one of claims 1 to 5, further comprising second setting means for setting the size of the sub-image area. 前記符号化手段は、前記副画像の領域を符号化する際に第1の量子化パラメータを用いて符号化し、前記副画像の領域を除く領域を符号化する際には前記第1の量子化パラメータより大きい第2の量子化パラメータを用いて符号化する
ことを特徴とする請求項1乃至6のいずれか1項に記載の符号化装置。
The encoding means performs encoding using a first quantization parameter when encoding the area of the sub-image, and uses the first quantization parameter when encoding an area other than the area of the sub-image. The encoding device according to any one of claims 1 to 6, wherein encoding is performed using a second quantization parameter larger than the parameter.
前記副画像の領域の符号化データの別ファイルを生成することを指定する指定手段を更に有し、
前記生成手段は、前記指定手段により別ファイルとして生成することが指定された場合、符号化しようとするフレームから得た符号化データを表すファイルと、前記副画像の領域から得た符号化データを表すファイルとを生成する
ことを特徴とする請求項1乃至7のいずれか1項に記載の符号化装置。
further comprising designating means for designating generation of a separate file of encoded data of the region of the sub-image;
The generation means, when the designation means designates to generate separate files, generates a file representing the encoded data obtained from the frame to be encoded and the encoded data obtained from the area of the sub-image. 8. An encoding device as claimed in any one of claims 1 to 7, characterized in that it generates a file representing the .
符号化対象となる画像を撮像する撮像手段を更に有することを特徴とする請求項1乃至8のいずれか1項に記載の符号化装置。 9. The encoding apparatus according to any one of claims 1 to 8, further comprising imaging means for capturing an image to be encoded. 動画像を符号化する符号化装置の制御方法であって、
符号化しようとする着目フレームから、主被写体を含み、予め設定されたサイズの副画像の領域の位置を決定する決定工程と、
該決定工程で決定した前記副画像の領域の境界に基づき前記着目フレームを複数の領域に分割する分割工程と、
該分割工程で分割して得た各領域の画像を符号化する符号化工程と、
前記符号化工程で得た符号化データと、前記着目フレームにおける前記副画像の領域の位置、並びに、前記副画像の符号化データの格納アドレスを示す付加情報とから前記着目フレームの符号化データを生成する生成工程とを有し、
前記符号化工程は、
前記着目フレーム内の前記副画像の領域については、当該副画像の領域、或いは以前に符号化されたフレーム内の副画像領域を参照する符号化を行い、
前記着目フレーム内の前記副画像の領域以外の領域については、前記着目フレーム、或いは以前に符号化されたフレームを参照する符号化を行い、
前記決定工程は、符号化しようとする前記着目フレームがIピクチャ、又は、Iピクチャを参照するピクチャである場合を更新タイミングとして、前記主被写体の位置、及び、前記副画像の領域の位置を決定し、
前記符号化工程は、符号化しようとする着目フレームが前記更新タイミングではない場合には、前記副画像の領域の位置が前のフレームと同じであるとして符号化を行う
ことを特徴とする符号化装置の制御方法。
A control method for an encoding device that encodes a moving image,
a determination step of determining the position of a sub-image region of a preset size including the main subject from the frame of interest to be encoded;
a dividing step of dividing the frame of interest into a plurality of regions based on boundaries of regions of the sub-image determined in the determining step;
an encoding step of encoding an image of each region obtained by dividing in the dividing step;
The encoded data of the frame of interest is obtained from the encoded data obtained in the encoding step, the position of the area of the sub-image in the frame of interest, and additional information indicating the storage address of the encoded data of the sub-image. and a generating step of generating,
The encoding step includes:
For the area of the sub-image in the frame of interest, encoding is performed with reference to the area of the sub-image or the sub-image area in the previously encoded frame,
Encoding an area other than the area of the sub-image in the frame of interest with reference to the frame of interest or a previously encoded frame,
The determining step determines the position of the main subject and the position of the sub-image region, using update timing when the frame of interest to be encoded is an I picture or a picture that refers to an I picture. death,
In the encoding step, when the frame of interest to be encoded is not at the update timing, encoding is performed assuming that the position of the region of the sub-image is the same as that of the previous frame. How to control the device.
コンピュータが読み込み実行することで、前記コンピュータに、請求項10に記載の方法の各工程を実行させるためのプログラム。 A program that is read and executed by a computer to cause the computer to perform each step of the method according to claim 10.
JP2017208511A 2017-10-27 2017-10-27 Encoding device and its control method and program Active JP7148236B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017208511A JP7148236B2 (en) 2017-10-27 2017-10-27 Encoding device and its control method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017208511A JP7148236B2 (en) 2017-10-27 2017-10-27 Encoding device and its control method and program

Publications (3)

Publication Number Publication Date
JP2019083368A JP2019083368A (en) 2019-05-30
JP2019083368A5 JP2019083368A5 (en) 2020-11-19
JP7148236B2 true JP7148236B2 (en) 2022-10-05

Family

ID=66671217

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017208511A Active JP7148236B2 (en) 2017-10-27 2017-10-27 Encoding device and its control method and program

Country Status (1)

Country Link
JP (1) JP7148236B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011527841A (en) 2008-07-11 2011-11-04 三洋電機株式会社 Image processing apparatus and imaging apparatus using the same
JP2013232724A (en) 2012-04-27 2013-11-14 Fujitsu Ltd Moving image processing device, moving image processing method, and moving image processing program
WO2014002619A1 (en) 2012-06-25 2014-01-03 ソニー株式会社 Image decoding device, image decoding method, image encoding device, and image encoding method
JP2015050584A (en) 2013-08-30 2015-03-16 キヤノン株式会社 Image coding apparatus and control method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10271499A (en) * 1997-03-26 1998-10-09 Sanyo Electric Co Ltd Image processing method using image area, image processing unit using the method and image processing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011527841A (en) 2008-07-11 2011-11-04 三洋電機株式会社 Image processing apparatus and imaging apparatus using the same
JP2013232724A (en) 2012-04-27 2013-11-14 Fujitsu Ltd Moving image processing device, moving image processing method, and moving image processing program
WO2014002619A1 (en) 2012-06-25 2014-01-03 ソニー株式会社 Image decoding device, image decoding method, image encoding device, and image encoding method
JP2015050584A (en) 2013-08-30 2015-03-16 キヤノン株式会社 Image coding apparatus and control method thereof

Also Published As

Publication number Publication date
JP2019083368A (en) 2019-05-30

Similar Documents

Publication Publication Date Title
KR102848127B1 (en) Adaptive loop filtering-based image coding device and method
US10674110B2 (en) Image encoding apparatus, and control method thereof
KR102711456B1 (en) Method and apparatus for image decoding of chroma components
KR102862286B1 (en) Video decoding method and device therefor
KR102775626B1 (en) Image decoding method and the apparatus for chroma components
KR20240131341A (en) Intra prediction method and device based on derivation of intra prediction mode
CN119183659A (en) Image encoding/decoding method, device and recording medium storing bit stream
JP7052893B2 (en) Image decoder, image decoding method and image decoding program
KR102920494B1 (en) Slice type-based image/video coding method and device
KR102727878B1 (en) Image decoding method and device therefor
KR102859275B1 (en) Image decoidng method and the apparatus thereof
KR20240128846A (en) Method and device for coding intra prediction mode
KR102938659B1 (en) Image decoding method and apparatus for chroma quantization parameter data
KR102710817B1 (en) An image decoding method and apparatus
JP7148236B2 (en) Encoding device and its control method and program
JP7770135B2 (en) Image encoding device, method, and program
KR20240016222A (en) Method and apparatus for encoding/decoding image and recording medium for storing bitstream
KR102813335B1 (en) Method and device for high-level syntax signaling for image/video coding
KR102887292B1 (en) Image decoding method and device using simplified residual data coding in an image coding system
JP2018088600A (en) Image processing apparatus, image processing method, and program
CN115997382A (en) Method and apparatus for prediction related residual scaling for video coding
JP2020057898A (en) Image coding device
KR20260019660A (en) In-loop filtering-based image coding device and method
US20260019597A1 (en) Method and apparatus for encoding/decoding image and recording medium for storing bitstream
JP2015050688A (en) Imaging device, control method of imaging device, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201009

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201009

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20210103

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210113

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210827

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210910

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211004

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220204

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220309

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220506

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220526

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220922

R151 Written notification of patent or utility model registration

Ref document number: 7148236

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151