JP2009055315A - Transcoder, transcoding method, and transcoding program - Google Patents

Transcoder, transcoding method, and transcoding program Download PDF

Info

Publication number
JP2009055315A
JP2009055315A JP2007219807A JP2007219807A JP2009055315A JP 2009055315 A JP2009055315 A JP 2009055315A JP 2007219807 A JP2007219807 A JP 2007219807A JP 2007219807 A JP2007219807 A JP 2007219807A JP 2009055315 A JP2009055315 A JP 2009055315A
Authority
JP
Japan
Prior art keywords
encryption
cpu
load
transcoder
processing amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2007219807A
Other languages
Japanese (ja)
Other versions
JP5143502B2 (en
Inventor
Hiroaki Ueda
裕明 上田
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.)
NEC Embedded Products Ltd
Original Assignee
NEC Embedded Products Ltd
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 NEC Embedded Products Ltd filed Critical NEC Embedded Products Ltd
Priority to JP2007219807A priority Critical patent/JP5143502B2/en
Publication of JP2009055315A publication Critical patent/JP2009055315A/en
Application granted granted Critical
Publication of JP5143502B2 publication Critical patent/JP5143502B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a transcoder that optimizes both a reduction amount of a CPU load and encryption strength. <P>SOLUTION: The transcoder is provided with a decoder which decodes an encoded input image so as to obtain a restored image, and an encoder for re-encoding the restored image. The decoder is provided with an encryption means for encrypting the restored image. The encoder is provided with a decryption means for decrypting the encrypted restored image. The encryption means is provided with an encryption processing amount regulation means for changing a processing amount required for encryption corresponding to a CPU load. The heavier the CPU load is, the further the encryption processing amount regulation means reduces a processing amount required for encryption. The lighter the CPU load is, the further the encryption processing amount regulation means increases a processing amount required for encryption. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、符号化された入力画像を復号して、復元画像を得るデコーダと、前記復元画像を再符号化するエンコーダとを備えるトランスコーダに関する。   The present invention relates to a transcoder that includes a decoder that decodes an encoded input image to obtain a restored image, and an encoder that re-encodes the restored image.

デジタル放送の録画ファイルは著作権保護のために暗号化されている。このファイルは、HD(High Definition)画像のものであり、サイズが大きいので、SD(Standard)画像に変換してサイズを減らすことがある。   Digital broadcast recording files are encrypted for copyright protection. Since this file is of an HD (High Definition) image and has a large size, it may be converted into an SD (Standard) image to reduce the size.

この変換にマイクロソフト(登録商標)社の標準のモジュール形式であるDirectShowフィルタを複数使用した場合は、フィルタ間のインターフェースが公開されているので、画像の抜き出しが容易となる。   When a plurality of DirectShow filters, which are standard module formats of Microsoft (registered trademark), are used for this conversion, the interface between the filters is open, so that the image can be easily extracted.

それを防ぐためには、画像データを暗号化しなければならない。しかし、一般に、暗号化は重い処理であり、また、画像データのサイズが大きいため、全画素を暗号化すると非常にCPUの負荷が重くなる。   In order to prevent this, the image data must be encrypted. However, in general, encryption is a heavy process, and since the size of image data is large, if all pixels are encrypted, the load on the CPU becomes very heavy.

そこで、暗号化の効果を下げずにCPUの負荷を下げるためには、画像の最適な部分を暗号化する必要が生ずる。   Therefore, in order to reduce the load on the CPU without reducing the encryption effect, it is necessary to encrypt the optimal portion of the image.

例えば、高周波成分のみを暗号化する方法がある(例えば、特許文献1参照)。また、低周波成分のみを暗号化する方法もある(例えば、特許文献2参照)。
特開平6−54325号公報 特開平11−88857号公報
For example, there is a method of encrypting only high frequency components (see, for example, Patent Document 1). There is also a method of encrypting only low frequency components (see, for example, Patent Document 2).
JP-A-6-54325 JP-A-11-88857

しかし、高周波成分のみを暗号化したり、低周波成分のみを暗号化したりする場合、暗号化する周波数成分が予め決められていると、CPUの負荷を十分に下げられない場合が生ずる。逆に、そうすると、暗号化の強度が不十分となる場合も生ずる。   However, when only the high frequency component is encrypted or only the low frequency component is encrypted, if the frequency component to be encrypted is determined in advance, the CPU load may not be sufficiently reduced. On the other hand, in this case, the encryption strength may be insufficient.

そこで、本発明は、CPUの負荷に応じて暗号化処理量の制御を効果的に行うことを可能とするトランスコーダ、トランスコーディング方法及びトランスコーディング用プログラムを提供することを目的とする。   Accordingly, an object of the present invention is to provide a transcoder, a transcoding method, and a transcoding program that can effectively control the amount of encryption processing according to the load on the CPU.

本発明によれば、符号化された入力画像を復号して、復元画像を得るデコーダと、前記復元画像を再符号化するエンコーダとを備えるトランスコーダであって、前記デコーダは、前記復元画像を暗号化する暗号化手段を備え、前記エンコーダは、暗号化された前記復元画像の暗号解除をする暗号解除手段を備え、前記暗号化手段は、CPUの負荷に応じて暗号化に要する処理量を変化させる暗号化処理量調整手段を備え、前記暗号化処理量調整手段は、前記CPUの負荷が重いほど、暗号化に要する処理量を減らし、前記CPUの負荷が軽いほど、暗号化に要する処理量を増やすことを特徴とするトランスコーダが提供される。   According to the present invention, there is provided a transcoder including a decoder that decodes an encoded input image to obtain a restored image, and an encoder that re-encodes the restored image, wherein the decoder An encryption unit for encrypting, and the encoder includes a descrambling unit for descrambling the encrypted restored image, and the encryption unit determines a processing amount required for the encryption according to a load of the CPU. An encryption processing amount adjusting unit for changing, and the encryption processing amount adjusting unit reduces the processing amount required for encryption as the load on the CPU is heavier, and the processing required for encryption as the load on the CPU is lighter. A transcoder is provided that is characterized by increasing volume.

また、本発明によれば、符号化された入力画像を復号して、復元画像を得るデコーディングステップと、前記復元画像を再符号化するエンコーディングステップとを備えるトランスコーディング方法であって、前記デコーディングステップは、前記復元画像を暗号化する暗号化ステップを備え、前記エンコーディングステップは、暗号化された前記復元画像の暗号解除をする暗号解除ステップを備え、前記暗号化ステップは、CPUの負荷に応じて暗号化に要する処理量を変化させる暗号化処理量調整ステップを備え、前記暗号化領処理量整ステップは、前記CPUの負荷が重いほど、暗号化に要する処理量を減らし、前記CPUの負荷が軽いほど、暗号化に要する処理量を増やすことを特徴とするトランスコーディング方法が提供される。   In addition, according to the present invention, there is provided a transcoding method comprising: a decoding step for decoding a coded input image to obtain a restored image; and an encoding step for re-encoding the restored image. The coding step includes an encryption step for encrypting the restored image, and the encoding step includes a descrambling step for descrambling the restored restored image, and the encryption step is performed on a load of the CPU. And an encryption processing amount adjustment step for changing the processing amount required for encryption in accordance with the CPU, and the encryption processing amount adjustment step reduces the processing amount required for encryption as the load on the CPU increases. There is provided a transcoding method characterized by increasing the amount of processing required for encryption as the load is lighter.

更に、本発明によれば、符号化された入力画像を復号して、復元画像を得るデコーダと、前記復元画像を再符号化するエンコーダとを備えるトランスコーダとしてコンピュータを機能させるプログラムであって、前記デコーダは、前記復元画像を暗号化する暗号化手段を備え、前記エンコーダは、暗号化された前記復元画像の暗号解除をする暗号解除手段を備え、前記暗号化手段は、CPUの負荷に応じて暗号化に要する処理量を変化させる暗号化処理量調整手段を備え、前記暗号化処理量調整手段は、前記CPUの負荷が重いほど、暗号化に要する処理量を減らし、前記CPUの負荷が軽いほど、暗号化に要する処理量を増やすことを特徴とするトランスコーダとしてコンピュータを機能させるためのプログラムが提供される。   Furthermore, according to the present invention, there is provided a program for causing a computer to function as a transcoder including a decoder that decodes an encoded input image to obtain a restored image, and an encoder that re-encodes the restored image, The decoder includes an encryption unit that encrypts the restored image, and the encoder includes a descrambling unit that decrypts the encrypted restored image, and the encryption unit corresponds to a load on the CPU. Encryption processing amount adjustment means for changing the processing amount required for encryption, and the encryption processing amount adjustment means reduces the processing amount required for encryption as the load on the CPU increases. A program for causing a computer to function as a transcoder characterized by increasing the amount of processing required for encryption as the lighter is provided.

