JP2014017554A - Image encoder - Google Patents

Image encoder Download PDF

Info

Publication number
JP2014017554A
JP2014017554A JP2012151807A JP2012151807A JP2014017554A JP 2014017554 A JP2014017554 A JP 2014017554A JP 2012151807 A JP2012151807 A JP 2012151807A JP 2012151807 A JP2012151807 A JP 2012151807A JP 2014017554 A JP2014017554 A JP 2014017554A
Authority
JP
Japan
Prior art keywords
encoding
request
frame
intra
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2012151807A
Other languages
Japanese (ja)
Other versions
JP2014017554A5 (en
Inventor
Ayumi Asano
歩 淺野
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 JP2012151807A priority Critical patent/JP2014017554A/en
Publication of JP2014017554A publication Critical patent/JP2014017554A/en
Publication of JP2014017554A5 publication Critical patent/JP2014017554A5/ja
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an encoder in which coded data is prevented from increasing unnecessarily, by limiting execution of intra-frame coding when a request of executing intra-frame encoding is received externally.SOLUTION: The image encoder includes encoding means performing intra-frame encoding of moving image data at a predetermined frame interval, and performing inter-frame encoding of other frames, and control means for receiving a request for intra-frame encoding from the outside of the encoding means, and controlling the encoding means to perform intra-frame encoding in response to the request. The control means cancels a part of the request without controlling the encoding means to perform intra-frame coding.

Description

本発明は、動画像の符号化装置及び方法に関し、特にフレーム内符号化のタイミング制御に関する。   The present invention relates to a moving image coding apparatus and method, and more particularly to timing control of intraframe coding.

近年、撮像した動画像データを、ネットワークを介して表示装置や蓄積装置に転送する、ネットワークカメラが知られている。動画像を転送する際、未圧縮で転送するとデータ量が大きいため、データ量を小さくするために、通常は符号化を行い圧縮して転送する。このような動画像符号化方式として、例えば、H.264がある。H.264では、動画像を時間順に並んだ複数枚の画像(フレーム)に分割し、基準となるフレームの画像に対して内符号化(フレーム内符号化)を行って基準画像を生成する。また、基準となるフレーム以外の画像と、この基準画像との差分画像を生成する(フレーム間符号化)。この基準画像をIフレーム、差分画像をP、Bフレームと称する。Iフレームはフレーム単体で圧縮されているため、P、Bフレームに比べてデータ量が大きい。カメラは、P、Bフレームの基準となるIフレームを、適当な間隔で送信する必要があり、これにしたがったタイミングでフレーム内符号化を行う必要がある。     In recent years, network cameras that transfer captured moving image data to a display device or a storage device via a network are known. When transferring a moving image, the amount of data is large if it is transferred without compression. Therefore, in order to reduce the amount of data, encoding is usually performed after compression and transfer. An example of such a moving image encoding method is H.264. In H.264, a moving image is divided into a plurality of images (frames) arranged in time order, and a reference image is generated by performing inner coding (intraframe coding) on a reference frame image. Further, a difference image between the image other than the reference frame and the reference image is generated (inter-frame encoding). This reference image is called an I frame, and the difference image is called a P or B frame. Since the I frame is compressed as a single frame, the amount of data is larger than that of the P and B frames. The camera needs to transmit I frames, which serve as a reference for P and B frames, at appropriate intervals, and it is necessary to perform intraframe encoding at a timing according to this.

特許文献1には、フレーム内符号化のタイミングを周期的および非周期的に制御する設定値を、カメラ内部の情報を用いて設定し、両設定値を調整する技術が記載されている。特許文献1には、この非周期的なタイミングとして、カメラの各撮影画角での撮影開始時とすることが記載されている。   Japanese Patent Application Laid-Open No. 2004-228561 describes a technique for setting a setting value for controlling the timing of intraframe encoding periodically and aperiodically using information in the camera and adjusting both setting values. Patent Document 1 describes that the aperiodic timing is the start of shooting at each shooting angle of view of the camera.

特開2011-172003号公報JP 2011-172003 A

特許文献1では、カメラ内部のフレーム内符号化の要求が考慮されているが、カメラ外部からのフレーム内符号化の要求は考慮されていない。ここで、外部からのフレーム内符号化の要求とは、動画像配信の開始に合わせた要求や、クライアントから別途に受ける要求といったものがある。外部からの要求を考慮した場合、フレーム内符号化がより多く行われるため、結果としてデータ量が大きくなるという課題が存在する。   In Patent Document 1, a request for intra-frame coding inside the camera is considered, but a request for intra-frame coding from the outside of the camera is not considered. Here, the request for intra-frame coding from the outside includes a request in accordance with the start of moving image distribution and a request received separately from the client. Considering the external request, more intra-frame coding is performed, resulting in a problem that the amount of data increases.

本発明は、上記課題に鑑みてなされたものであり、外部からのフレーム内符号化の要求を受けた場合に、フレーム内符号化の実行を制限して、いたずらに符号化データが増加することを防止することを目的とする。   The present invention has been made in view of the above problems, and when receiving an intra-frame coding request from the outside, the execution of intra-frame coding is restricted and the coded data increases unnecessarily. The purpose is to prevent.

上記目的を達成するために、本発明の一態様による画像符号化装置は以下の構成を有する。すなわち、動画像データを所定のフレーム間隔でフレーム内符号化し、他のフレームをフレーム間符号化する符号化手段と、フレーム内符号化の要求を前記符号化手段の外部から受信して、該要求に応じて前記符号化手段にフレーム内符号化を実行させる制御手段と、を備え、前記制御手段は、前記要求の一部を、前記符号化手段にフレーム内符号化を実行させることなく破棄することを特徴とする。   In order to achieve the above object, an image encoding apparatus according to an aspect of the present invention has the following arrangement. That is, encoding means for encoding moving image data at predetermined frame intervals and inter-frame encoding other frames, and receiving a request for intra-frame encoding from outside the encoding means, And a control unit that causes the encoding unit to execute intra-frame encoding according to the control unit, wherein the control unit discards a part of the request without causing the encoding unit to perform intra-frame encoding. It is characterized by that.

本発明によれば、転送する動画像データが大きくなるのを防ぐことができる。   According to the present invention, it is possible to prevent the moving image data to be transferred from becoming large.

本発明による画像符号化装置とクライアントの構成図。The block diagram of the image coding apparatus and client by this invention. 第1実施形態による制御タイミングを示すフローチャート。The flowchart which shows the control timing by 1st Embodiment. 第2実施形態による制御タイミングを示すフローチャート。The flowchart which shows the control timing by 2nd Embodiment. フレーム内符号化の遅延を示すタイミング図。The timing diagram which shows the delay of intra-frame encoding. 一定間隔のフレーム内符号化の制御タイミングを示すタイミング図。The timing diagram which shows the control timing of the intra-frame encoding of a fixed space | interval. 第1実施形態による制御タイミングを示すタイミング図。The timing diagram which shows the control timing by 1st Embodiment.

以下、本発明の好適な実施形態について、添付の図面に基づいて詳細に説明する。   DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, preferred embodiments of the invention will be described in detail with reference to the accompanying drawings.

[第1実施形態]
以下、図1〜2、6を参照して、本発明の第1の実施形態による画像符号化装置について説明する。
[First embodiment]
Hereinafter, an image encoding device according to the first embodiment of the present invention will be described with reference to FIGS.

図1には、画像符号化装置10と、画像符号化装置10から送信された動画像データを受信するクライアント14の構成が示されている。画像符号化装置10において、撮像部11は、センサー(不図示)から動画像データを取得し、符号化部12に送る。符号化部12は、動画像データをH.264の形式に圧縮して通信部13に送る。通信部13は、圧縮された動画像データをパケットの単位に分割し、ネットワークを介してクライアント14へ配信する。配信処理部15は、クライアント14からの配信要求に応じて、通信部13を制御して動画像の配信や停止の処理を行う。また、配信処理部15は、クライアント14に対してユーザー認証なども行う。   FIG. 1 shows a configuration of an image encoding device 10 and a client 14 that receives moving image data transmitted from the image encoding device 10. In the image encoding device 10, the imaging unit 11 acquires moving image data from a sensor (not shown) and sends the moving image data to the encoding unit 12. The encoding unit 12 compresses the moving image data into the H.264 format and sends the compressed data to the communication unit 13. The communication unit 13 divides the compressed moving image data into packet units and distributes them to the client 14 via the network. In response to a distribution request from the client 14, the distribution processing unit 15 controls the communication unit 13 to perform moving image distribution and stop processing. The distribution processing unit 15 also performs user authentication for the client 14.

符号化部12は、所定の一定のフレーム間隔でフレーム内符号化を行い、他のフレームについてはフレーム間符号化を行い、それぞれIフレームおよびP、Bフレームを生成する。制御部16は、符号化部12に対して基準となるタイミングを設定し、符号化部12は、この基準タイミングからフレーム内符号化を開始して、その後一定間隔のタイミングでフレーム内符号化を行う。また、符号化部12は、一定間隔でのフレーム内符号化を行うことに加えて、制御部16からの要求に応じたタイミングでフレーム内符号化を行う。制御部16は、カメラ外部からの要求を受けると、これを符号化部12へ送る。   The encoding unit 12 performs intra-frame encoding at a predetermined constant frame interval, performs inter-frame encoding for other frames, and generates an I frame, a P frame, and a B frame, respectively. The control unit 16 sets a reference timing for the encoding unit 12, and the encoding unit 12 starts intra-frame encoding from this reference timing, and thereafter performs intra-frame encoding at a fixed interval timing. Do. The encoding unit 12 performs intra-frame encoding at a timing according to a request from the control unit 16 in addition to performing intra-frame encoding at a constant interval. When receiving a request from the outside of the camera, the control unit 16 sends the request to the encoding unit 12.

カメラ外部からの要求のタイミングとしては、以下の二つの場合がある。一つ目は、クライアント14から動画像配信の要求を受けて、配信を開始するタイミングである。H.264では、圧縮されたデータの再生を開始する際、フレーム内符号化した基準画像を必要とする。したがって、配信処理部15は、ユーザー認証など配信開始の準備が完了後、フレーム内符号化を行うよう制御部16を介して符号化部12に要求を送る。符号化部12は、要求に応じたタイミングでフレーム内符号化を行い、続いてフレーム間符号化も開始する。符号化されたデータは通信部13に送られ、クライアント14への動画像の配信が開始される。なお、符号化部12は、解像度や画質が同じ動画像に対して、一種類の符号化しか行うことができない。したがって、複数のクライアントから同じ解像度等の動画像を要求された場合、通信部13は、複製した同じデータを全クライアントに送る。つまり、フレーム内符号化が行われた場合は、全クライアントに同じ動画像データが配信される。   There are the following two cases as the timing of the request from the outside of the camera. The first is the timing when the distribution of the moving image is received from the client 14 and the distribution is started. In H.264, a reference image that is intra-frame-coded is required when reproduction of compressed data is started. Accordingly, the distribution processing unit 15 sends a request to the encoding unit 12 via the control unit 16 to perform intraframe encoding after preparation for distribution start such as user authentication is completed. The encoding unit 12 performs intra-frame encoding at a timing according to the request, and then starts inter-frame encoding. The encoded data is sent to the communication unit 13 and distribution of the moving image to the client 14 is started. Note that the encoding unit 12 can perform only one type of encoding for moving images having the same resolution and image quality. Therefore, when moving images having the same resolution or the like are requested from a plurality of clients, the communication unit 13 sends the duplicated same data to all clients. That is, when intra-frame coding is performed, the same moving image data is distributed to all clients.

二つ目は、クライアント14から要求される任意のタイミングである。配信処理部15は、動画像配信の制御とは別に、クライアント14から任意のフレーム内符号化の要求を受け付ける。配信処理部15はこの要求を制御部16へ送り、制御部16は、フレーム内符号化を行うよう符号化部12に要求を送る。符号化部12は、要求に応じたタイミングでフレーム内符号化を行う。   The second is an arbitrary timing requested from the client 14. The distribution processing unit 15 receives an arbitrary intra-frame encoding request from the client 14 separately from the moving image distribution control. The distribution processing unit 15 sends this request to the control unit 16, and the control unit 16 sends the request to the coding unit 12 to perform intraframe coding. The encoding unit 12 performs intraframe encoding at a timing according to the request.

したがって、フレーム内符号化が行われるタイミングは、3種類となる。すなわち、従来の符号化部で行う一定間隔のタイミングと、クライアント14への動画像配信の開始時と、クライアント14からの任意のタイミングである。   Therefore, there are three types of timing at which intra-frame encoding is performed. In other words, there are a predetermined interval timing performed by the conventional encoding unit, a start of moving image distribution to the client 14, and an arbitrary timing from the client 14.

続いて、本実施形態によるフレーム内符号化を行うタイミングについて、図2のフローチャートを用いて説明する。   Next, the timing for performing intra-frame coding according to the present embodiment will be described with reference to the flowchart of FIG.

ステップ21では、配信処理部15はクライアント14から動画像配信の要求を受けて、ユーザー認証などを行い、クライアント14への動画像の配信が開始可能であるかどうかを判定する。配信を可能と判定した場合(ステップ21のYES)、配信処理部15は制御部16を介して符号化部12に要求を送り、ステップ25へ進む。ステップ25では、符号化部12は、要求に応じたタイミングでフレーム内符号化を行う。符号化されたデータは通信部13を介してクライアント14へ配信される。これにより、クライアント14は、動画像配信の受信が可能になると直ちに基準画像を受信して、直ちに動画像を再生することができる。ステップ21で配信の開始が可能になったクライアントがない場合(ステップ21のNO)は、ステップ22へ進む。ステップ22では、配信処理部15はクライアント14からフレーム内符号化の要求を受けているか否かを判定する。要求を受けていない場合(ステップ22のNO)はステップ21へ戻る。要求を受けていた場合(ステップ22のYES)はステップ23へ進む。   In step 21, the distribution processing unit 15 receives a moving image distribution request from the client 14, performs user authentication and the like, and determines whether or not distribution of the moving image to the client 14 can be started. If it is determined that distribution is possible (YES in step 21), the distribution processing unit 15 sends a request to the encoding unit 12 via the control unit 16, and the process proceeds to step 25. In step 25, the encoding unit 12 performs intra-frame encoding at a timing according to the request. The encoded data is distributed to the client 14 via the communication unit 13. Thus, the client 14 can immediately receive the reference image and immediately reproduce the moving image as soon as the moving image distribution can be received. If there is no client whose distribution can be started in step 21 (NO in step 21), the process proceeds to step 22. In step 22, the distribution processing unit 15 determines whether or not a request for intraframe encoding has been received from the client 14. If no request has been received (NO in step 22), the process returns to step 21. If the request has been received (YES in step 22), the process proceeds to step 23.

ステップ23では、制御部16は、前回にクライアントから要求を受けて最後にフレーム内符号化を行った時からの経過時間と、予め設定された特定の期間を比較する。この経過時間が特定の期間を経過していれば(ステップ23のYES)、ステップ25へ進む。また、制御部16が初めてフレーム内符号化の要求を受けた場合もステップ25へ進む。この経過時間が特定の期間を経過していなければ(ステップ23のNO)、ステップ24に進む。ステップ24では、制御部16は、前回にクライアントから要求を受けて符号化部12がフレーム内符号化を行った時からの要求の受信回数の累積値を保持しておき、この累積値と特定の回数を比較する。この累積値が特定の回数以下だと(ステップ24のNO)ステップ21に戻る。この累積値が特定の回数を超えると(ステップ24のYES)、制御部16は符号化部12に要求を送り、ステップ25に進む。ステップ25では、符号化部12は、要求に応じたタイミングでフレーム内符号化を行い、その後ステップ26に進む。ステップ26では、制御部16は、ステップ23で求めた時間と、ステップ24で求めた回数をリセットする。以上の処理は、クライアントが複数存在しており、各々がフレーム内符号化の要求を送る場合においても同様である。   In step 23, the control unit 16 compares the elapsed time from when the last request was received from the client and the last intraframe encoding was performed with a preset specific period. If this elapsed time has passed a specific period (YES in step 23), the process proceeds to step 25. Also, when the control unit 16 receives a request for intra-frame coding for the first time, the process proceeds to step 25. If this elapsed time has not passed the specific period (NO in step 23), the process proceeds to step 24. In step 24, the control unit 16 holds a cumulative value of the number of times the request has been received since the encoding unit 12 received the request from the client last time and performed intra-frame coding, and specified this cumulative value. Compare the number of times. If the accumulated value is equal to or less than the specific number of times (NO in step 24), the process returns to step 21. When the accumulated value exceeds a specific number of times (YES in Step 24), the control unit 16 sends a request to the encoding unit 12 and proceeds to Step 25. In step 25, the encoding unit 12 performs intra-frame encoding at a timing according to the request, and then proceeds to step 26. In step 26, the control unit 16 resets the time obtained in step 23 and the number obtained in step 24. The above processing is the same when there are a plurality of clients and each sends a request for intra-frame coding.

図6は、図2によるフローチャートにしたがったフレーム内符号化のタイミング図である。図6には、外部(クライアント)からの要求を全て受けて符号化部12がフレーム内符号化を行う場合(図6左)と、本実施形態による要求を一部のみ受けてフレーム内符号化を行う場合(図6右)が示されている。符号化部12は一定間隔のタイミング601〜604でフレーム内符号化を行っている。また、これらとは別に、クライアント14から要求を受けて、符号化部12はフレーム内符号化を行っている。外部(クライアント14)からの要求を全て受ける場合、制御部16は要求605〜607を符号化部12に送り、符号化部12はそれぞれタイミング608〜610でフレーム内符号化を行う。一方、本実施形態では、制御部16は要求611〜613のうち、最初の要求611のみを符号化部12に送り、その後の一定期間中に受信した要求612および613を破棄する。符号化部12は最初の要求611のみを受けて、タイミング614でフレーム内符号化を行う。   FIG. 6 is a timing diagram of intra-frame encoding according to the flowchart of FIG. FIG. 6 shows a case where the encoding unit 12 performs all intra-frame encoding upon receiving all requests from the outside (client) (FIG. 6 left), and intra-frame encoding upon receiving only a part of the request according to the present embodiment. The case of performing is shown (right in FIG. 6). The encoding unit 12 performs intraframe encoding at timings 601 to 604 at regular intervals. Apart from these, the encoding unit 12 performs intra-frame encoding upon receiving a request from the client 14. When receiving all requests from the outside (client 14), the control unit 16 sends requests 605 to 607 to the encoding unit 12, and the encoding unit 12 performs intra-frame encoding at timings 608 to 610, respectively. On the other hand, in the present embodiment, the control unit 16 sends only the first request 611 among the requests 611 to 613 to the encoding unit 12 and discards the requests 612 and 613 received during a certain period thereafter. The encoding unit 12 receives only the first request 611 and performs intra-frame encoding at timing 614.

このように、制御部16がクライアントからのフレーム内符号化の要求を一部間引く(破棄する)ことで、フレーム内符号化が不必要に多くなることを防ぎ、結果として符号化データがいたずらに増加するのを防止することができる。したがって、画像符号化装置自体や、ネットワーク、蓄積装置に過大な負荷が発生しない画像符号化装置を提供することができる。なお、図2に示した実施形態に限らず、図2において、ステップ23とステップ24を逆にしても良く、またステップ23とステップ24のいずれか一方の条件のみを用いても良い。   In this way, the control unit 16 thins out (destroys) a part of the intra-frame encoding request from the client, thereby preventing the intra-frame encoding from becoming unnecessarily large, and as a result, the encoded data is mischievous. The increase can be prevented. Therefore, it is possible to provide an image encoding device that does not cause an excessive load on the image encoding device itself, the network, or the storage device. In addition to the embodiment shown in FIG. 2, step 23 and step 24 may be reversed in FIG. 2, and only one of the conditions of step 23 and step 24 may be used.

[第2実施形態]
以下、図3〜5を参照して、本発明の第2実施形態による画像符号化装置について説明する。なお、本実施形態による画像符号化装置の構成は、第1実施形態と同様であり、図1のように示される。続いて、本実施形態によるフレーム内符号化を行うタイミングについて、図3のフローチャートを用いて説明する。
[Second Embodiment]
Hereinafter, an image encoding device according to a second embodiment of the present invention will be described with reference to FIGS. The configuration of the image encoding device according to the present embodiment is the same as that of the first embodiment, and is shown in FIG. Next, the timing for performing intra-frame coding according to the present embodiment will be described with reference to the flowchart of FIG.

ステップ31では、配信処理部15はクライアント14から動画像配信の要求を受けて、ユーザー認証などを行い、クライアント14への動画像の配信が開始可能であるかどうかを判定する。配信の開始が可能と判定した場合(ステップ31のYES)、配信処理部15は制御部16を介して符号化部12に要求を送り、ステップ34へ進む。ステップ34では、符号化部12はフレーム内符号化を行う。符号化されたデータは通信部13を介してクライアント14へ配信される。これにより、クライアント14は基準画像を受信して、直ちに動画像を再生することができる。ステップ31で配信の開始が可能になったクライアントがない場合(ステップ31のNO)は、ステップ32へ進む。ステップ32では、配信処理部15はクライアント14からフレーム内符号化の要求を受けているか否かを判定する。要求を受けていない場合(ステップ32のNO)はステップ31に進む。要求を受けていた場合(ステップ32のYES)はステップ33へ進む。   In step 31, the distribution processing unit 15 receives a moving image distribution request from the client 14, performs user authentication and the like, and determines whether or not distribution of the moving image to the client 14 can be started. If it is determined that the distribution can be started (YES in step 31), the distribution processing unit 15 sends a request to the encoding unit 12 via the control unit 16 and proceeds to step 34. In step 34, the encoding unit 12 performs intraframe encoding. The encoded data is distributed to the client 14 via the communication unit 13. As a result, the client 14 can receive the reference image and immediately reproduce the moving image. If there is no client whose distribution can be started in step 31 (NO in step 31), the process proceeds to step 32. In step 32, the distribution processing unit 15 determines whether or not a request for intraframe encoding has been received from the client 14. If the request has not been received (NO in step 32), the process proceeds to step 31. If the request has been received (YES in step 32), the process proceeds to step 33.

ステップ33では、制御部16は、前回にクライアントから要求を受けてフレーム内符号化を行った後に最初に要求を受けた時からの経過時間、もしくは、クライアントから初めて要求を受けた時からの経過時間と予め設定された特定の期間を比較する。この経過時間が特定の期間を経過していなければ(ステップ33のNO)、ステップ31へ戻る。一方、この経過時間が特定の期間を経過していれば(ステップ33のYES)任意の時間が経過後、再度ステップ33の判断を行う。制御部16は符号化部12に要求を送り、ステップ34に進む。ステップ34では、符号化部12はフレーム内符号化を行い、その後ステップ35に進む。ステップ35では、制御部16は、ステップ33で求めた時間をリセットする。   In step 33, the control unit 16 receives the request from the client last time and performs the intra-frame encoding, and then the elapsed time from the first reception or the first request from the client. Compare the time with a preset period. If this elapsed time has not passed the specific period (NO in step 33), the process returns to step 31. On the other hand, if this elapsed time has passed a specific period (YES in step 33), the determination in step 33 is performed again after an arbitrary time has elapsed. The control unit 16 sends a request to the encoding unit 12 and proceeds to step 34. In step 34, the encoding unit 12 performs intraframe encoding, and then proceeds to step 35. In step 35, the control unit 16 resets the time obtained in step 33.

このように、制御部16は、最初にクライアントからの要求を受信してから一定時間の間に受信した要求は破棄する。そして、制御部16は、最初に受信した要求を遅延させて、符号化部12に送り、符号化部12は、この遅延された要求を受けてフレーム内符号化を行う。このような処理により、フレーム内符号化が不必要に多くなることを防ぎ、結果として符号化データがいたずらに増加するのを防止することができる。以上の処理は、クライアントが複数存在しており、各々がフレーム内符号化の要求を送る場合においても同様である。   As described above, the control unit 16 discards a request received within a certain period of time after receiving a request from a client for the first time. Then, the control unit 16 delays the first received request and sends it to the encoding unit 12, and the encoding unit 12 performs intra-frame encoding in response to the delayed request. By such processing, it is possible to prevent the intra-frame encoding from being unnecessarily increased, and as a result, it is possible to prevent the encoded data from being increased unnecessarily. The above processing is the same when there are a plurality of clients and each sends a request for intra-frame coding.

なお、図3では、フレーム内符号化のタイミングを制御する方法として、要求を遅延させる方法について説明したが、この方法に限らない。例えば、制御部16が符号化部12と連携して、従来の一定間隔のフレーム内符号化のタイミングを制御しても良い。図4と図5を用いてその方法を示す。   In FIG. 3, the method for delaying the request has been described as a method for controlling the timing of the intra-frame coding. However, the method is not limited to this method. For example, the control unit 16 may control the timing of conventional intraframe encoding at regular intervals in cooperation with the encoding unit 12. The method will be described with reference to FIGS.

図4と図5は、図3によるフローチャートにしたがったフレーム内符号化のタイミング図である。図4には、制御部16がクライアント14からの要求を遅延させている間に、符号化部12が一定間隔のタイミング401〜404でフレーム内符号化を行う場合の制御が示されている。まず、要求を遅延させている間に一定間隔でのフレーム内符号化が行われない場合の処理について説明する(図4左)。制御部16は、図3で示したフローチャートに従い、要求405を受信しても直ちにこの要求を符号化部12に送らず、遅延させる。そして、制御部16は、その後、一定期間中に受信した要求406を破棄する。制御部16は、最初の要求405を受信した後に一定期間が経過した後、要求を符号化部12に送り、符号化部12はタイミング407でフレーム内符号化を行う。   4 and 5 are timing diagrams of intra-frame coding according to the flowchart of FIG. FIG. 4 shows control when the encoding unit 12 performs intra-frame encoding at timings 401 to 404 at regular intervals while the control unit 16 delays the request from the client 14. First, a description will be given of processing in a case where intra-frame coding is not performed at regular intervals while the request is delayed (left in FIG. 4). In accordance with the flowchart shown in FIG. 3, the control unit 16 does not immediately send this request to the encoding unit 12 but delays the request 405 even if the request 405 is received. Then, the control unit 16 discards the request 406 received during a certain period. The control unit 16 sends the request to the encoding unit 12 after a certain period of time has elapsed after receiving the first request 405, and the encoding unit 12 performs intraframe encoding at timing 407.

次に、要求を遅延させている間に一定間隔でのフレーム内符号化が行われる場合の処理について説明する(図4右)。制御部16は、要求408を遅延させ、要求409を破棄しており、ここで、要求408を遅延させている間に一定間隔のフレーム内符号化がタイミング403で行われている。この場合、制御部16は、タイミング403でフレーム内符号化が行われたことにより、要求408と409によるフレーム内符号化は不必要と判断し、一定期間の経過後に行う予定だったタイミング410でのフレーム内符号化をキャンセルする。すなわち、制御部16は、受信した外部からの要求を符号化部12に送らない。   Next, processing when intra-frame coding is performed at regular intervals while the request is delayed will be described (right in FIG. 4). The control unit 16 delays the request 408 and discards the request 409. Here, while the request 408 is delayed, intra-frame coding at regular intervals is performed at the timing 403. In this case, the control unit 16 determines that the intra-frame coding according to the requests 408 and 409 is unnecessary because the intra-frame coding is performed at the timing 403, and at the timing 410 that is scheduled to be performed after a certain period of time. Cancel intra-frame coding. That is, the control unit 16 does not send the received external request to the encoding unit 12.

また、図5には、一定間隔のフレーム内符号化のタイミングを調整する場合の制御が示されている。符号化部12は一定間隔のタイミング51でフレーム内符号化を行い、その後タイミング52〜54でフレーム内符号化を行うことを予定している。制御部16は、図3で示したフローチャートに従い、要求405を受信しても直ちにこの要求を符号化部12に送らず、遅延させる。そして、制御部16は、その後、一定期間中に受信した要求56を破棄する。制御部16は最初の要求55を受信した後に一定期間が経過した後、要求を符号化部12に送り、符号化部12はタイミング52でフレーム内符号化を行う。ここで、符号化部12は、本来、タイミング52で、一定間隔のフレーム内符号化を行う予定だったものを、制御部16の制御によりタイミング57でフレーム内符号化を行う。すなわち、クライアントからの要求による符号化と一定間隔のタイミングによる符号化を併せて、一度だけ符号化を行う。また、制御部16は、以降に予定されていた一定間隔のフレーム内符号化のタイミング53〜54について、タイミング57に対して一定間隔となるように、タイミング57を基準タイミングとして符号化部12に設定する。   FIG. 5 shows control when adjusting the timing of intra-frame coding at regular intervals. The encoding unit 12 is scheduled to perform intra-frame encoding at a timing 51 with a constant interval, and thereafter perform intra-frame encoding at timings 52 to 54. In accordance with the flowchart shown in FIG. 3, the control unit 16 does not immediately send this request to the encoding unit 12 but delays the request 405 even if the request 405 is received. Then, the control unit 16 discards the request 56 received during a certain period. The control unit 16 sends the request to the encoding unit 12 after a certain period of time has elapsed after receiving the first request 55, and the encoding unit 12 performs intra-frame encoding at timing 52. Here, the encoding unit 12 originally performs the intra-frame encoding at the timing 57 under the control of the control unit 16, which was originally scheduled to perform the intra-frame encoding at a constant interval at the timing 52. In other words, the encoding by the request from the client and the encoding at a fixed interval are combined and the encoding is performed only once. Further, the control unit 16 sets the timing 57 to the encoding unit 12 using the timing 57 as a reference timing so that the timings 53 to 54 of the intra-frame encoding at a predetermined interval which are scheduled thereafter are set at a constant interval with respect to the timing 57. Set.

図4を用いて遅延させているフレーム内符号化をキャンセルする方法、図5を用いて一定間隔でフレーム内符号化を行うタイミングを調整する方法について示したが、これらは両方を組み合わせても良い。また、一定間隔でフレーム内符号化を行うタイミングを調整する方法は、第1実施形態で示したフレーム内符号化を行った後に、クライアントからのフレーム内符号化の要求を適度に間引く場合にも適用可能である。   Although the method for canceling the delayed intra-frame coding using FIG. 4 and the method for adjusting the timing of performing the intra-frame coding at regular intervals using FIG. 5 have been described, these may be combined. . In addition, the method of adjusting the timing of performing intra-frame coding at regular intervals can be used even when the request for intra-frame coding from the client is appropriately thinned out after performing intra-frame coding shown in the first embodiment. Applicable.

このように、本実施形態で示したように、外部(クライアント)からのフレーム内符号化の要求を遅延させ、この遅延させた要求以外の要求を破棄することで、符号化データがいたずらに増加するのを防止することができる。これにより、画像符号化装置自体や、ネットワーク、蓄積装置に過大な負荷が発生しない画像符号化装置を提供することができる。   In this way, as shown in this embodiment, the encoded data increases unnecessarily by delaying the intra-frame encoding request from the outside (client) and discarding the requests other than the delayed request. Can be prevented. As a result, it is possible to provide an image encoding device that does not cause an excessive load on the image encoding device itself, the network, or the storage device.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。   As mentioned above, although preferable embodiment of this invention was described, this invention is not limited to these embodiment, A various deformation | transformation and change are possible within the range of the summary.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。   The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

Claims (9)

動画像データを所定のフレーム間隔でフレーム内符号化し、他のフレームをフレーム間符号化する符号化手段と、
フレーム内符号化の要求を前記符号化手段の外部から受信して、該要求に応じて前記符号化手段にフレーム内符号化を実行させる制御手段と、を備え、
前記制御手段は、前記要求の一部を、前記符号化手段にフレーム内符号化を実行させることなく破棄することを特徴とする画像符号化装置。
Encoding means for intra-frame encoding of moving image data at predetermined frame intervals and inter-frame encoding of other frames;
Control means for receiving an intra-frame encoding request from outside the encoding means and causing the encoding means to execute intra-frame encoding in response to the request;
The image coding apparatus according to claim 1, wherein the control unit discards a part of the request without causing the coding unit to perform intra-frame coding.
前記制御手段は、受信した前記要求に応じて前記符号化手段にフレーム内符号化を最後に実行させた時からの経過時間もしくは前記要求の受信回数の少なくとも一方に基づいて、前記要求を破棄することを特徴とする請求項1記載の画像符号化装置。   The control unit discards the request based on at least one of an elapsed time from the time when the encoding unit last performed intra-frame encoding in response to the received request or the number of reception times of the request. The image coding apparatus according to claim 1. 前記制御手段は、前記要求を受信してから所定の一定期間の経過後に前記符号化手段にフレーム内符号化を実行させ、当該要求を受信してから前記一定期間中に受信した他の要求を破棄することを特徴とする請求項1に記載の画像符号化装置。   The control means causes the encoding means to execute intra-frame encoding after a lapse of a predetermined period after receiving the request, and receives other requests received during the predetermined period after receiving the request. The image coding apparatus according to claim 1, wherein the image coding apparatus is discarded. 前記制御手段は、前記要求を、ネットワークを介した当該画像符号化装置の外部の装置から受信することを特徴とする請求項1乃至3のいずれか1項に記載の画像符号化装置。   The image encoding apparatus according to claim 1, wherein the control unit receives the request from a device external to the image encoding device via a network. 前記符号化手段で符号化したデータをネットワークを介して配信するための制御を行う配信処理手段を更に備え、
前記制御手段は、前記配信処理手段によりデータの配信が開始可能であると判断された場合に、前記符号化手段にフレーム内符号化を実行させることを特徴とする請求項1乃至3のいずれか1項に記載の画像符号化装置。
A distribution processing unit that performs control for distributing the data encoded by the encoding unit via a network;
4. The control unit according to claim 1, wherein when the distribution processing unit determines that data distribution can be started, the control unit causes the encoding unit to perform intra-frame encoding. The image encoding device according to item 1.
前記制御手段は、前記要求を受信してから前記一定期間中に前記所定のフレーム間隔でのフレーム内符号化が行われた場合、当該要求を破棄することを特徴とする請求項3に記載の画像符号化装置。   The said control means discards the said request | requirement, when the intra-frame encoding in the said predetermined frame interval is performed during the said fixed period after receiving the said request | requirement. Image encoding device. 前記制御手段は、前記要求を受信してから前記一定期間の経過後のタイミングを、前記所定のフレーム間隔でのフレーム内符号化における基準となるタイミングとして前記符号化手段に設定することを特徴とする請求項3に記載の画像符号化装置。   The control means sets the timing after the elapse of the predetermined period from the reception of the request as the reference timing in the intra-frame coding at the predetermined frame interval in the coding means. The image encoding device according to claim 3. 画像符号化方法であって、
動画像データを所定のフレーム間隔でフレーム内符号化し、他のフレームをフレーム間符号化する符号化工程と、
フレーム内符号化の要求を前記符号化工程の外部から受信して、該要求に応じて前記符号化工程にフレーム内符号化を実行させる制御工程と、を備え、
前記制御工程は、前記要求の一部を、前記符号化工程にフレーム内符号化を実行させることなく破棄することを特徴とする画像符号化方法。
An image encoding method comprising:
An encoding step of intra-frame encoding moving image data at predetermined frame intervals and inter-frame encoding of other frames;
Receiving a request for intra-frame encoding from outside the encoding step, and causing the encoding step to perform intra-frame encoding in response to the request, and
The image encoding method according to claim 1, wherein the control step discards a part of the request without causing the encoding step to perform intra-frame encoding.
請求項8に記載された符号化方法の各工程をコンピュータに実行させるためのプログラム。   The program for making a computer perform each process of the encoding method described in Claim 8.
JP2012151807A 2012-07-05 2012-07-05 Image encoder Pending JP2014017554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012151807A JP2014017554A (en) 2012-07-05 2012-07-05 Image encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012151807A JP2014017554A (en) 2012-07-05 2012-07-05 Image encoder

Publications (2)

Publication Number Publication Date
JP2014017554A true JP2014017554A (en) 2014-01-30
JP2014017554A5 JP2014017554A5 (en) 2015-08-13

Family

ID=50111913

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012151807A Pending JP2014017554A (en) 2012-07-05 2012-07-05 Image encoder

Country Status (1)

Country Link
JP (1) JP2014017554A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016225758A (en) * 2015-05-28 2016-12-28 キヤノン株式会社 Display control device, display control method, and program
CN115297343A (en) * 2022-08-03 2022-11-04 维沃移动通信有限公司 Video data sending method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06237451A (en) * 1993-02-10 1994-08-23 Hitachi Ltd Moving picture communication system and terminal equipment
JPH0937245A (en) * 1995-07-14 1997-02-07 Oki Electric Ind Co Ltd Moving image transmission system and moving image transmitter
JPH09284774A (en) * 1996-04-10 1997-10-31 Oki Electric Ind Co Ltd Coder, decoder and transmission system
JP2002344932A (en) * 2001-05-22 2002-11-29 Mega Chips Corp Moving picture distribution system, moving picture distribution method and program therefor
JP2006333367A (en) * 2005-05-30 2006-12-07 Toshiba Corp Video transmission system and video transmission method
JP2008079061A (en) * 2006-09-22 2008-04-03 Matsushita Electric Ind Co Ltd Image streaming system
JP2011182284A (en) * 2010-03-03 2011-09-15 Mega Chips Corp Image encoding apparatus, image encoding/decoding system, image encoding method, and image display method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06237451A (en) * 1993-02-10 1994-08-23 Hitachi Ltd Moving picture communication system and terminal equipment
JPH0937245A (en) * 1995-07-14 1997-02-07 Oki Electric Ind Co Ltd Moving image transmission system and moving image transmitter
JPH09284774A (en) * 1996-04-10 1997-10-31 Oki Electric Ind Co Ltd Coder, decoder and transmission system
JP2002344932A (en) * 2001-05-22 2002-11-29 Mega Chips Corp Moving picture distribution system, moving picture distribution method and program therefor
JP2006333367A (en) * 2005-05-30 2006-12-07 Toshiba Corp Video transmission system and video transmission method
JP2008079061A (en) * 2006-09-22 2008-04-03 Matsushita Electric Ind Co Ltd Image streaming system
JP2011182284A (en) * 2010-03-03 2011-09-15 Mega Chips Corp Image encoding apparatus, image encoding/decoding system, image encoding method, and image display method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016225758A (en) * 2015-05-28 2016-12-28 キヤノン株式会社 Display control device, display control method, and program
CN115297343A (en) * 2022-08-03 2022-11-04 维沃移动通信有限公司 Video data sending method and device and electronic equipment
CN115297343B (en) * 2022-08-03 2024-04-26 维沃移动通信有限公司 Video data sending method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US11190570B2 (en) Video encoding using starve mode
WO2019033877A1 (en) Video frame coding method, terminal, and storage medium
US20230262273A1 (en) Video stream processing method, apparatus, device, storage medium, and program product
US9392278B2 (en) Image encoding or decoding apparatus, system, method, and storage medium for encoding or decoding a plurality of images in parallel
JP5977498B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
US9930345B2 (en) Image encoding apparatus, image encoding method, and image encoding program
US20140362864A1 (en) Transmitting apparatus, transmitting method, and storage medium
JP2017135464A (en) Video transmitter, video transmission system, video transmission method and program
US20120236927A1 (en) Transmission apparatus, transmission method, and recording medium
JP2014017554A (en) Image encoder
JP2015095733A (en) Image transfer device, image transfer method, and program
US8937999B2 (en) Moving image compression encoding apparatus, method, and control program
JP2012137900A (en) Image output system, image output method and server device
JP2007013697A (en) Image receiver and image receiving method
US9467691B2 (en) Video system for displaying image data, method and computer program
US20210203987A1 (en) Encoder and method for encoding a tile-based immersive video
JP6740002B2 (en) Control device, control method and program
KR102546764B1 (en) Apparatus and method for image processing
JP6253864B2 (en) Camera and code amount control program
JP2016225758A (en) Display control device, display control method, and program
US9578327B2 (en) Encoding apparatus, encoding method, and non-transitory computer-readable storage medium
JP6289103B2 (en) Image processing apparatus, control method therefor, and program
JP2007329787A (en) Image encoding apparatus
JP2012191284A (en) Image transmitter, image transmission method, image receiver, and image reception method
JP2020039072A (en) Information processing apparatus, information processing method, and program

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150630

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160520

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160711

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20161111