本発明によれば、CPUの負荷に応じて暗号化する領域を調整するので、CPUの負荷と暗号化強度との最適なバランスをえることができる。   According to the present invention, since the area to be encrypted is adjusted according to the load on the CPU, an optimal balance between the load on the CPU and the encryption strength can be obtained.

以下、図面を参照して本発明を実施するための最良の形態について詳細に説明する。   The best mode for carrying out the present invention will be described below in detail with reference to the drawings.

図1は、本発明の実施形態によるトランスコーダなどを含むシステムの構成を示す。   FIG. 1 shows the configuration of a system including a transcoder according to an embodiment of the present invention.

このシステムは、ファイルリーダ101、デマルチプレクサ103、デコーダ105、エンコーダ107及びファイルライタ109を備える。これらは、それぞれ、DirectShowのフィルタである。   This system includes a file reader 101, a demultiplexer 103, a decoder 105, an encoder 107, and a file writer 109. Each of these is a DirectShow filter.

ファイルリーダ101は、暗号化HD画像TSファイル111を読み出し、暗号化TS符号を出力する。ここでTSとは、トランスポートストリーム(transport stream)の略称である。   The file reader 101 reads the encrypted HD image TS file 111 and outputs an encrypted TS code. Here, TS is an abbreviation for transport stream.

デマルチプレクサ103は、暗号化TS符号を入力し、これを暗号化ビデオ符号と暗号化オーディオ符号に分離して、これらを出力する。   The demultiplexer 103 receives the encrypted TS code, separates it into an encrypted video code and an encrypted audio code, and outputs them.

デコーダ105は、暗号化ビデオ符号を入力し、これを基に、独自形式で暗号化された復号画像データを生成し、これを出力する。また、デコーダ105は、暗号化オーディオデータを入力し、これを基に、暗号化オーディオデータを生成し、これを出力する。   The decoder 105 receives the encrypted video code, generates decrypted image data encrypted in a unique format based on the encrypted video code, and outputs this. Also, the decoder 105 receives the encrypted audio data, generates encrypted audio data based on this, and outputs this.

エンコーダ107は、独自形式で暗号化された復元画像データ及び暗号化オーディオデータを入力し、これらを基に、暗号化PS符号を生成し、これを出力する。ここでPSはプログラムストリーム(Program Stream)の略称である。   The encoder 107 inputs the restored image data and the encrypted audio data encrypted in a unique format, generates an encrypted PS code based on these, and outputs this. Here, PS is an abbreviation for Program Stream.

ファイルライタ109は、暗号化PS符号を暗号化SD画像PSファイル113として、記録媒体に書き込む。   The file writer 109 writes the encrypted PS code as an encrypted SD image PS file 113 on the recording medium.

ここで、HD形式からSD形式への変換は、デコーダ105の内部において行われる。   Here, the conversion from the HD format to the SD format is performed inside the decoder 105.

また、図2を参照すると、概念的には、デコーダ105は、CPUの負荷が軽い時には暗号化領域を拡げ、又は、暗号化方式を重くする。他方、デコーダは、CPUの負荷が重い時には暗号化領域を狭め、又は、暗号化方式を軽くする。   Also, referring to FIG. 2, conceptually, the decoder 105 expands the encryption area or makes the encryption scheme heavy when the load on the CPU is light. On the other hand, the decoder narrows the encryption area or reduces the encryption method when the load on the CPU is heavy.

暗号化領域を拡げたり狭めたりすることには、図3に示すように、暗号化をする周波数領域を拡げたり狭めたりすることも含まれる。   Enlarging or narrowing the encryption area includes expanding or narrowing the frequency area for encryption as shown in FIG.

図4は、デコーダ105の内部の構成を示すブロック図である。   FIG. 4 is a block diagram showing an internal configuration of the decoder 105.

図4を参照すると、デコーダ105は、暗号解除部105−1、復号コア部105−3、HD/SD変換部105−5及び暗号化部105−7を備える。   Referring to FIG. 4, the decoder 105 includes a descrambling unit 105-1, a decryption core unit 105-3, an HD / SD conversion unit 105-5, and an encryption unit 105-7.

暗号解除部105−1は、暗号化ビデオ符号の暗号を解除する。   The descrambling unit 105-1 decrypts the encrypted video code.

復号コア部105−3は、ビデオ符号を基に、MPEG(Moving Picture Experts Group)方式に従って、HDの復元画像を生成し、これを出力する。   Based on the video code, the decoding core unit 105-3 generates an HD restored image in accordance with an MPEG (Moving Picture Experts Group) system, and outputs this.

HD/SD変換部105−5は、HDの復元画像を基に、SDの復元画像を生成する。   The HD / SD conversion unit 105-5 generates an SD restored image based on the HD restored image.

暗号化部105−7は、SDの復元画像を独自形式で暗号化し、独自形式で暗号化された復元画像データ及び暗号化附帯情報を生成し、これらを出力する。暗号化付帯情報は、暗号解除する際に参照される情報である。   The encryption unit 105-7 encrypts the SD restored image in a unique format, generates restored image data and encrypted supplementary information encrypted in the unique format, and outputs these. The encryption supplementary information is information that is referred to when descrambling.

暗号化部105−7は、暗号化をする際に、復号コア部105−3から出力されるマクロブロック情報を参照する。マクロブロック情報は、例えば、各DCTブロックの最大有意係数に関する情報や各マクロブロックの動きベクトルである。   The encryption unit 105-7 refers to the macroblock information output from the decryption core unit 105-3 when performing encryption. The macro block information is, for example, information on the maximum significant coefficient of each DCT block or a motion vector of each macro block.

図5を参照すると、エンコーダ107は、暗号解除部107−1、符号化コア部107−3及び暗号化部107−5を備える。   Referring to FIG. 5, the encoder 107 includes a descrambling unit 107-1, an encoding core unit 107-3, and an encryption unit 107-5.

暗号解除部107−1は、独自形式で暗号化された復元画像及び暗号化付帯情報を入力し、暗号化付帯情報を参照しながら、独自形式で暗号化された復元画像の暗号解除を行う。そして、暗号解除部107−1は、暗号解除された復元画像を出力する。   The descrambling unit 107-1 receives the restored image encrypted in the original format and the encrypted supplementary information, and decrypts the restored image encrypted in the unique format while referring to the encrypted supplementary information. Then, the descrambling unit 107-1 outputs the decompressed restored image.

符号化コア部107−3は、暗号解除された復元画像を基に、MPEG方式に従って、PS符号を生成する。   The encoding core unit 107-3 generates a PS code according to the MPEG method based on the decrypted restored image.

暗号化部107−5は、PS符号を暗号化して、暗号化PS符号を生成し、これを出力する。   The encryption unit 107-5 encrypts the PS code, generates an encrypted PS code, and outputs this.

次に、暗号化部105−7(図4参照)により行われる独自形式の暗号化の種々の例について説明する。   Next, various examples of unique format encryption performed by the encryption unit 105-7 (see FIG. 4) will be described.

図6は、閾値の更新の方法を説明するためのフローチャートである。閾値は、フレームを暗号化する際に参照される。閾値の更新は、各フレームの最初に行われる。   FIG. 6 is a flowchart for explaining a threshold value updating method. The threshold value is referred to when the frame is encrypted. The threshold is updated at the beginning of each frame.

図6を参照すると、まず、前フレームの暗号化処理時間Tを調べる(ステップS201)。   Referring to FIG. 6, first, the encryption processing time T of the previous frame is checked (step S201).

次に、前フレームの暗号化処理時間Tが上側閾値αよりも長いかどうかを調べる(ステップS203)。長い場合には(ステップS203でYES)、閾値を現在の閾値よりも所定量下げる(ステップS205)。   Next, it is checked whether or not the encryption processing time T of the previous frame is longer than the upper threshold value α (step S203). If it is longer (YES in step S203), the threshold is lowered by a predetermined amount from the current threshold (step S205).

次に、前フレームの暗号化処理時間Tが下側閾値βよりも短いかどうかを調べる(ステップS207)。短い場合には(ステップS207でYES)、閾値を現在の閾値よりも所定量上げる(ステップS209)。   Next, it is checked whether or not the encryption processing time T of the previous frame is shorter than the lower threshold value β (step S207). If it is shorter (YES in step S207), the threshold is increased by a predetermined amount from the current threshold (step S209).

図7は、各フレームを暗号化する方法を説明するためのフローチャートである。   FIG. 7 is a flowchart for explaining a method of encrypting each frame.

フレーム内の各マクロブロック走査線領域についてステップS213〜S223を繰り返す。   Steps S213 to S223 are repeated for each macroblock scanning line region in the frame.

ここで、図8を参照すると、マクロブロック走査線領域とは、画面の左端から右端まで横に並ぶマクロブロックの集合の領域のことである。マクロブロック走査線領域は、SD画像の場合には、水平720画素×垂直16画素の領域である。   Here, referring to FIG. 8, the macroblock scanning line region is a region of a set of macroblocks arranged horizontally from the left end to the right end of the screen. The macroblock scanning line area is an area of horizontal 720 pixels × vertical 16 pixels in the case of an SD image.

各繰り返しの最初にカウンタNをゼロにリセットする(ステップS213)。   At the beginning of each iteration, the counter N is reset to zero (step S213).

次に、マクロブロック走査線領域内の各マクロブロックについて、ステップS217などを繰り返す。   Next, step S217 and the like are repeated for each macroblock in the macroblock scanning line area.

ステップS217では、現在のマクロブロックの最高次の有意周波数成分が閾値よりも高いかどうかを調べる。ここで、HD/SD変換が縦横共に半分のサイズに縮小する変換である場合には、現在のマクロブロックの最高次の有意周波数成分は、現在のSD復元画像の現在のマクロブロックに対応した位置にあるHD復元画像の約4個のマクロブロックに含まれる合計で約16個の輝度のDCTブロックの最高次の有意周波数成分より求める。たとえば、16個の最高次の有意周波数成分の最大値を現在のマクロブロックの最高次の有意周波数成分にしてもよい。また、16個の最高次の有意周波数成分の平均値を現在のマクロブロックの最高次の有意周波数成分にしてもよい。   In step S217, it is checked whether or not the highest significant frequency component of the current macroblock is higher than a threshold value. Here, when the HD / SD conversion is a conversion that reduces to half the size both vertically and horizontally, the highest-order significant frequency component of the current macroblock is a position corresponding to the current macroblock of the current SD restored image. Are obtained from the highest-order significant frequency components of about 16 luminance DCT blocks in total included in about 4 macroblocks of the HD restored image. For example, the maximum value of 16 highest-order significant frequency components may be the highest-order significant frequency component of the current macroblock. The average value of the 16 highest-order significant frequency components may be the highest-order significant frequency component of the current macroblock.

現在のマクロブロックの最高次の有意周波数成分が閾値よりも高ければ、カウンタNに1を足す(ステップS219)。   If the highest significant frequency component of the current macroblock is higher than the threshold, 1 is added to the counter N (step S219).

ステップS215の繰り返しが終了したならば、カウンタNの値が所定の閾値Mよりも大きいかどうかを調べる(ステップS221)。そうであれば(ステップS221でYES)、現在のマクロブロック走査線領域を暗号化しない。他方、そうでなければ(ステップS221でNO)、現在のマクロブロック走査線領域を暗号化する(ステップS223)。   When the repetition of step S215 is completed, it is checked whether or not the value of the counter N is larger than a predetermined threshold value M (step S221). If so (YES in step S221), the current macroblock scanning line area is not encrypted. On the other hand, if not (NO in step S221), the current macroblock scanning line area is encrypted (step S223).

実施例1によれば、最高次の有意周波数成分が閾値よりも高いマクロブロックの数Nが所定の閾値よりも多ければ、そのマクロブロック走査線領域が暗号化されない。言い換えれば、最高次の有意周波数成分が閾値よりも高いマクロブロックの数Nが所定の閾値以下であれば、そのマクロブロック走査線領域が暗号化される。従って、有意周波数成分が低域に留まっているマクロブロックが多いマクロブロック走査線領域が優先的に暗号化されることとなる。従って、この実施例は、重要な部分が低域に留まっているマクロブロックが多い内容の画像に適したものである。   According to the first embodiment, if the number N of macroblocks whose highest significant frequency component is higher than the threshold is greater than the predetermined threshold, the macroblock scanning line area is not encrypted. In other words, if the number N of macroblocks in which the highest-order significant frequency component is higher than the threshold is equal to or smaller than the predetermined threshold, the macroblock scanning line region is encrypted. Therefore, the macroblock scanning line area having many macroblocks whose significant frequency components remain in the low band is preferentially encrypted. Therefore, this embodiment is suitable for an image having a large number of macroblocks in which important portions remain in the low frequency range.

図9は、閾値の更新の方法を説明するためのフローチャートである。閾値は、フレームを暗号化する際に参照される。閾値の更新は、各フレームの最初に行われる。   FIG. 9 is a flowchart for explaining a threshold value updating method. The threshold value is referred to when the frame is encrypted. The threshold is updated at the beginning of each frame.

図9を参照すると、まず、前フレームの暗号化処理時間Tを調べる(ステップS201)。   Referring to FIG. 9, first, the encryption processing time T of the previous frame is examined (step S201).

次に、前フレームの暗号化処理時間Tが上側閾値αよりも長いかどうかを調べる(ステップS203)。長い場合には(ステップS203でYES)、閾値を現在の閾値よりも所定量上げる(ステップS205B)。   Next, it is checked whether or not the encryption processing time T of the previous frame is longer than the upper threshold value α (step S203). If longer (YES in step S203), the threshold is increased by a predetermined amount than the current threshold (step S205B).

次に、前フレームの暗号化処理時間Tが下側閾値βよりも短いかどうかを調べる(ステップS207)。短い場合には(ステップS207でYES)、閾値を現在の閾値よりも所定量下げる(ステップS209B)。   Next, it is checked whether or not the encryption processing time T of the previous frame is shorter than the lower threshold value β (step S207). If it is shorter (YES in step S207), the threshold is lowered by a predetermined amount from the current threshold (step S209B).

図10は、各フレームを暗号化する方法を説明するためのフローチャートである。   FIG. 10 is a flowchart for explaining a method of encrypting each frame.

フレーム内の各マクロブロック走査線領域についてステップS213〜S223を繰り返す。   Steps S213 to S223 are repeated for each macroblock scanning line region in the frame.

各繰り返しの最初にカウンタNをゼロにリセットする(ステップS213)。   At the beginning of each iteration, the counter N is reset to zero (step S213).

次に、マクロブロック走査線領域内の各マクロブロックについて、ステップS217などを繰り返す。   Next, step S217 and the like are repeated for each macroblock in the macroblock scanning line area.

ステップS217では、現在のマクロブロックの最高次の有意周波数成分が閾値よりも高いかどうかを調べる。ここで、HD/SD変換が縦横共に半分のサイズに縮小する変換である場合には、現在のマクロブロックの最高次の有意周波数成分は、現在のSD復元画像の現在のマクロブロックに対応した位置にあるHD復元画像の4個のマクロブロックに含まれる合計で約16個の輝度のDCTブロックの最高次の有意周波数成分より求める。たとえば、16個の最高次の有意周波数成分の最大値を現在のマクロブロックの最高次の有意周波数成分にしてもよい。また、約16個の最高次の有意周波数成分の平均値を現在のマクロブロックの最高次の有意周波数成分にしてもよい。   In step S217, it is checked whether or not the highest significant frequency component of the current macroblock is higher than a threshold value. Here, when the HD / SD conversion is a conversion that reduces to half the size in both vertical and horizontal directions, the highest-order significant frequency component of the current macroblock is a position corresponding to the current macroblock of the current SD restored image. Are obtained from the highest-order significant frequency components of about 16 luminance DCT blocks in total included in the four macroblocks of the HD restored image. For example, the maximum value of 16 highest-order significant frequency components may be the highest-order significant frequency component of the current macroblock. Further, an average value of about 16 highest-order significant frequency components may be used as the highest-order significant frequency component of the current macroblock.

現在のマクロブロックの最高次の有意周波数成分が閾値以下よりも低ければ、カウンタNに1を足す(ステップS219)。   If the highest significant frequency component of the current macroblock is lower than the threshold value, 1 is added to the counter N (step S219).

ステップS215の繰り返しが終了したならば、カウンタNの値が所定の閾値Mよりも大きいかどうかを調べる(ステップS221)。そうであれば(ステップS221でYES)、現在のマクロブロック走査線領域を暗号化しない。他方、そうでなければ(ステップS221でNO)、現在のマクロブロック走査線領域を暗号化する(ステップS223)。   When the repetition of step S215 is completed, it is checked whether or not the value of the counter N is larger than a predetermined threshold value M (step S221). If so (YES in step S221), the current macroblock scanning line area is not encrypted. On the other hand, if not (NO in step S221), the current macroblock scanning line area is encrypted (step S223).

実施例2によれば、最高次の有意周波数成分が閾値よりも低いマクロブロックの数Nが所定の閾値よりも多ければ、そのマクロブロック走査線領域が暗号化されない。言い換えれば、最高次の有意周波数成分が閾値よりも低いマクロブロックの数Nが所定の閾値以下であれば、そのマクロブロック走査線領域が暗号化される。従って、有意周波数成分が低域に留まっているマクロブロックが少ないマクロブロック走査線領域が優先的に暗号化されることとなる。従って、この実施例は、重要な部分が中高域に留まっているマクロブロックが多い内容の画像に適したものである。   According to the second embodiment, if the number N of macroblocks whose highest significant frequency component is lower than the threshold is greater than the predetermined threshold, the macroblock scanning line region is not encrypted. In other words, if the number N of macroblocks whose highest significant frequency component is lower than the threshold is equal to or less than the predetermined threshold, the macroblock scanning line region is encrypted. Therefore, a macroblock scanning line area with few macroblocks having significant frequency components remaining in the low band is preferentially encrypted. Therefore, this embodiment is suitable for an image having a large number of macroblocks in which important portions remain in the mid-high range.

実施例1及び実施例2の変形例として、カウンタNが大きいほど、マクロブロック走査線領域内の暗号化する走査線を少なくするようにしてもよい。   As a modification of the first and second embodiments, the larger the counter N, the fewer scanning lines to be encrypted in the macroblock scanning line area.

図11は、レベルの更新の方法を説明するためのフローチャートである。レベルは、フレームを暗号化する際に参照される。レベルの更新は、各フレームの最初に行われる。   FIG. 11 is a flowchart for explaining a level update method. The level is referred to when the frame is encrypted. Level updates occur at the beginning of each frame.

図11を参照すると、まず、前フレームの暗号化処理時間Tを調べる(ステップS231)。   Referring to FIG. 11, first, the encryption processing time T of the previous frame is examined (step S231).

次に、前フレームの暗号化処理時間Tが上側閾値αよりも長いかどうかを調べる(ステップS233)。長い場合には(ステップS233でYES)、レベルを1だけ下げる(ステップS235)。   Next, it is checked whether or not the encryption processing time T of the previous frame is longer than the upper threshold value α (step S233). If it is long (YES in step S233), the level is lowered by 1 (step S235).

次に、前フレームの暗号化処理時間Tが下側閾値βよりも短いかどうかを調べる(ステップS237)。短い場合には(ステップS237でYES)、レベルを1だけ上げる(ステップS239)。   Next, it is checked whether or not the encryption processing time T of the previous frame is shorter than the lower threshold value β (step S237). If it is shorter (YES in step S237), the level is increased by 1 (step S239).

実施例4では、レベルに応じて暗号化するべきマクロブロックが決まっている。   In the fourth embodiment, the macroblock to be encrypted is determined according to the level.

例えば、図12に示すように、レベル1では、暗号化を全くせず、レベルが上がるに従い、上下左右方向中央から暗号化するべき領域を上下左右に拡げていって、レベル5で画面全体を暗号化するようにしても良い。   For example, as shown in FIG. 12, at level 1, no encryption is performed at all, and as the level increases, the area to be encrypted is expanded from the top, bottom, left, and right center to the top, bottom, left, and right. You may make it encrypt.

また、図13に示すように、レベル1では、暗号化を全くせず、レベルが上がるに従い、上下方向中央から暗号化するべき領域を上下に拡げていって、レベル5で画面全体を暗号化するようにしても良い。   Also, as shown in FIG. 13, at level 1, no encryption is performed at all, and as the level increases, the area to be encrypted is expanded vertically from the center in the vertical direction, and the entire screen is encrypted at level 5. You may make it do.

図14は、各フレームを暗号化する方法を説明するためのフローチャートである。   FIG. 14 is a flowchart for explaining a method of encrypting each frame.

フレーム内の各マクロブロックについてステップS243などを繰り返す(ステップS241)。   Step S243 and the like are repeated for each macroblock in the frame (step S241).

ステップS243では、現在のブロックが現在のレベルにおいて暗号化するべきブロックであるかどうかを調べる。   In step S243, it is checked whether the current block is a block to be encrypted at the current level.

そうであれば(ステップS243でYES)、現在のマクロブロックを暗号化する(ステップS245)。   If so (YES in step S243), the current macroblock is encrypted (step S245).

実施例5では、レベルに応じて暗号化するべき周波数成分が決まっている。   In the fifth embodiment, the frequency component to be encrypted is determined according to the level.

例えば、図15に示すように、レベル1では、暗号化を全くせず、レベルが上がるに従い、暗号化するべき周波数成分の領域を高周波方向に拡げていって、レベル5では、全周波数成分を暗号化するようにしても良い。   For example, as shown in FIG. 15, at level 1, no encryption is performed, and as the level increases, the frequency component region to be encrypted is expanded in the high frequency direction. At level 5, all frequency components are expanded. You may make it encrypt.

また、図16に示すように、中域の周波数成分を優先して暗号化するようにしてもよい。   Further, as shown in FIG. 16, encryption may be performed by giving priority to the frequency component in the middle range.

実施例5でのレベルの更新方法は、実施例4と同様であるので説明を省略する。   Since the level updating method in the fifth embodiment is the same as that in the fourth embodiment, a description thereof will be omitted.

図17は、各フレームを暗号化する方法を説明するためのフローチャートである。   FIG. 17 is a flowchart for explaining a method of encrypting each frame.

フレーム内の各マクロブロックについてステップS253などを繰り返す(ステップS251)。   Step S253 and the like are repeated for each macroblock in the frame (step S251).

各マクロブロック内においては、マクロブロックに含まれる各DCTブロックについてステップS255などを繰り返す(ステップS253)。   Within each macroblock, step S255 and the like are repeated for each DCT block included in the macroblock (step S253).

各DCTブロック内においては、最高有意周波数成分までステップS257などが繰り返される(ステップS255)。   Within each DCT block, step S257 and the like are repeated up to the highest significant frequency component (step S255).

ステップS257では、現在の周波数成分が現在のレベルにおいて暗号化するべき周波数成分であるかどうかを調べる。   In step S257, it is checked whether the current frequency component is a frequency component to be encrypted at the current level.

そうであれば(ステップS257でYES)、現在の周波数成分を暗号化する(ステップS259)。   If so (YES in step S257), the current frequency component is encrypted (step S259).

実施例6では、動きベクトルの絶対値の大きさに応じてマクロブロックを暗号化するかどうかを決める。   In the sixth embodiment, whether to encrypt a macro block is determined according to the magnitude of the absolute value of the motion vector.

実施例6での閾値の更新方法は、実施例1と同様であるので説明を省略する。   Since the threshold value updating method in the sixth embodiment is the same as that in the first embodiment, the description thereof is omitted.

図18は、各フレームを暗号化する方法を説明するためのフローチャートである。   FIG. 18 is a flowchart for explaining a method of encrypting each frame.

フレーム内の各マクロブロックについてステップS263などを繰り返す(ステップS261)。   Step S263 and the like are repeated for each macroblock in the frame (step S261).

ステップS263では、現在のマクロブロックの動きベクトルの絶対値が閾値より大きいかどうかを調べる。   In step S263, it is checked whether or not the absolute value of the motion vector of the current macroblock is larger than the threshold value.

そうであれば(ステップS263でYES)、現在のマクロブロックを暗号化しない。   If so (YES in step S263), the current macroblock is not encrypted.

そうでなければ(ステップS263でNO)、現在のマクロブロックを暗号化する(ステップS265)。   Otherwise (NO in step S263), the current macroblock is encrypted (step S265).

実施例6によれば、動きベクトルの絶対値が閾値よりも大きければ、そのマクロブロックは暗号化されない。言い換えれば、動きベクトルの絶対値が閾値以下であれば、そのマクロブロックは暗号化される。従って、動きベクトルの絶対値が小さいマクロブロックが優先的に暗号化されることとなる。従って、この実施例は、重要な部分が動きの少ない部分に留まっている画像に適したものである。   According to the sixth embodiment, if the absolute value of the motion vector is larger than the threshold value, the macroblock is not encrypted. In other words, if the absolute value of the motion vector is less than or equal to the threshold value, the macroblock is encrypted. Therefore, a macroblock having a small absolute value of the motion vector is preferentially encrypted. Therefore, this embodiment is suitable for an image in which an important part remains in a part with little movement.

実施例7では、動きベクトルの絶対値の大きさに応じてマクロブロックを暗号化するかどうかを決める。   In the seventh embodiment, whether to encrypt a macro block is determined according to the magnitude of the absolute value of the motion vector.

実施例7での閾値の更新方法は、実施例2と同様であるので説明を省略する。   Since the threshold value updating method in the seventh embodiment is the same as that in the second embodiment, the description thereof is omitted.

図19は、各フレームを暗号化する方法を説明するためのフローチャートである。   FIG. 19 is a flowchart for explaining a method of encrypting each frame.

フレーム内の各マクロブロックについてステップS263Bなどを繰り返す(ステップS261)。   Step S263B and the like are repeated for each macroblock in the frame (step S261).

ステップS263Bでは、現在のマクロブロックの動きベクトルの絶対値が閾値より小さいかどうかを調べる。   In step S263B, it is checked whether the absolute value of the motion vector of the current macroblock is smaller than a threshold value.

そうであれば(ステップS263BでYES)、現在のマクロブロックを暗号化しない。   If so (YES in step S263B), the current macroblock is not encrypted.

そうでなければ(ステップS263BでNO)、現在のマクロブロックを暗号化する(ステップS265)。   Otherwise (NO in step S263B), the current macroblock is encrypted (step S265).

実施例7によれば、動きベクトルの絶対値が閾値よりも小さければ、そのマクロブロックは暗号化されない。言い換えれば、動きベクトルの絶対値が閾値以上であれば、そのマクロブロックは暗号化される。従って、動きベクトルの絶対値が大きいマクロブロックが優先的に暗号化されることとなる。従って、この実施例は、重要な部分が動きの多い部分に留まっている画像に適したものである。   According to the seventh embodiment, if the absolute value of the motion vector is smaller than the threshold value, the macroblock is not encrypted. In other words, if the absolute value of the motion vector is greater than or equal to the threshold, the macroblock is encrypted. Therefore, a macroblock having a large absolute value of the motion vector is preferentially encrypted. Therefore, this embodiment is suitable for an image in which an important part remains in a part with a lot of movement.

実施例8は、実施例5と実施例6とを組み合わせたものである。   Example 8 is a combination of Example 5 and Example 6.

実施例8でのレベルの更新方法は、実施例4と同様であるので説明を省略する。また、実施例8での閾値の更新方法は、実施例1と同様であるので説明を省略する。   Since the level update method in the eighth embodiment is the same as that in the fourth embodiment, a description thereof will be omitted. Further, the threshold value updating method in the eighth embodiment is the same as that in the first embodiment, and thus the description thereof is omitted.

図20は、各フレームを暗号化する方法を説明するためのフローチャートである。   FIG. 20 is a flowchart for explaining a method of encrypting each frame.

フレーム内の各マクロブロックについてステップS273などを繰り返す(ステップS271)。   Step S273 and the like are repeated for each macroblock in the frame (step S271).

ステップS273では、現在のマクロブロックの動きベクトルの絶対値が閾値よりも大きいかどうかを調べる。   In step S273, it is checked whether or not the absolute value of the motion vector of the current macroblock is larger than a threshold value.

そうであれば(ステップS273でYES)、現在のマクロブロックを暗号化しない。   If so (YES in step S273), the current macroblock is not encrypted.

そうでなければ、現在のマクロブロック内の各DCTブロックについてステップS277などを繰り返す(ステップS275)。   Otherwise, step S277 and the like are repeated for each DCT block in the current macroblock (step S275).

ステップS277では、現在のDCTブロックの各周波数成分についてステップS279などを繰り返す。   In step S277, step S279 and the like are repeated for each frequency component of the current DCT block.

ステップS279では、現在の週蓮成分が現在のレベルにおいて暗号化するべき周波数成分であるのかどうかを調べる。   In step S279, it is checked whether or not the current weekly lotus component is a frequency component to be encrypted at the current level.

そうであれば(ステップS279でYES)、現在の周波数成分を暗号化する(ステップS281)。   If so (YES in step S279), the current frequency component is encrypted (step S281).

実施例9では、閾値以下の周波数成分のみを暗号化する。   In the ninth embodiment, only frequency components equal to or less than the threshold value are encrypted.

実施例9での閾値の更新方法は、実施例1と同様であるので説明を省略する。   Since the threshold updating method in the ninth embodiment is the same as that in the first embodiment, the description thereof is omitted.

図21は、各フレームを暗号化する方法を説明するためのフローチャートである。   FIG. 21 is a flowchart for explaining a method of encrypting each frame.

フレーム内の各マクロブロックについてステップS293などを繰り返す(ステップS291)。   Step S293 and the like are repeated for each macroblock in the frame (step S291).

ステップS293では、現在のマクロブロック内の各DCTブロックについてステップS295などを繰り返す。   In step S293, step S295 and the like are repeated for each DCT block in the current macroblock.

ステップS295では、現在のDCTブロックの最高有意周波数成分までの各周波数成分についてステップS297などを繰り返す。   In step S295, step S297 and the like are repeated for each frequency component up to the highest significant frequency component of the current DCT block.

ステップS297では、現在の周波数成分の次数が閾値以下かどうかを調べる。   In step S297, it is checked whether the current frequency component order is equal to or less than a threshold value.

そうであれば(ステップS297でYES)、現在の周波数成分を暗号化する(ステップS299)。   If so (YES in step S297), the current frequency component is encrypted (step S299).

実施例9によれば、閾値以上の次数の周波数成分が暗号化されない。言い換えれば、閾値よりも小さい次数の周波数成分のみが暗号化される。従って、この実施例は、重要な部分が低域に留まっているマクロブロックが多い内容の画像に適したものである。   According to the ninth embodiment, frequency components having an order equal to or higher than the threshold are not encrypted. In other words, only the frequency components of order smaller than the threshold are encrypted. Therefore, this embodiment is suitable for an image having a large number of macroblocks in which important portions remain in the low band.

実施例10では、閾値以上の周波数成分のみを暗号化する。   In the tenth embodiment, only frequency components equal to or higher than the threshold are encrypted.

実施例10での閾値の更新方法は、実施例2と同様であるので説明を省略する。   Since the threshold value updating method in the tenth embodiment is the same as that in the second embodiment, a description thereof will be omitted.

図22は、各フレームを暗号化する方法を説明するためのフローチャートである。   FIG. 22 is a flowchart for explaining a method of encrypting each frame.

フレーム内の各マクロブロックについてステップS293などを繰り返す(ステップS291)。   Step S293 and the like are repeated for each macroblock in the frame (step S291).

ステップS293では、現在のマクロブロック内の各DCTブロックについてステップS295などを繰り返す。   In step S293, step S295 and the like are repeated for each DCT block in the current macroblock.

ステップS295では、現在のDCTブロックの最高有意周波数成分までの各周波数成分についてステップS297Bなどを繰り返す。   In step S295, step S297B and the like are repeated for each frequency component up to the highest significant frequency component of the current DCT block.

ステップS297Bでは、現在の周波数成分の次数が閾値以上かどうかを調べる。   In step S297B, it is checked whether or not the current frequency component order is greater than or equal to a threshold value.

そうであれば(ステップS297BでYES)、現在の周波数成分を暗号化する(ステップS299)。   If so (YES in step S297B), the current frequency component is encrypted (step S299).

実施例10によれば、閾値以下の次数の周波数成分が暗号化されない。言い換えれば、閾値よりも大きい次数の周波数成分のみが暗号化される。従って、この実施例は、重要な部分が中高域に留まっているマクロブロックが多い内容の画像に適したものである。   According to the tenth embodiment, the frequency components of the order below the threshold are not encrypted. In other words, only frequency components of order greater than the threshold are encrypted. Therefore, this embodiment is suitable for an image having a large number of macroblocks in which important portions remain in the mid-high range.

実施例5と実施例6とを組み合わせたのと同様に、実施例5と実施例9とを組み合わせても良い。この組み合わせが実施例11である。すなわち、動きベクトルの絶対値が閾値よりも大きいマクロブロックは暗号化せず、動きベクトルの絶対値が閾値以下のマクロブロックのみについて図21に示すような方法を行う。   Similarly to the combination of the fifth embodiment and the sixth embodiment, the fifth embodiment and the ninth embodiment may be combined. This combination is Example 11. That is, a macroblock whose absolute value of a motion vector is larger than a threshold is not encrypted, and only the macroblock whose absolute value of a motion vector is equal to or smaller than the threshold is used as shown in FIG.

本発明の実施形態によるトランスコーダなどを含むシステムの構成を示すブロック図である。It is a block diagram which shows the structure of the system containing the transcoder etc. by embodiment of this invention. 本発明の概念を説明するための第1の図である。It is a 1st figure for demonstrating the concept of this invention. 本発明の概念を説明するための第2の図である。It is a 2nd figure for demonstrating the concept of this invention. 図1に示すデコーダの内部の構成を示すブロック図である。FIG. 2 is a block diagram showing an internal configuration of a decoder shown in FIG. 1. 図1に示すエンコーダの内部の構成を示すブロック図である。It is a block diagram which shows the structure inside the encoder shown in FIG. 本発明の実施例1による閾値の更新の方法を説明するためのフローチャートである。It is a flowchart for demonstrating the method of the threshold value update by Example 1 of this invention. 本発明の実施例1によるフレームの暗号化の方法を説明するためのフローチャートである。3 is a flowchart for explaining a frame encryption method according to the first embodiment of the present invention; マクロブロック走査線領域を説明するための図である。It is a figure for demonstrating a macroblock scanning line area | region. 本発明の実施例2による閾値の更新の方法を説明するためのフローチャートである。It is a flowchart for demonstrating the method of the threshold value update by Example 2 of this invention. 本発明の実施例2によるフレームの暗号化の方法を説明するためのフローチャートである。It is a flowchart for demonstrating the method of the encryption of the flame | frame by Example 2 of this invention. 本発明の実施例4によるレベルの更新の方法を説明するためのフローチャートである。It is a flowchart for demonstrating the method of the level update by Example 4 of this invention. 本発明の実施例4によるレベルに応じてフレーム内の暗号化領域を異ならせる第1の例を示す図である。It is a figure which shows the 1st example which changes the encryption area | region in a flame | frame according to the level by Example 4 of this invention. 本発明の実施例4によるレベルに応じてフレーム内の暗号化領域を異ならせる第2の例を示す図である。It is a figure which shows the 2nd example which changes the encryption area | region in a flame | frame according to the level by Example 4 of this invention. 本発明の実施例4によるフレームの暗号化の方法を説明するためのフローチャートである。It is a flowchart for demonstrating the method of the encryption of the flame | frame by Example 4 of this invention. 本発明の実施例5によるレベルに応じてDCTブロック内の暗号化領域を異ならせる第1の例を示す図である。It is a figure which shows the 1st example which changes the encryption area | region in a DCT block according to the level by Example 5 of this invention. 本発明の実施例5によるレベルに応じてDCTブロック内の暗号化領域を異ならせる第2の例を示す図である。It is a figure which shows the 2nd example which changes the encryption area | region in a DCT block according to the level by Example 5 of this invention. 本発明の実施例5によるフレームの暗号化の方法を説明するためのフローチャートである。It is a flowchart for demonstrating the method of the encryption of the flame | frame by Example 5 of this invention. 本発明の実施例6によるフレームの暗号化の方法を説明するためのフローチャートである。It is a flowchart for demonstrating the method of the encryption of the flame | frame by Example 6 of this invention. 本発明の実施例7によるフレームの暗号化の方法を説明するためのフローチャートである。It is a flowchart for demonstrating the method of the encryption of the flame | frame by Example 7 of this invention. 本発明の実施例8によるフレームの暗号化の方法を説明するためのフローチャートである。It is a flowchart for demonstrating the method of the encryption of the flame | frame by Example 8 of this invention. 本発明の実施例9によるフレームの暗号化の方法を説明するためのフローチャートである。It is a flowchart for demonstrating the method of the encryption of the flame | frame by Example 9 of this invention. 本発明の実施例10によるフレームの暗号化の方法を説明するためのフローチャートである。It is a flowchart for demonstrating the method of the encryption of the flame | frame by Example 10 of this invention.

符号の説明Explanation of symbols

101 ファイルリーダ
103 デマルチプレクサ
105 デコーダ
105−1 暗号解除部
105−3 復号コア部
105−5 HD/SD変換部
105−7 暗号化部
107 エンコーダ
107−1 暗号解除部
107−3 符号化コア部
107−5 暗号化部
109 ファイルライタ
111 暗号化HD画像TSファイル
113 暗号化SD画像PSファイル
DESCRIPTION OF SYMBOLS 101 File reader 103 Demultiplexer 105 Decoder 105-1 Decryption part 105-3 Decoding core part 105-5 HD / SD conversion part 105-7 Encryption part 107 Encoder 107-1 Decryption part 107-3 Encoding core part 107 -5 Encryption section 109 File writer 111 Encrypted HD image TS file 113 Encrypted SD image PS file

Claims (16)

符号化された入力画像を復号して、復元画像を得るデコーダと、前記復元画像を再符号化するエンコーダとを備えるトランスコーダであって、
前記デコーダは、前記復元画像を暗号化する暗号化手段を備え、
前記エンコーダは、暗号化された前記復元画像の暗号解除をする暗号解除手段を備え、
前記暗号化手段は、CPUの負荷に応じて暗号化に要する処理量を変化させる暗号化処理量調整手段を備え、
前記暗号化処理量調整手段は、前記CPUの負荷が重いほど、暗号化に要する処理量を減らし、前記CPUの負荷が軽いほど、暗号化に要する処理量を増やすことを特徴とするトランスコーダ。
A transcoder comprising a decoder that decodes an encoded input image to obtain a restored image, and an encoder that re-encodes the restored image,
The decoder includes encryption means for encrypting the restored image,
The encoder includes a descrambling means for descrambling the restored restored image,
The encryption unit includes an encryption processing amount adjustment unit that changes a processing amount required for encryption according to a load on the CPU.
The transcoder is characterized in that the encryption processing amount adjustment means decreases the processing amount required for encryption as the load on the CPU is heavy, and increases the processing amount required for encryption as the load on the CPU is light.
請求項1に記載のトランスコーダにおいて、
前記暗号化処理量調整手段は、前記CPUの負荷が重いほど、フレーム内の暗号化をする走査線数を少なくし、前記CPUの負荷が軽いほど、前記フレーム内の暗号化をする走査線数を多くすることを特徴とするトランスコーダ。
The transcoder of claim 1.
The encryption processing amount adjusting means reduces the number of scanning lines to be encrypted in the frame as the load on the CPU is heavier, and the number of scanning lines to be encrypted in the frame as the load on the CPU is lighter. Transcoder characterized by increasing
請求項2に記載のトランスコーダにおいて、
前記暗号化処理量調整手段は、前記CPUの負荷が重いほど、周波数閾値を低くし、前記CPUの負荷が軽いほど、周波数閾値を高くし、最高次の周波数が前記周波数閾値よりも高いマクロブロックの数が所定個よりも多いマクロブロック走査線領域を暗号化しないことを特徴とするトランスコーダ。
The transcoder according to claim 2, wherein
The encryption processing amount adjustment means lowers the frequency threshold as the CPU load is heavier, increases the frequency threshold as the CPU load is lighter, and the macroblock having the highest frequency higher than the frequency threshold. A transcoder that does not encrypt a macroblock scanning line area having a number greater than a predetermined number.
請求項2に記載のトランスコーダにおいて、
前記暗号化処理量調整手段は、前記CPUの負荷が重いほど、周波数閾値を高くし、前記CPUの負荷が軽いほど、周波数閾値を低くし、最高次の周波数が前記周波数閾値よりも低いマクロブロックの数が所定個よりも多いマクロブロック走査線領域を暗号化しないことを特徴とするトランスコーダ。
The transcoder according to claim 2, wherein
The encryption processing amount adjustment means increases the frequency threshold as the load on the CPU is heavier, lowers the frequency threshold as the load on the CPU is lighter, and a macroblock whose highest frequency is lower than the frequency threshold. A transcoder that does not encrypt a macroblock scanning line area having a number greater than a predetermined number.
請求項1に記載のトランスコーダにおいて、
前記暗号化処理量調整手段は、前記CPUの負荷が重いほど、フレーム内の暗号化をするマクロブロック数を少なくし、前記CPUの負荷が軽いほど前記フレーム内の暗号化をするマクロブロック数を多くすることを特徴とするトランスコーダ。
The transcoder of claim 1.
The encryption processing amount adjusting means decreases the number of macroblocks to be encrypted in a frame as the load on the CPU is heavier, and reduces the number of macroblocks to be encrypted in the frame as the load on the CPU is lighter. Transcoder characterized by a lot.
請求項5に記載のトランスコーダにおいて、
前記暗号化処理量調整手段は、前記CPUの負荷の重さの範囲毎に暗号化するマクロブロックを予め決めておくことを特徴とするトランスコーダ。
The transcoder according to claim 5, wherein
The transcoder is characterized in that the encryption processing amount adjusting means predetermines macroblocks to be encrypted for each range of the load of the CPU.
請求項5に記載のトランスコーダにおいて、
前記暗号化処理量調整手段は、前記CPUの負荷が重いほど、最高有意周波数の閾値を低くし、前記CPUの負荷が軽いほど、最高有意周波数の閾値を高くし、最高有意周波数が前記最高有意周波数の閾値より高いマクロブロックを暗号化しないことを特徴とするトランスコーダ。
The transcoder according to claim 5, wherein
The encryption processing amount adjustment means lowers the threshold of the highest significant frequency as the load on the CPU is heavier, increases the threshold of the highest significant frequency as the load on the CPU is lighter, and the highest significant frequency becomes the highest significant frequency. A transcoder that does not encrypt macroblocks that are higher than a frequency threshold.
請求項5に記載のトランスコーダにおいて、
前記暗号化領域処理量手段は、前記CPUの負荷が重いほど、最高有意周波数の閾値を高くし、前記CPUの負荷が軽いほど、最高有意周波数の閾値を低くし、最高有意周波数が前記最高有意周波数の閾値より低いマクロブロックを暗号化しないことを特徴とするトランスコーダ。
The transcoder according to claim 5, wherein
The encryption region processing amount means increases the threshold value of the highest significant frequency as the load on the CPU is heavier, lowers the threshold value of the highest significant frequency as the load on the CPU is lighter, and the highest significant frequency is the highest significant frequency. A transcoder that does not encrypt macroblocks lower than a frequency threshold.
請求項5に記載のトランスコーダにおいて、
前記暗号化処理量調整手段は、前記CPUの負荷が重いほど、動きベクトルの絶対値の閾値を小さくし、前記CPUの負荷が軽いほど、動きベクトルの絶対値の閾値を大きくし、動きベクトルの大きさが前記閾値の動きベクトルより大きいマクロブロックを暗号化しないことを特徴とするトランスコーダ。
The transcoder according to claim 5, wherein
The encryption processing amount adjusting unit decreases the absolute value of the motion vector as the CPU load is heavier, and increases the absolute value of the motion vector as the CPU load is lighter. A transcoder which does not encrypt a macroblock whose size is larger than the threshold motion vector.
請求項5に記載のトランスコーダにおいて、
前記暗号化処理量調整手段は、前記CPUの負荷が重いほど、動きベクトルの絶対値の閾値を大きくし、前記CPUの負荷が軽いほど、動きベクトルの絶対値の閾値を小さくし、動きベクトルの大きさが前記閾値の動きベクトルより小さいマクロブロックを暗号化しないことを特徴とするトランスコーダ。
The transcoder according to claim 5, wherein
The encryption processing amount adjustment unit increases the absolute value of the motion vector as the CPU load is heavier, and decreases the absolute value of the motion vector as the CPU load is lighter. A transcoder that does not encrypt a macroblock having a size smaller than the threshold motion vector.
請求項1に記載のトランスコーダにおいて、
前記暗号化処理量調整手段は、前記CPUの負荷が重いほど、各ブロックの暗号化をする最高次の周波数を低くし、前記CPUの負荷が軽いほど、各ブロックの暗号化をする最高次の周波数を高くすることを特徴とするトランスコーダ。
The transcoder of claim 1.
The encryption processing amount adjusting means lowers the highest order frequency for encrypting each block as the load on the CPU is heavier, and the highest order for encrypting each block as the load on the CPU is lighter. A transcoder characterized by increasing the frequency.
請求項11に記載のトランスコーダにおいて、
前記暗号化処理量調整手段は、前記CPUの負荷が重いほど、周波数閾値を低くし、前記CPUの負荷が軽いほど、周波数閾値を高くし、最高次の周波数が前記周波数閾値より大きいブロックを暗号化しないことを特徴とするトランスコーダ。
The transcoder according to claim 11, wherein
The encryption processing amount adjusting means lowers the frequency threshold as the load on the CPU is heavier, increases the frequency threshold as the load on the CPU is lighter, and encrypts blocks whose highest frequency is larger than the frequency threshold. Transcoder characterized by not converting to
請求項1に記載のトランスコーダにおいて、
前記暗号化処理量調整手段は、前記CPUの負荷の重さの範囲毎に暗号化する周波数成分を予め決めておくことを特徴とするトランスコーダ。
The transcoder of claim 1.
The transcoder is characterized in that the encryption processing amount adjusting means predetermines a frequency component to be encrypted for each range of the load of the CPU.
請求項1乃至13の何れか1項に記載のトランスコーダにおいて、
前記CPUの負荷の重さは、過去のフレームを暗号化することに要した時間に基づいて判断することを特徴とするトランスコーダ。
The transcoder according to any one of claims 1 to 13,
The transcoder is characterized in that the load of the CPU is determined based on the time required to encrypt a past frame.
符号化された入力画像を復号して、復元画像を得るデコーディングステップと、前記復元画像を再符号化するエンコーディングステップとを備えるトランスコーディング方法であって、
前記デコーディングステップは、前記復元画像を暗号化する暗号化ステップを備え、
前記エンコーディングステップは、暗号化された前記復元画像の暗号解除をする暗号解除ステップを備え、
前記暗号化ステップは、CPUの負荷に応じて暗号化に要する処理量を変化させる暗号化処理量調整ステップを備え、
前記暗号化領処理量整ステップは、前記CPUの負荷が重いほど、暗号化に要する処理量を減らし、前記CPUの負荷が軽いほど、暗号化に要する処理量を増やすことを特徴とするトランスコーディング方法。
A transcoding method comprising: a decoding step of decoding an encoded input image to obtain a restored image; and an encoding step of re-encoding the restored image,
The decoding step includes an encryption step for encrypting the restored image,
The encoding step includes a descrambling step for descrambling the restored restored image,
The encryption step includes an encryption processing amount adjustment step of changing a processing amount required for encryption according to a load on the CPU,
The encryption area processing amount adjusting step reduces the processing amount required for encryption as the load on the CPU is heavier, and increases the processing amount required for encryption as the load on the CPU is lighter. Method.
符号化された入力画像を復号して、復元画像を得るデコーダと、前記復元画像を再符号化するエンコーダとを備えるトランスコーダとしてコンピュータを機能させるプログラムであって、
前記デコーダは、前記復元画像を暗号化する暗号化手段を備え、
前記エンコーダは、暗号化された前記復元画像の暗号解除をする暗号解除手段を備え、
前記暗号化手段は、CPUの負荷に応じて暗号化に要する処理量を変化させる暗号化処理量調整手段を備え、
前記暗号化処理量調整手段は、前記CPUの負荷が重いほど、暗号化に要する処理量を減らし、前記CPUの負荷が軽いほど、暗号化に要する処理量を増やすことを特徴とするトランスコーダとしてコンピュータを機能させるためのプログラム。
A program that causes a computer to function as a transcoder including a decoder that decodes an encoded input image to obtain a restored image, and an encoder that re-encodes the restored image,
The decoder includes encryption means for encrypting the restored image,
The encoder includes a descrambling means for descrambling the restored restored image,
The encryption unit includes an encryption processing amount adjustment unit that changes a processing amount required for encryption according to a load on the CPU.
The encryption processing amount adjusting means reduces the processing amount required for encryption as the CPU load is heavier, and increases the processing amount required for encryption as the CPU load is lighter. A program that allows a computer to function.
JP2007219807A 2007-08-27 2007-08-27 Transcoder, transcoding method and transcoding program Active JP5143502B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007219807A JP5143502B2 (en) 2007-08-27 2007-08-27 Transcoder, transcoding method and transcoding program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007219807A JP5143502B2 (en) 2007-08-27 2007-08-27 Transcoder, transcoding method and transcoding program

Publications (2)

Publication Number Publication Date
JP2009055315A true JP2009055315A (en) 2009-03-12
JP5143502B2 JP5143502B2 (en) 2013-02-13

Family

ID=40505985

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007219807A Active JP5143502B2 (en) 2007-08-27 2007-08-27 Transcoder, transcoding method and transcoding program

Country Status (1)

Country Link
JP (1) JP5143502B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111361551A (en) * 2018-12-24 2020-07-03 现代自动车株式会社 Autonomous driving control device, vehicle having the same, and vehicle control method
JP2021522759A (en) * 2018-12-31 2021-08-30 ギョンジュ スマート メディア センター DRM content packaging device and DRM content packaging system including it and DRM content packaging method
JP2022518988A (en) * 2019-12-30 2022-03-18 ギョンジュ スマート メディア センター DRM content parallel packaging device and DRM content parallel packaging system including it and DRM content parallel packaging method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08289288A (en) * 1995-04-14 1996-11-01 Nec Corp Moving image communication system
JP2000333141A (en) * 1999-05-24 2000-11-30 Sony Corp Copyright protection method and device for highly precise video signal, broadcast system, receiving device, recording and reproducing method and device, and reproducing method and device
JP2002064482A (en) * 2000-08-23 2002-02-28 Matsushita Electric Works Ltd Encryption apparatus
JP2002152660A (en) * 2000-10-26 2002-05-24 Internatl Business Mach Corp <Ibm> Device and method for reproducing image
JP2004254286A (en) * 2002-10-31 2004-09-09 Matsushita Electric Ind Co Ltd Communication device, communication system and algorithm selecting method
JP2006033376A (en) * 2004-07-15 2006-02-02 Matsushita Electric Ind Co Ltd Network type data reproducing apparatus
JP2006067483A (en) * 2004-08-30 2006-03-09 Sanyo Electric Co Ltd Video communication method and video communication apparatus
JP2006094913A (en) * 2004-09-28 2006-04-13 Toshiba Corp System, method and program for recording medical dynamic image
JP2009520380A (en) * 2005-12-19 2009-05-21 パナソニック株式会社 Content management system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08289288A (en) * 1995-04-14 1996-11-01 Nec Corp Moving image communication system
JP2000333141A (en) * 1999-05-24 2000-11-30 Sony Corp Copyright protection method and device for highly precise video signal, broadcast system, receiving device, recording and reproducing method and device, and reproducing method and device
JP2002064482A (en) * 2000-08-23 2002-02-28 Matsushita Electric Works Ltd Encryption apparatus
JP2002152660A (en) * 2000-10-26 2002-05-24 Internatl Business Mach Corp <Ibm> Device and method for reproducing image
JP2004254286A (en) * 2002-10-31 2004-09-09 Matsushita Electric Ind Co Ltd Communication device, communication system and algorithm selecting method
JP2006033376A (en) * 2004-07-15 2006-02-02 Matsushita Electric Ind Co Ltd Network type data reproducing apparatus
JP2006067483A (en) * 2004-08-30 2006-03-09 Sanyo Electric Co Ltd Video communication method and video communication apparatus
JP2006094913A (en) * 2004-09-28 2006-04-13 Toshiba Corp System, method and program for recording medical dynamic image
JP2009520380A (en) * 2005-12-19 2009-05-21 パナソニック株式会社 Content management system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111361551A (en) * 2018-12-24 2020-07-03 现代自动车株式会社 Autonomous driving control device, vehicle having the same, and vehicle control method
JP2021522759A (en) * 2018-12-31 2021-08-30 ギョンジュ スマート メディア センター DRM content packaging device and DRM content packaging system including it and DRM content packaging method
JP2022518988A (en) * 2019-12-30 2022-03-18 ギョンジュ スマート メディア センター DRM content parallel packaging device and DRM content parallel packaging system including it and DRM content parallel packaging method
JP7245401B2 (en) 2019-12-30 2023-03-24 ギョンジュ スマート メディア センター DRM content parallel packaging device, DRM content parallel packaging system including the same, and DRM content parallel packaging method

Also Published As

Publication number Publication date
JP5143502B2 (en) 2013-02-13

Similar Documents

Publication Publication Date Title
TWI225360B (en) Video encoding method, video decoding method, video encoding apparatus, video decoding apparatus, video encoding program, and video decoding program
KR100920733B1 (en) Picture control device and method of the same
CN101049025B (en) A method and system for generating multiple transcoded outputs based on a single unit
US7590294B2 (en) Image compression apparatus and method, and program and recording medium
ES2588154T3 (en) Automatic generation method of pixel prediction value generation procedures, image coding method, image decoding method, devices using these methods, programs for these methods and recording medium in which these programs are recorded
JP5090158B2 (en) VIDEO INFORMATION RECORDING DEVICE, VIDEO INFORMATION RECORDING METHOD, VIDEO INFORMATION RECORDING PROGRAM, AND RECORDING MEDIUM CONTAINING VIDEO INFORMATION RECORDING PROGRAM
JP2022520408A (en) Methods, devices, and computer programs for video decoding
JP2005517362A (en) Bitstream changing method and apparatus
JP2007124564A (en) Image coding apparatus, method, and program
EP2960855B1 (en) Method and device for determining a set of modifiable elements in a group of pictures
JP5143502B2 (en) Transcoder, transcoding method and transcoding program
JP4023324B2 (en) Watermark embedding and image compression unit
JP2009159464A (en) Encoding device, method and program
JP2000152234A (en) Processor and method for data processing, and data processing system
JP5080304B2 (en) Display method of image data with confidential data inserted
WO2013014693A1 (en) Video decoding method and image encoding method
JP2005109918A (en) Method for inserting secret data into image data, method for detecting secret data and method for displaying image data with secret data inserted
JP4514666B2 (en) Video encoding device
JP2006262159A (en) Moving picture encoding device, control method thereof, computer program and storage medium
JP2009159599A (en) Moving image coding apparatus, and moving image coding method
JP2008099045A (en) Scalable encoding method, decoding method, device for them, program for them, and recording medium therefor
JP2003219417A (en) Method and device for encoding moving image, program for executing the method, and recording medium recording the program
WO2020184715A1 (en) Image processing device, and image processing method
WO2020262370A1 (en) Image processing device and image processing method
JP2006513659A (en) How to embed a watermark in an encoded signal

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100716

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20100824

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100824

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20110706

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20110831

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120522

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120723

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121121

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151130

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5143502

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250