JP2012249073A - Decoder, encoder, encoding/decoding system, descrambler, scrambler, and method of them - Google Patents

Decoder, encoder, encoding/decoding system, descrambler, scrambler, and method of them Download PDF

Info

Publication number
JP2012249073A
JP2012249073A JP2011119143A JP2011119143A JP2012249073A JP 2012249073 A JP2012249073 A JP 2012249073A JP 2011119143 A JP2011119143 A JP 2011119143A JP 2011119143 A JP2011119143 A JP 2011119143A JP 2012249073 A JP2012249073 A JP 2012249073A
Authority
JP
Japan
Prior art keywords
picture
key
descrambling
scramble
unit
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.)
Withdrawn
Application number
JP2011119143A
Other languages
Japanese (ja)
Inventor
Shinsuke Shirahama
伸祐 白浜
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.)
Renesas Electronics Corp
Original Assignee
Renesas Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Renesas Electronics Corp filed Critical Renesas Electronics Corp
Priority to JP2011119143A priority Critical patent/JP2012249073A/en
Publication of JP2012249073A publication Critical patent/JP2012249073A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a decoder for shortening channel switching time, an encoder, an encoding/decoding system, a descrambler, a scrambler, and a method of them.SOLUTION: The encoder decodes stream data obtained by scrambling an I picture, and a B picture, and a P picture, which refer to the I picture, and including them. The encoder includes: a key generation section for generating a descrambling key of a picture referring to the I picture on the basis of the I picture; and the descrambler for descrambling the I picture by the descrambling key of the I picture, which is previously prepared, and descrambling the picture referring to the I picture by the descrambling key generated by the key generation section.

Description

本発明は、復号化装置、符号化装置、符号化復号化システム、デスクランブラ、スクランブラ、及びそれらの方法に関する。   The present invention relates to a decoding apparatus, an encoding apparatus, an encoding / decoding system, a descrambler, a scrambler, and methods thereof.

近年、デジタル放送の普及により、著作権保護を必要とする動画像などのデジタルコンテンツが、放送波やIP(Internet Protocol)網といった伝送手段で配信されている。また、一般に、不正な視聴やコピーを防ぐために、デジタルコンテンツが暗号化(スクランブル)されて配信されている。その一例として、日本のデジタル放送においては、デジタルコンテンツに対してMulti2と呼ばれるスクランブルが施され、正当な受信機以外による視聴や録画を防いでいる。   In recent years, with the spread of digital broadcasting, digital contents such as moving images that require copyright protection have been distributed by transmission means such as broadcast waves and IP (Internet Protocol) networks. In general, in order to prevent unauthorized viewing and copying, digital content is encrypted (scrambled) and distributed. As an example, in digital broadcasting in Japan, digital content is scrambled called Multi2 to prevent viewing or recording by other than a valid receiver.

このようにして暗号化されたデジタルコンテンツの復号化(デスクランブル)に用いる鍵情報は、デジタルコンテンツを含むストリームに関連データとして一定間隔で多重化されている。しかし、そのようにすることで、チャンネルの切り替え時に、鍵情報を取得してから鍵の生成処理を行なっているため、画像及び音声の出力までの時間が遅くなっている。そのため、起動時の待ち時間や、チャンネルの切り替え時の待ち時間を短縮して、ストレス無く視聴できるようにすることが望まれている。   The key information used for the decryption (descrambling) of the digital content encrypted in this manner is multiplexed as related data in a stream including the digital content at regular intervals. However, by doing so, since the key generation processing is performed after the key information is acquired when the channel is switched, the time until the output of the image and the sound is delayed. Therefore, it is desired to reduce the waiting time at the time of activation and the waiting time at the time of switching channels so that the viewer can watch without stress.

特許文献1〜4には、チャンネルの切り替え時の待ち時間を短縮する技術が開示されている。その中で、特許文献1は、受信装置において複数のスクランブルされたチャンネルの選択を切り替える時に選択したチャンネルのストリームを短時間でデスクランブルすることを目的としている。   Patent Documents 1 to 4 disclose techniques for shortening the waiting time when switching channels. Among them, Patent Document 1 aims to descramble a stream of a channel selected when switching a plurality of scrambled channels in a receiving apparatus in a short time.

図10を参照して、特許文献4にかかる限定受信システムの送信装置128及び受信装置110について説明する。図10は、特許文献4にかかる限定受信システムの送信装置128及び受信装置110の構成を示すブロック図である。   With reference to FIG. 10, the transmission apparatus 128 and the reception apparatus 110 of the conditional access system concerning patent document 4 are demonstrated. FIG. 10 is a block diagram illustrating configurations of the transmission device 128 and the reception device 110 of the conditional access system according to Patent Document 4.

送信装置128は、鍵管理装置11、Kw暗号化部12、TS多重化部13、Ks暗号化部14、スクランブラ15、コンテンツ生成部16、TSエンコーダ17、64QAM変調部18、多重情報生成部125、及び周波数多重部126を備えている。   The transmission device 128 includes a key management device 11, a Kw encryption unit 12, a TS multiplexing unit 13, a Ks encryption unit 14, a scrambler 15, a content generation unit 16, a TS encoder 17, a 64QAM modulation unit 18, and a multiplexed information generation unit. 125 and a frequency multiplexing unit 126.

鍵管理装置11は、スクランブル鍵Ks、ワーク鍵Kw及び個別鍵Kmiを生成管理する。Kw暗号化部12は、ワーク鍵Kwを格納した個別情報EMMをKmiで暗号化する。TS多重化部13は、個別情報EMM、共通情報ECM、トランスポートストリーム及びPSI(Program Specific Information)をMPEG2SYSTEMS(ISO/IEC13818−1)の規定通りに多重化する。Ks暗号化部14は、スクランブル鍵Ksを格納した共通情報ECMをKwで暗号化する。スクランブラ15は、TS多重化部13で多重化されたデータの中からコンテンツストリームのみをスクランブル鍵Ksでスクランブルする。コンテンツ生成部16は、映像、データ等のコンテンツを生成する。TSエンコーダ17は、コンテンツをMPEG2SYSTEMSのTSパケット(Transport Stream Packet)のデータフォーマットに変換する。64QAM変調部18は、送信データを64Q変調する。多重情報生成部125は、MPEG2SYSTEMSのPSIをチャンネル、番組の情報に合わせて生成する。周波数多重部126は、変調した信号を周波数多重する。   The key management device 11 generates and manages a scramble key Ks, a work key Kw, and an individual key Kmi. The Kw encryption unit 12 encrypts the individual information EMM storing the work key Kw with Kmi. The TS multiplexing unit 13 multiplexes the individual information EMM, the common information ECM, the transport stream, and PSI (Program Specific Information) as defined in MPEG2 SYSTEMS (ISO / IEC 13818-1). The Ks encryption unit 14 encrypts the common information ECM storing the scramble key Ks with Kw. The scrambler 15 scrambles only the content stream from the data multiplexed by the TS multiplexing unit 13 with the scramble key Ks. The content generation unit 16 generates content such as video and data. The TS encoder 17 converts the content into a data format of an MPEG2 SYSTEM TS packet (Transport Stream Packet). The 64QAM modulator 18 performs 64Q modulation on transmission data. The multiplex information generation unit 125 generates MPEG2 SYSTEMS PSI in accordance with channel and program information. The frequency multiplexing unit 126 frequency-multiplexes the modulated signal.

受信装置110は、64QAM復調部111、TS分離部112、制御CPU113、デスクランブラ114、特殊鍵復号モジュール115、汎用鍵復号モジュール116、TSデコーダ123、AVデコーダ124、及び周波数分離部127を備えている。   The receiving apparatus 110 includes a 64QAM demodulator 111, a TS separator 112, a control CPU 113, a descrambler 114, a special key decryption module 115, a general-purpose key decryption module 116, a TS decoder 123, an AV decoder 124, and a frequency separator 127. Yes.

64QAM復調部111は、受信信号を64QAM復調する。TS分離部112は、受信信号からPSI、映像ストリーム、共通情報ECM、個別情報EMM等を分離する。制御CPU113は、PSI情報に基づいてフィルタリングすべきProgram−IDをTS分離部112やデスクランブラ114等に伝える。デスクランブラ114は、選局されたチャンネルの映像ストリームを、Ksを用いてデスクランブルする。特殊鍵復号モジュール115は、Ksを復号化する。汎用鍵復号モジュール116は、ICカードで構成される。汎用鍵復号モジュール116は、Ksを復号化する。TSデコーダ123は、デスクランブルされたストリームをコンテンツストリームの形式に変換する。AVデコーダ124は、コンテンツストリームを視聴可能なアナログ信号に変換する。周波数分離部127は、伝送路19より受信した信号を周波数分離する。   The 64QAM demodulator 111 demodulates the received signal by 64QAM. The TS separation unit 112 separates PSI, video stream, common information ECM, individual information EMM, and the like from the received signal. The control CPU 113 transmits the Program-ID to be filtered based on the PSI information to the TS separation unit 112, the descrambler 114, and the like. The descrambler 114 descrambles the video stream of the selected channel using Ks. The special key decryption module 115 decrypts Ks. The general-purpose key decryption module 116 is composed of an IC card. The general key decryption module 116 decrypts Ks. The TS decoder 123 converts the descrambled stream into a content stream format. The AV decoder 124 converts the content stream into a viewable analog signal. The frequency separation unit 127 performs frequency separation on the signal received from the transmission path 19.

特殊鍵復号モジュール115は、送信側が複数のチャンネルに共通のKsを用いる場合に、そのKsの復号化を行う。特殊鍵復号モジュール115は、Kw復号化部118及びKs復号化部119を備えている。Kw復号化部118は、EMMを、あらかじめ持っている個別鍵Kmi117で復号化してKwを取り出す。Ks復号化部119は、ECMをKwで復号化してKsを取り出す。Ks復号化部119には、制御CPU113から選局したチャンネルが伝えられる。   The special key decryption module 115 decrypts Ks when the transmission side uses Ks common to a plurality of channels. The special key decryption module 115 includes a Kw decryption unit 118 and a Ks decryption unit 119. The Kw decryption unit 118 decrypts the EMM with the individual key Kmi117 that is held in advance, and extracts Kw. The Ks decryption unit 119 decrypts the ECM with Kw and extracts Ks. The channel selected by the control CPU 113 is transmitted to the Ks decoding unit 119.

ICカードで構成される汎用鍵復号モジュール116は、送信側が複数のチャンネルに共通のKsを用いない場合に、そのKsの復号化を行う。ICカードで構成される汎用鍵復号モジュール116は、Kw復号化部121及びKs復号化部122を備えている。Kw復号化部121は、特殊鍵復号モジュール115と同様に、EMMを個別鍵Kmi120で復号化してKwを取り出す。Ks復号化部122は、ECMをKwで復号化してKsを取り出す。   The general-purpose key decryption module 116 configured with an IC card performs decryption of Ks when the transmission side does not use Ks common to a plurality of channels. The general-purpose key decryption module 116 configured with an IC card includes a Kw decryption unit 121 and a Ks decryption unit 122. Similar to the special key decryption module 115, the Kw decryption unit 121 decrypts the EMM with the individual key Kmi120 and extracts Kw. The Ks decoding unit 122 decodes the ECM with Kw and extracts Ks.

以下、このシステムでの送受信に関して説明する。   Hereinafter, transmission / reception in this system will be described.

送出側では、鍵管理装置11が、ワーク鍵Kwを生成し、これを個別情報EMMに格納する。その後に、Kw暗号化部12は、個別情報EMMをあらかじめ鍵管理装置11から受け取っているKmiを用いて暗号化し、暗号化された個別情報としてTS多重化部13に送出する。   On the sending side, the key management device 11 generates a work key Kw and stores it in the individual information EMM. Thereafter, the Kw encryption unit 12 encrypts the individual information EMM using Kmi received in advance from the key management apparatus 11 and sends the encrypted information to the TS multiplexing unit 13 as encrypted individual information.

また、鍵管理装置11が、スクランブル鍵Ksを生成し、共通情報ECMに格納する。その後に、Ks暗号化部14は、共通情報ECMをあらかじめ鍵管理装置11から受け取っているKwを用いて暗号化し、暗号化された共通情報としてTS多重化部13に送出する。   Further, the key management device 11 generates a scramble key Ks and stores it in the common information ECM. Thereafter, the Ks encryption unit 14 encrypts the common information ECM using Kw received from the key management apparatus 11 in advance, and sends it to the TS multiplexing unit 13 as encrypted common information.

また、映像、データ等のコンテンツは、コンテンツ生成部16よりTSエンコーダ17に送られ、MPEG2SYSTEMSにおけるTSパケットのデータフォーマットに変換される。TS化された映像情報等のコンテンツデータは、TS多重化部13に送られる。また、マルチプログラム構成の場合、コンテンツデータは、複数のコンテンツ生成部からそれぞれのTSエンコーダに送られる。そして、TSエンコーダ17は、コンテンツデータをTSパケット化してTS多重化部13に送る。   Content such as video and data is sent from the content generation unit 16 to the TS encoder 17 and converted into a data format of a TS packet in MPEG2 SYSTEMS. Content data such as video information converted to a TS is sent to the TS multiplexer 13. In the case of a multi-program configuration, content data is sent from each of a plurality of content generation units to each TS encoder. Then, the TS encoder 17 converts the content data into a TS packet and sends it to the TS multiplexer 13.

また、多重情報生成部125では、MPEG2SYSTEMSのPSIをチャンネル、番組の情報に合わせて生成して、TS多重化部13に送る。   In addition, the multiplex information generation unit 125 generates MPEG2 SYSTEMS PSI in accordance with channel and program information and sends the PSI to the TS multiplexing unit 13.

TS多重化部13に送られた個別情報EMM、共通情報ECM、コンテンツストリーム及びPSIは、MPEG2SYSTEMSでの規定通り多重化され、スクランブラ15に送られる。スクランブラ15は、Ks暗号化部14から渡されたスクランブル鍵Ksを用いてコンテンツストリームのみをスクランブルする。スクランブラ15では、スクランブルされたトランスポートストリームを64QAM変調部18に送る。64QAM変調部18は、トランスポートストリームを64QAM変調する。さらに、周波数多重部126は、他に64QAM変調された信号と周波数多重を行い、伝送路19に送出する。   The individual information EMM, common information ECM, content stream, and PSI sent to the TS multiplexing unit 13 are multiplexed as defined in MPEG2 SYSTEMS and sent to the scrambler 15. The scrambler 15 scrambles only the content stream using the scramble key Ks passed from the Ks encryption unit 14. The scrambler 15 sends the scrambled transport stream to the 64QAM modulation unit 18. The 64QAM modulator 18 performs 64QAM modulation on the transport stream. Further, the frequency multiplexing unit 126 performs frequency multiplexing with the other 64QAM modulated signal and sends it to the transmission line 19.

一方、受信装置110では、伝送路19より受信した信号を、周波数分離部127で周波数分離し、64QAM復調部111で復調し、復調された信号がTS分離部112で分離される。   On the other hand, in the receiving apparatus 110, the signal received from the transmission path 19 is frequency separated by the frequency separation unit 127, demodulated by the 64QAM demodulation unit 111, and the demodulated signal is separated by the TS separation unit 112.

制御CPU113は、受信装置操作部で選局したチャンネルのPSI情報を基に、フィルタリングすべきProgram−IDを取得してTS分離部112に伝達する。それによって、TS分離部112は、該当チャンネルの復調されたトランスポートストリームを関連情報(以下、共通情報ECM、個別情報EMMの総称とする)と、映像ストリーム等とに分離することが可能になる。また、制御CPU113は、デスクランブルするProgram−IDをデスクランブラ114に設定し、選局したチャンネルをKs復号化部119に設定する。   The control CPU 113 acquires the Program-ID to be filtered based on the PSI information of the channel selected by the receiving device operation unit, and transmits it to the TS separation unit 112. Accordingly, the TS separation unit 112 can separate the demodulated transport stream of the corresponding channel into related information (hereinafter, generic name of common information ECM and individual information EMM), a video stream, and the like. . Further, the control CPU 113 sets the Program-ID to be descrambled in the descrambler 114 and sets the selected channel in the Ks decoding unit 119.

TS分離部112により分離された関連情報は、特殊鍵復号モジュール115または汎用鍵復号モジュール116のいずれかに送られ、そこで、コンテンツをデスクランブルするためのスクランブル鍵Ksが取り出される。特殊鍵復号モジュール115または汎用鍵復号モジュール116のいずれかへの振り分けは、関連情報のモジュール識別フラグに応じて行われる。関連情報が、特殊鍵復号モジュール115に振り分けられた場合、特殊鍵復号モジュール115が用いられる。   The related information separated by the TS separation unit 112 is sent to either the special key decryption module 115 or the general-purpose key decryption module 116, where a scramble key Ks for descrambling the content is extracted. Distribution to either the special key decryption module 115 or the general-purpose key decryption module 116 is performed according to the module identification flag of the related information. When the related information is distributed to the special key decryption module 115, the special key decryption module 115 is used.

例えば、特殊鍵復号モジュール115を用いた場合、TS分離部112により分離された個別情報EMMは、Kw復号化部118で、あらかじめ持っている個別鍵Kmi117を使って復号される。個別情報EMM内に格納されたワーク鍵Kwは、取り出されてKs復号化部119に設定される。また、TS分離部112により分離された共通情報ECMは、Ks復号化部119で、先に取り出されたワーク鍵Kwを使って復号される。共通情相ECM内に格納されたKsは、取り出されてデスクランブラ114に設定される。   For example, when the special key decryption module 115 is used, the individual information EMM separated by the TS separation unit 112 is decrypted by the Kw decryption unit 118 using the individual key Kmi117 previously held. The work key Kw stored in the individual information EMM is taken out and set in the Ks decryption unit 119. Further, the common information ECM separated by the TS separation unit 112 is decrypted by the Ks decryption unit 119 using the work key Kw previously extracted. Ks stored in the common information ECM is extracted and set in the descrambler 114.

TS分離部112で分離された映像などのコンテンツストリームは、デスクランブラ114において、セットされたスクランブル鍵Ksを使ってデスクランブルされ、TSデコーダ123に送られてコンテンツストリームの形式に変換される。さらに、映像は、AVデコーダ124により視聴可能なアナログ信号に変換される。   The content stream such as video separated by the TS separation unit 112 is descrambled by the descrambler 114 using the set scramble key Ks, and sent to the TS decoder 123 to be converted into a content stream format. Further, the video is converted into an analog signal that can be viewed by the AV decoder 124.

ここで、図11を参照して、MPEG2−TSのフォーマットについて説明する。図11は、MPEG2−TSのフォーマットを示す図である。   Here, the MPEG2-TS format will be described with reference to FIG. FIG. 11 is a diagram showing a format of MPEG2-TS.

MPEG2−TSでは、映像、音声、及び、その他のデータを多重化して伝送する。ビデオカメラなどで撮影された映像(ビデオ)及び音声(オーディオ)のデータは、エンコーダと呼ばれる符号装置によってエレメンタリストリーム(ES:Elementary Stream)と呼ばれる圧縮符号化されたデジタルデータに変換される。それらのビデオES及びオーディオESは、PES(Packetized Elementary Stream)パケットと呼ばれる、適当な大きさに分割される。さらに、MPEG2−TSの場合、PESパケットがさらに分割されて、188バイトのTS(Transport Stream)パケットが生成される(例えば、非特許文献1、非特許文献2)。   In MPEG2-TS, video, audio, and other data are multiplexed and transmitted. Video (video) and audio (audio) data captured by a video camera or the like is converted into compression-coded digital data called an elementary stream (ES) by a coding device called an encoder. These video ES and audio ES are divided into appropriate sizes called PES (Packetized Elementary Stream) packets. Further, in the case of MPEG2-TS, the PES packet is further divided to generate a 188-byte TS (Transport Stream) packet (for example, Non-Patent Document 1 and Non-Patent Document 2).

また、映像、音声、及び、その他のデータ等のコンテンツのデスクランブルするための鍵情報のそれぞれは、PSI(Program Specific Information)、又は、PSIを拡張したSI(Service Information)と呼ばれるデータに含められる。PSI又はSIは、ビデオやオーディオとは別のMPEG2−TSパケットに格納されて送出される。   Also, each piece of key information for descrambling content such as video, audio, and other data is included in data called PSI (Program Specific Information) or SI (Service Information) extended from PSI. . PSI or SI is stored in an MPEG2-TS packet different from video or audio and transmitted.

図11は、ビデオ及びオーディオのエレメンタリストリームと、PSIの1つであるECM(Entitlement Control Message)と、をMPEG2−TSパケットへ変換して、MPEG2−TSストリームとして多重化するまでの過程を示したものである。ECMは、著作権が必要なコンテンツに対してスクランブルを行うための鍵情報が格納されている。   FIG. 11 shows a process from converting an elementary stream of video and audio and an ECM (Entity Control Message), which is one of PSI, into an MPEG2-TS packet and multiplexing it into an MPEG2-TS stream. It is a thing. The ECM stores key information for scrambling content that requires copyright.

ビデオES200は、PES化されてビデオPESパケット202、203に変換され、オーディオES201は、PES化されてオーディオPESパケット204、205に変換される。さらに、ビデオPESパケット202は、TS化されてビデオTSパケット206、207、208、209に変換され、オーディオPESパケット204は、TS化されてオーディオTSパケット210、211、212、213に変換される。なお、ビデオPESパケット203及びオーディオPESパケット205のTSパケットについては、図示を省略している。また、ECM219は、TS化されてECMパケット215、216、217、218に変換される。ビデオTSパケット206〜209、オーディオTSパケット210〜213、及びECMパケット215〜218は、MPEG2−TSストリーム214に多重化されて送出される。   The video ES 200 is converted into PES and converted into video PES packets 202 and 203, and the audio ES 201 is converted into PES and converted into audio PES packets 204 and 205. Further, the video PES packet 202 is converted into a TS and converted into video TS packets 206, 207, 208, and 209, and the audio PES packet 204 is converted into a TS and converted into audio TS packets 210, 211, 212, and 213. . The TS packets of the video PES packet 203 and the audio PES packet 205 are not shown. The ECM 219 is converted to a TS and converted into ECM packets 215, 216, 217, and 218. The video TS packets 206 to 209, the audio TS packets 210 to 213, and the ECM packets 215 to 218 are multiplexed with the MPEG2-TS stream 214 and transmitted.

続いて、図12を参照して、ビデオESにおけるピクチャの関係の一例について説明する。図12は、MPEGにより圧縮符号化されたビデオESにおいて時間軸上に並んでいるピクチャの関係の一例を図示している。   Next, an example of the relationship of pictures in the video ES will be described with reference to FIG. FIG. 12 illustrates an example of the relationship between pictures arranged on the time axis in a video ES compressed and encoded by MPEG.

MPEGでは、映像信号は、複数の圧縮画像データにより構成されている。圧縮画像データは、フレームと呼ばれる。フレームは、Iピクチャ、Pピクチャ、及びBピクチャの3種類に分類される。   In MPEG, a video signal is composed of a plurality of compressed image data. The compressed image data is called a frame. Frames are classified into three types: I pictures, P pictures, and B pictures.

Iピクチャ(Intra−picture)は、前後のフレームとは関係なく、独立して一枚の画像を得ることができる。また、Pピクチャ(Predictive−picture)は、自身よりも時間軸上で過去に存在するIピクチャやPピクチャからフレーム間予測を行うことにより一枚の画像を得ることができる。さらに、Bピクチャ(Bi−directitional Predictive−picture)は、時間軸上過去または未来、もしくは両方に存在するピクチャからフレーム間予測を行うことにより一枚の画像を得ることができる(例えば、非特許文献3)。   An I picture (Intra-picture) can independently obtain one image regardless of the preceding and following frames. In addition, a P picture (Predictive-picture) can be obtained as a single image by performing inter-frame prediction from an I picture or P picture existing in the past on the time axis. Further, a B picture (Bi-directional Predictive-Picture) can obtain a single image by performing inter-frame prediction from pictures existing in the past, future, or both on the time axis (for example, non-patent literature). 3).

図12について説明すると、Bピクチャ300は、時間軸上未来に存在するIピクチャ302からフレーム間予測を行うことで、一枚の画像を得ることができる。Bピクチャ301は、時間軸上未来に存在するIピクチャ302からフレーム間予測を行うことで、一枚の画像を得ることができる。   Referring to FIG. 12, the B picture 300 can obtain a single image by performing inter-frame prediction from the I picture 302 existing in the future on the time axis. The B picture 301 can obtain one image by performing inter-frame prediction from the I picture 302 existing in the future on the time axis.

Iピクチャ302は、自身単体で一枚の画像を得ることができる。Bピクチャ303は、時間軸上過去に存在するIピクチャ302と時間軸上未来に存在するPピクチャ304からフレーム間予測を行うことで、一枚の画像を得ることができる。Pピクチャ304は、時間軸上過去に存在するIピクチャ302からフレーム間予測を行うことで、一枚の画像を得ることができる。Bピクチャ305及びBピクチャ306のそれぞれは、時間軸上過去に存在するPピクチャ304と時間軸上未来に存在するPピクチャ307からフレーム間予測を行うことで、一枚の画像を得る。Pピクチャ307は、時間軸上過去に存在するPピクチャ304からフレーム間予測を行うことで、一枚の画像を得ることができる。   The I picture 302 can obtain a single image by itself. The B picture 303 can obtain one image by performing inter-frame prediction from the I picture 302 existing in the past on the time axis and the P picture 304 existing in the future on the time axis. The P picture 304 can obtain one image by performing inter-frame prediction from the I picture 302 existing in the past on the time axis. Each of the B picture 305 and the B picture 306 obtains one image by performing inter-frame prediction from the P picture 304 existing in the past on the time axis and the P picture 307 existing in the future on the time axis. The P picture 307 can obtain one image by performing inter-frame prediction from the P picture 304 existing in the past on the time axis.

この例では、Bピクチャ300及びBピクチャ301のそれぞれは、時間軸上Iピクチャ302よりも前に存在することになるが、一枚の画像を得るためには、時間軸上未来に存在するIピクチャ302が必要となる。   In this example, each of the B picture 300 and the B picture 301 exists before the I picture 302 on the time axis. However, in order to obtain one image, the I picture existing in the future on the time axis is obtained. A picture 302 is required.

続いて、図13を参照して、一般的なMPEG2−TSパケットの構成について説明する。図13は、一般的なMPEG2−TSパケットの構成図である。   Next, a general MPEG2-TS packet configuration will be described with reference to FIG. FIG. 13 is a configuration diagram of a general MPEG2-TS packet.

MPEG2−TSパケットF1は、TSヘッダF2と、アダプテーション・フィールドF3と、データ・バイトF4と、を有する。一般的に、全てのMPEG2−TSパケットには、TSヘッダF2が存在する。   The MPEG2-TS packet F1 has a TS header F2, an adaptation field F3, and a data byte F4. In general, every MPEG2-TS packet has a TS header F2.

TSヘッダF2は、アダプテーション・フィールド・コントロールと呼ばれる2ビットのデータが含まれる。アダプテーション・フィールド・コントロールの値が、"10"もしくは"11"である場合、アダプテーション・フィールドF3が、MPEG2−TSパケットF1に含まれる。   The TS header F2 includes 2-bit data called adaptation field control. When the value of the adaptation field control is “10” or “11”, the adaptation field F3 is included in the MPEG2-TS packet F1.

アダプテーション・フィールド・コントロールの値が、"01"もしくは"11"である場合、データ・バイトF4が、MPEG2−TSパケットF1に含まれる。データ・バイトF4には、ビデオやオーディオのPESデータ、又は、PSI/SIデータが格納されている。   When the value of the adaptation field control is “01” or “11”, the data byte F4 is included in the MPEG2-TS packet F1. The data byte F4 stores video or audio PES data or PSI / SI data.

特開2000−295202号公報JP 2000-295202 A 特開2010−154349号公報JP 2010-154349 A 特開2007−215069号公報JP 2007-215069 A 特開2009−284283号公報JP 2009-284283 A

ソニー株式会社、"ブルーレイディスクの特色"、[online]、ソニー株式会社ホームページ、[平成23年2月14日検索]、インターネット<URL:http://www.sony.jp/bd/products_archive/BDZ-S77/technology/blu.html>Sony Corporation, “Features of Blu-ray Discs”, [online], Sony Corporation website, [Search February 14, 2011], Internet <URL: http://www.sony.jp/bd/products_archive/BDZ -S77 / technology / blu.html> 日経BP社、"ワンセグ利用のVOD連携や大量データの配信など新技術を紹介"、[online]、ITpro、[平成23年2月18日検索]、<URL:http://itpro.nikkeibp.co.jp/article/COLUMN/20080417/299449/>Nikkei Business Publications, “Introducing new technologies such as VOD collaboration using 1Seg and mass data distribution”, [online], ITpro, [Search February 18, 2011], <URL: http: //itpro.nikkeibp. co.jp/article/COLUMN/20080417/299449/> 特許庁、"デジタル動画圧縮技術"、[online]、特許庁ホームページ、[平成23年2月16日検索]、インターネット<URL:http://www.jpo.go.jp/shiryou/s_sonota/map/denki14/4/4-3-6.htm>JPO, "Digital Video Compression Technology", [online], JPO homepage, [Search February 16, 2011], Internet <URL: http://www.jpo.go.jp/shiryou/s_sonota/map /denki14/4/4-3-6.htm>

上述した特許文献1に開示の技術は、正常な画像を得るためには、ECMを受信した後に到着するIピクチャを待たなければならず、ECMの受信後に到着するIピクチャを待つ時間だけチャンネルの切り替えが遅くなるという問題がある。   In order to obtain a normal image, the technique disclosed in Patent Document 1 described above must wait for an I picture that arrives after receiving an ECM, and only waits for an I picture that arrives after receiving an ECM. There is a problem of slow switching.

その理由としては、チャンネルに依存しない共通な鍵で復号可能な特殊鍵復号モジュールと呼ばれるモジュールを用いることで、チャンネルの切り替えの高速化を実現しているが、共通な鍵でデスクランブル可能かどうかを判断するためにはECMの受信を待たなくてはならないからである。それは、上述したように、特殊復号モジュールを用いるか否かを、ECMのモジュール識別フラグによって判定しているからである。   The reason for this is that by using a module called a special key decryption module that can be decrypted with a common key that does not depend on the channel, channel switching speed has been increased, but whether or not descrambling with a common key is possible. This is because it is necessary to wait for the reception of ECM in order to determine the above. This is because, as described above, whether or not to use the special decoding module is determined by the module identification flag of the ECM.

具体的には、特許文献1に開示の技術では、チャンネルの切り替え後に、ECMよりもIピクチャが早く到着した場合、Iピクチャを共通な鍵でデスクランブル可能かどうかを判断ができない。そのため、この場合は、Iピクチャをデスクランブルすることができない。   Specifically, with the technique disclosed in Patent Document 1, if an I picture arrives earlier than the ECM after channel switching, it cannot be determined whether the I picture can be descrambled with a common key. Therefore, in this case, the I picture cannot be descrambled.

また、正常な画像を出力するためには、Bピクチャ及びPピクチャの復号を開始するまでに、Iピクチャをデスクランブル及び復号して、Bピクチャ及びPピクチャのフレーム間予測に使用可能としておく必要がある。しかし、上述したように、チャンネルの切り替え後に、ECMよりもIピクチャが早く到着した場合、Iピクチャがデスクランブルできないため、Iピクチャを使用してBピクチャ及びPピクチャのフレーム間予測を行うこともできなくなってしまう。   In addition, in order to output a normal image, it is necessary to descramble and decode the I picture before the decoding of the B picture and P picture is started, so that the I picture can be used for inter-frame prediction of the B picture and P picture. There is. However, as described above, when the I picture arrives earlier than the ECM after the channel switching, the I picture cannot be descrambled. Therefore, the inter picture prediction of the B picture and the P picture may be performed using the I picture. It becomes impossible.

図14を参照して、その問題が発生するメカニズムについてより詳細に説明する。図14は、時間軸上においてMPEG2−TSパケットの受信タイミングと、それらのMPEG2−TSパケットから得られるピクチャとの関係を示す図である。   With reference to FIG. 14, the mechanism in which the problem occurs will be described in more detail. FIG. 14 is a diagram showing the relationship between the reception timing of MPEG2-TS packets on the time axis and pictures obtained from those MPEG2-TS packets.

図14は、チャンネル切り替え後のストリームに含まれるMPEG2−TSパケット605〜633の受信が、時刻600から開始される様子を示している。最初にMPEG2−TSパケット605が受信される。その後は、MPEG2−TSパケット606〜633が順次受信される。   FIG. 14 shows a state where reception of MPEG2-TS packets 605 to 633 included in the stream after the channel switching is started from time 600. First, an MPEG2-TS packet 605 is received. Thereafter, MPEG2-TS packets 606 to 633 are sequentially received.

図14では、MPEG2−TSパケット611、614、615、620、628、630のそれぞれは、オーディオTSパケットを示し、MPEG2−TSパケット610、617、626のそれぞれは、ECMパケットを示す。それら以外のMPEG2−TSパケットのそれぞれは、ビデオTSパケットを示す。   In FIG. 14, each of the MPEG2-TS packets 611, 614, 615, 620, 628, and 630 indicates an audio TS packet, and each of the MPEG2-TS packets 610, 617, and 626 indicates an ECM packet. Each of the other MPEG2-TS packets represents a video TS packet.

各ビデオTSパケットを受信することによって、ピクチャ634〜642に示す各種ピクチャを得ることができる。各種ピクチャは、複数のMPEG2−TSパケットにより構成される。   By receiving each video TS packet, various pictures shown in pictures 634 to 642 can be obtained. Various pictures are composed of a plurality of MPEG2-TS packets.

具体的には、図14に示すMPEG2−TSストリームには、ピクチャとして、MPEG2−TSパケット604、605により構成されるBピクチャ634と、MPEG2−TSパケット609、612により構成されるBピクチャ636と、MPEG2−TSパケット613、616により構成されるBピクチャ637と、MPEG2−TSパケット624、625により構成されるBピクチャ640と、MPEG2−TSパケット627、629により構成されるBピクチャ641と、MPEG2−TSパケット606、607、608により構成されるIピクチャ635と、MPEG2−TSパケット621、622、623により構成されるIピクチャ639と、MPEG2−TSパケット618、619により構成されるPピクチャ638と、MPEG2−TSパケット631、632、633により構成されるPピクチャ642と、が含まれている。   Specifically, the MPEG2-TS stream shown in FIG. 14 includes a B picture 634 composed of MPEG2-TS packets 604 and 605 and a B picture 636 composed of MPEG2-TS packets 609 and 612 as pictures. B picture 637 composed of MPEG2-TS packets 613 and 616, B picture 640 composed of MPEG2-TS packets 624 and 625, B picture 641 composed of MPEG2-TS packets 627 and 629, and MPEG2 -An I picture 635 composed of TS packets 606, 607, 608, an I picture 639 composed of MPEG2-TS packets 621, 622, 623, and a P picture composed of MPEG2-TS packets 618, 619 A catcher 638, and P-picture 642 constituted by MPEG2-TS packets 631, 632, 633, are included.

時刻601で、Iピクチャ635を構成するMPEG2−TSパケット606、607、608の全てが受信される。つまり、時刻601で、スクランブルされたIピクチャ635を得ることができる。しかし、時刻601の時点では、ECMパケット610は得られていない。そのため、Iピクチャ635をデスクランブルすることができず、Iピクチャ635から正常な画像を得ることができない。   At time 601, all of the MPEG2-TS packets 606, 607, 608 constituting the I picture 635 are received. That is, a scrambled I picture 635 can be obtained at time 601. However, the ECM packet 610 is not obtained at the time 601. Therefore, the I picture 635 cannot be descrambled, and a normal image cannot be obtained from the I picture 635.

一方で、ストリームの受信を開始してから最初にECMパケット610が受信される時刻602においてECMパケットを取得した後は、Bピクチャ636、Bピクチャ637、及びPピクチャ638のデスクランブルは可能となる。しかし、Bピクチャ636、Bピクチャ637、及びPピクチャ638のそれぞれは、Iピクチャ635との間でフレーム間予測という依存関係がある。しかし、デスクランブルされていないIピクチャ635を使用して、Bピクチャ636、Bピクチャ637、及びPピクチャ638を復号することはできない。したがって、Bピクチャ636、Bピクチャ637、及びPピクチャ638からも、Iピクチャ635と同様に、正常な画像を得ることができない。   On the other hand, after the ECM packet is acquired at the time 602 when the ECM packet 610 is first received after the stream reception is started, the B picture 636, the B picture 637, and the P picture 638 can be descrambled. . However, each of the B picture 636, the B picture 637, and the P picture 638 has a dependency relationship between the I picture 635 and inter-frame prediction. However, the B picture 636, the B picture 637, and the P picture 638 cannot be decoded using the undescrambled I picture 635. Therefore, a normal image cannot be obtained from the B picture 636, the B picture 637, and the P picture 638 as is the case with the I picture 635.

以上に説明した通り、図14に示すようなストリームの受信関係においては、チャンネル切り替え後にストリームの受信を開始した後に、全てのピクチャが正しく画像を得ることができるのは、ECMパケットの受信後に、最初にIピクチャ639が得られる時刻603以降となる。言い換えると、受信側が、チャンネルを切り替えてから正常な画像を得ることができるようになる時刻が、時刻600のストリーム受信開始から時刻603にまで大幅に遅延してしまっている。   As described above, in the stream reception relationship as shown in FIG. 14, after starting the reception of the stream after channel switching, all the pictures can be obtained correctly after receiving the ECM packet. It is after time 603 when the I picture 639 is first obtained. In other words, the time at which the receiving side can obtain a normal image after switching the channel is greatly delayed from the start of stream reception at time 600 to time 603.

このように、特許文献1に開示の技術では、チャンネルを切り替えてから正常な画像を得ることができるようになるまでのチャンネル切り替え時間が長くなってしまっている、という問題がある。   As described above, the technique disclosed in Patent Document 1 has a problem that the channel switching time from when the channel is switched to when a normal image can be obtained becomes long.

本発明の第1の態様にかかる復号化装置は、Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータを復号する復号化装置であって、前記Iピクチャに基づいて、当該Iピクチャを参照するピクチャのデスクランブル鍵を生成する鍵生成部と、予め用意された前記Iピクチャのデスクランブル鍵によって、前記Iピクチャをデスクランブルするとともに、前記鍵生成部によって生成されたデスクランブル鍵によって、当該Iピクチャを参照するピクチャをデスクランブルするデスクランブラと、を備えたものである。   A decoding apparatus according to a first aspect of the present invention is a decoding apparatus that decodes stream data including an I picture and a B picture and a P picture that respectively refer to the I picture. Based on the I picture, the I picture is descrambled by a key generation unit that generates a descrambling key of a picture that refers to the I picture, and a descrambling key of the I picture prepared in advance. A descrambler that descrambles a picture that refers to the I picture with a descrambling key generated by the generation unit.

本発明の第2の態様にかかる符号化装置は、動画像データを符号化して、Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータを生成する符号化装置であって、前記Iピクチャに基づいて、前記Iピクチャを参照するピクチャのスクランブル鍵を生成する鍵生成部と、予め用意された前記Iピクチャのスクランブル鍵によって、前記Iピクチャをスクランブルするとともに、前記鍵生成部によって生成されたスクランブル鍵によって、前記Iピクチャを参照するピクチャをスクランブルするスクランブラと、を備えたものである。   The encoding apparatus according to the second aspect of the present invention encodes moving image data to generate stream data including an I picture and a B picture and a P picture that refer to the I picture, respectively. An encoding device that scrambles the I picture by a key generation unit that generates a scramble key of a picture that refers to the I picture based on the I picture, and a scramble key of the I picture prepared in advance And a scrambler that scrambles a picture that refers to the I picture with the scramble key generated by the key generation unit.

本発明の第3の態様にかかる符号化復号化システムは、動画像データを符号化して、Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータを生成する符号化装置と、前記符号化装置によって生成されたストリームデータを復号する復号化装置と、を備えた符号化復号化システムであって、前記符号化装置は、前記Iピクチャに基づいて、前記Iピクチャを参照するピクチャのスクランブル鍵を生成するスクランブル鍵生成部と、予め用意された前記Iピクチャのスクランブル鍵によって、前記Iピクチャをスクランブルするとともに、前記スクランブル鍵生成部によって生成されたスクランブル鍵によって、前記Iピクチャを参照するピクチャをスクランブルするスクランブラと、を有し、前記復号化装置は、前記Iピクチャに基づいて、前記スクランブル鍵と同一のデスクランブル鍵を生成するデスクランブル鍵生成部と、予め用意された前記Iピクチャのスクランブル鍵と同一のデスクランブル鍵によって、前記Iピクチャをデスクランブルするとともに、前記デスクランブル鍵生成部によって生成されたデスクランブル鍵によって、前記Iピクチャを参照するピクチャをデスクランブルするデスクランブラと、を有するものである。   The encoding / decoding system according to the third aspect of the present invention encodes moving image data, and includes stream data including an I picture and a B picture and a P picture that respectively refer to the I picture. And a decoding device that decodes stream data generated by the encoding device, wherein the encoding device is based on the I picture. A scramble key generation unit that generates a scramble key for a picture that refers to the I picture, and a scramble key generated by the scramble key generation unit and a scramble key for the I picture prepared in advance. Scrambling a picture that references the I picture with a key A decrypting key generation unit configured to generate a descrambling key identical to the scramble key based on the I picture, and a scramble key for the I picture prepared in advance. A descrambler that descrambles the I picture with the same descrambling key and descrambles the picture that refers to the I picture with the descrambling key generated by the descrambling key generation unit. is there.

本発明の第4の態様にかかるデスクランブラは、Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータをデスクランブルするデスクランブラであって、予め用意された前記Iピクチャのデスクランブル鍵によって、前記Iピクチャをデスクランブルするとともに、前記Iピクチャに基づいて生成されたデスクランブル鍵によって、前記Iピクチャを参照するピクチャをデスクランブルするものである。   A descrambler according to a fourth aspect of the present invention is a descrambler that descrambles stream data including scrambled I pictures and B pictures and P pictures that respectively refer to the I pictures. The I picture is descrambled with the prepared descrambling key of the I picture, and the picture that refers to the I picture is descrambled with the descrambling key generated based on the I picture.

本発明の第5の態様にかかるスクランブラは、Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、をスクランブルするスクランブラであって、予め用意された前記Iピクチャのスクランブル鍵によって、前記Iピクチャをスクランブルするとともに、前記Iピクチャに基づいて生成されたスクランブル鍵によって、前記Iピクチャを参照するピクチャをスクランブルするものである。   A scrambler according to a fifth aspect of the present invention is a scrambler that scrambles an I picture, and a B picture and a P picture that respectively refer to the I picture, and a scramble key for the I picture prepared in advance. Thus, the I picture is scrambled, and a picture that refers to the I picture is scrambled by a scramble key generated based on the I picture.

本発明の第6の態様にかかる復号化方法は、Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータを復号する復号化方法であって、予め用意された前記Iピクチャのデスクランブル鍵によって、前記Iピクチャをデスクランブルし、前記Iピクチャに基づいて、当該Iピクチャを参照するピクチャのデスクランブル鍵を生成し、前記生成されたデスクランブル鍵によって、当該Iピクチャを参照するピクチャをデスクランブルするものである。   A decoding method according to a sixth aspect of the present invention is a decoding method for decoding stream data including scrambled I pictures and B pictures and P pictures that respectively refer to the I pictures, The I picture is descrambled with a prepared descrambling key of the I picture, a descrambling key of a picture referring to the I picture is generated based on the I picture, and the generated descrambling key is generated. Thus, the picture that refers to the I picture is descrambled.

本発明の第7の態様にかかる符号化方法は、動画像データを符号化して、Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータを生成する符号化方法であって、予め用意された前記Iピクチャのスクランブル鍵によって、前記Iピクチャをスクランブルし、前記Iピクチャに基づいて、前記Iピクチャを参照するピクチャのスクランブル鍵を生成し、前記生成されたスクランブル鍵によって、前記Iピクチャを参照するピクチャをスクランブルするものである。   The encoding method according to the seventh aspect of the present invention encodes moving image data to generate stream data including an I picture and a B picture and a P picture that refer to the I picture, respectively. A coding method for scrambling the I picture with a scramble key for the I picture prepared in advance, generating a scramble key for a picture referring to the I picture based on the I picture, and generating the scramble key The scrambled key is used to scramble a picture that references the I picture.

本発明の第8の態様にかかる符号化復号化方法は、動画像データを符号化して、Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータを生成して、生成したストリームデータを復号する符号化復号化方法であって、予め用意された前記Iピクチャのスクランブル鍵によって、前記Iピクチャをスクランブルし、前記Iピクチャに基づいて、前記Iピクチャを参照するピクチャのスクランブル鍵を生成し、前記生成されたスクランブル鍵によって、前記Iピクチャを参照するピクチャをスクランブルし、予め用意された前記Iピクチャのスクランブル鍵と同一のデスクランブル鍵によって、前記Iピクチャをデスクランブルし、前記Iピクチャに基づいて、前記スクランブル鍵と同一のデスクランブル鍵を生成し、前記生成されたデスクランブル鍵によって、前記Iピクチャを参照するピクチャをデスクランブルするものである。   The encoding / decoding method according to the eighth aspect of the present invention encodes moving image data, and includes stream data including an I picture and a B picture and a P picture that respectively refer to the I picture. And decoding the generated stream data, wherein the I picture is scrambled with a scramble key of the I picture prepared in advance, and the I picture is based on the I picture. A scramble key of a picture that refers to the I picture is generated, a picture that references the I picture is scrambled with the generated scramble key, and the scramble key that is the same as the scramble key of the I picture prepared in advance is used to Descramble the picture and based on the I picture, To produce the same descrambling key and tumble key, by the generated descramble key, it is to descramble the picture that refers to the I picture.

本発明の第9の態様にかかるデスクランブル方法は、Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータをデスクランブルするデスクランブル方法であって、予め用意された前記Iピクチャのデスクランブル鍵によって、前記Iピクチャをデスクランブルし、前記Iピクチャに基づいて生成されたデスクランブル鍵によって、前記Iピクチャを参照するピクチャをデスクランブルするものである。   A descrambling method according to a ninth aspect of the present invention is a descrambling method for descrambling stream data including scrambled I pictures and B pictures and P pictures that respectively refer to the I pictures. The I picture is descrambled using a prepared descrambling key of the I picture, and a picture that refers to the I picture is descrambled using a descrambling key generated based on the I picture. .

本発明の第10の態様にかかるスクランブル方法は、Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、をスクランブルするスクランブル方法であって、予め用意された前記Iピクチャのスクランブル鍵によって、前記Iピクチャをスクランブルし、前記Iピクチャに基づいて生成されたスクランブル鍵によって、前記Iピクチャを参照するピクチャをスクランブルするものである。   A scrambling method according to a tenth aspect of the present invention is a scrambling method for scrambling an I picture and a B picture and a P picture that respectively refer to the I picture, and the scrambling key for the I picture prepared in advance is provided. Thus, the I picture is scrambled, and a picture that refers to the I picture is scrambled with a scramble key generated based on the I picture.

上述した本発明の各態様によれば、例えば、ECMのような他のデータの受信タイミングに関係なく、Iピクチャを受信した時点から、正常な画像を出力することができる。   According to each aspect of the present invention described above, a normal image can be output from the time when an I picture is received regardless of the reception timing of other data such as ECM.

上述した本発明の各態様によれば、チャンネル切り替え時間を短縮することができる復号化装置、符号化装置、符号化復号化システム、デスクランブラ、スクランブラ、及びそれらの方法を提供することができる。   According to each aspect of the present invention described above, it is possible to provide a decoding device, an encoding device, an encoding / decoding system, a descrambler, a scrambler, and a method thereof that can shorten the channel switching time. .

本発明の実施の形態にかかる送信装置及び受信装置を含むシステム構成図である。1 is a system configuration diagram including a transmission device and a reception device according to an embodiment of the present invention. 本発明の実施の形態にかかるTSエンコーダ部のブロック図である。It is a block diagram of the TS encoder part concerning embodiment of this invention. 本発明の実施の形態にかかるMPEG2−TSのパケット構成図である。It is a packet block diagram of MPEG2-TS concerning an embodiment of the invention. 本発明の実施の形態にかかるAVデコーダ部のブロック図である。It is a block diagram of the AV decoder part concerning embodiment of this invention. 本発明の実施の形態にかかる送信装置の制御フローチャートである。It is a control flowchart of the transmitter concerning embodiment of this invention. 本発明の実施の形態にかかるTSエンコーダ部の制御フローチャートである。It is a control flowchart of the TS encoder part concerning embodiment of this invention. 本発明の実施の形態にかかる受信装置の制御フローチャートである。It is a control flowchart of the receiver concerning embodiment of this invention. 本発明の実施の形態にかかるAVデコーダ部の制御フローチャートである。It is a control flowchart of the AV decoder part concerning embodiment of this invention. 本発明の実施の形態にかかるチャンネル切り替え時の受信関係図である。It is a receiving relation figure at the time of the channel switching concerning embodiment of this invention. 特許文献1にかかる限定受信システムの送信装置及び受信装置の構成を示すブロック図である。It is a block diagram which shows the structure of the transmitter of the conditional access system concerning patent document 1, and a receiver. MPEG2−TSのフォーマットを示す図である。It is a figure which shows the format of MPEG2-TS. MPEG2におけるピクチャの関係を示す図である。It is a figure which shows the relationship of the picture in MPEG2. 一般的なMPEG2−TSのパケット構成図である。FIG. 2 is a general MPEG2-TS packet configuration diagram. 特許文献1にかかるチャンネル切り替え時の受信関係図である。It is a receiving relation figure at the time of the channel switching concerning patent documents 1.

図1を参照して、本発明の実施の形態にかかる送受信システムの構成について説明する。図1は、本発明の実施の形態にかかる送信装置及び受信装置を含むシステム構成図である。   With reference to FIG. 1, the structure of the transmission / reception system concerning embodiment of this invention is demonstrated. FIG. 1 is a system configuration diagram including a transmission apparatus and a reception apparatus according to an embodiment of the present invention.

送受信システムは、送信装置41及び受信装置410を有する。送信装置41及び受信装置410は、伝送路49によって相互に接続されている。送信装置41は、動画像データをMPEG2−TSストリームに変換して受信装置410に送信する。受信装置410は、送信装置41から伝送路49を経由して受信したMPEG2−TSストリームを再生可能な形式のデータに変換して出力装置(図示せず)に出力する。ここで、本実施の形態では、動画像データが、テレビ番組データである場合について例示する。したがって、送信装置41は、例えば、デジタル放送送信装置であり、受信装置410及び出力装置は、デジタルテレビ受像機に含まれる装置となる。   The transmission / reception system includes a transmission device 41 and a reception device 410. The transmission device 41 and the reception device 410 are connected to each other by a transmission line 49. The transmission device 41 converts the moving image data into an MPEG2-TS stream and transmits it to the reception device 410. The receiving device 410 converts the MPEG2-TS stream received from the transmitting device 41 via the transmission path 49 into reproducible data and outputs it to an output device (not shown). Here, in the present embodiment, the case where the moving image data is television program data is exemplified. Therefore, the transmission device 41 is, for example, a digital broadcast transmission device, and the reception device 410 and the output device are devices included in the digital television receiver.

送信装置41は、コンテンツ生成部42、TSエンコーダ部43、初期値管理部44、TS多重化部45、多重情報生成部46、64QAM変調部47、及び周波数多重部48を有する。   The transmission apparatus 41 includes a content generation unit 42, a TS encoder unit 43, an initial value management unit 44, a TS multiplexing unit 45, a multiplexed information generation unit 46, a 64QAM modulation unit 47, and a frequency multiplexing unit 48.

コンテンツ生成部42は、画像データ、音声データ、字幕データ、及びBML(Broadcast Markup Language)データ等のコンテンツを生成する。テレビ番組データは、これらのコンテンツのそれぞれが複数含まれて構成される。なお、動画像データは、このようなテレビ番組データに限られず、これらのコンテンツのうち、少なくとも画像データが複数含まれて構成されるものであればよい。コンテンツ生成部42は、生成したコンテンツから構成される動画像データを蓄積・管理する。つまり、コンテンツ生成部42は、動画像データが格納される任意の記憶装置を有する。記憶装置は、例えば、メモリ又はハードディスク等である。コンテンツ生成部42は、動画像データをTSエンコーダ部43に出力する。   The content generation unit 42 generates content such as image data, audio data, caption data, and BML (Broadcast Markup Language) data. The TV program data includes a plurality of these contents. The moving image data is not limited to such television program data, and any moving image data may be used as long as it includes at least a plurality of image data among these contents. The content generation unit 42 stores and manages moving image data composed of the generated content. That is, the content generation unit 42 includes an arbitrary storage device that stores moving image data. The storage device is, for example, a memory or a hard disk. The content generation unit 42 outputs the moving image data to the TS encoder unit 43.

ここで、送信装置41がマルチチャンネルのデジタル放送送信装置である場合、送信装置41が複数のコンテンツ生成部42を有するようにし、コンテンツ生成部42のそれぞれが、別々のチャンネルのテレビ番組データのコンテンツを生成するようにする。   Here, when the transmission device 41 is a multi-channel digital broadcast transmission device, the transmission device 41 includes a plurality of content generation units 42, and each of the content generation units 42 has contents of television program data of different channels. Is generated.

TSエンコーダ部43は、コンテンツ生成部42から動画像データが入力され、初期値管理部44から初期値が入力される。TSエンコーダ部43は、動画像データに含まれるコンテンツのうち、画像データ及び音声データのそれぞれをエンコード(符号化)及びスクランブルしてMPEG2―TSパケット形式に変換する。なお、初期値は、画像データのスクランブル鍵の初期鍵として機能する。TSエンコーダ部43は、生成したMPEG2−TSパケットをTS多重化部45に出力する。以下、画像データのMPEG2−TSパケットを「ビデオTSパケット」とも言い、音声データのMPEG2−TSパケットを「オーディオTSパケット」とも言う。   The TS encoder unit 43 receives moving image data from the content generation unit 42 and receives an initial value from the initial value management unit 44. The TS encoder unit 43 encodes (encodes) and scrambles each of image data and audio data among the contents included in the moving image data, and converts the encoded data into the MPEG2-TS packet format. Note that the initial value functions as an initial key for a scramble key of image data. The TS encoder unit 43 outputs the generated MPEG2-TS packet to the TS multiplexing unit 45. Hereinafter, the MPEG2-TS packet of image data is also referred to as “video TS packet”, and the MPEG2-TS packet of audio data is also referred to as “audio TS packet”.

ここで、送信装置41がマルチチャンネルのデジタル放送送信装置である場合、送信装置41が複数のTSエンコーダ部43を有するようにし、それぞれのTSエンコーダ部43が、複数のコンテンツ生成部42のそれぞれで生成されたテレビ番組データのコンテンツをMPEG2−TSパケット形式に変換するようにする。   Here, when the transmission device 41 is a multi-channel digital broadcast transmission device, the transmission device 41 includes a plurality of TS encoder units 43, and each TS encoder unit 43 includes a plurality of content generation units 42. The content of the generated television program data is converted into the MPEG2-TS packet format.

初期値管理部44は、画像データをスクランブルする際に使用される初期値を管理する。つまり、初期値管理部44は、初期値が格納される任意の記憶装置を有する。ここで、本実施の形態では、初期値が格納される記憶装置として、ICカードを使用した場合について例示する。したがって、初期値管理部44は、IC(Integrated Circuit)カードが挿入されて、挿入されたICカードに格納された初期値を読み取るICカードリーダを含むものとする。後述する初期値管理部417についても、同様であるものとする。初期値管理部44は、初期値をTSエンコーダ部43に出力する。   The initial value management unit 44 manages initial values used when image data is scrambled. That is, the initial value management unit 44 has an arbitrary storage device in which the initial value is stored. Here, in this embodiment, the case where an IC card is used as a storage device in which initial values are stored is illustrated. Therefore, the initial value management unit 44 includes an IC card reader that inserts an IC (Integrated Circuit) card and reads an initial value stored in the inserted IC card. The same applies to an initial value management unit 417 described later. The initial value management unit 44 outputs the initial value to the TS encoder unit 43.

TS多重化部45は、TSエンコーダ部43からコンテンツのMPEG2−TSパケットが入力され、多重情報生成部46からPSI/SI(Service Information)パケットが入力される。TS多重化部45は、コンテンツのMPEG2−TSパケット及びPSIパケットを多重化して、MPEG2−TSストリームを生成する。TS多重化部45は、生成したMPEG2−TSストリームを64QAM変調部47に出力する。   The TS multiplexing unit 45 receives an MPEG2-TS packet of content from the TS encoder unit 43, and receives a PSI / SI (Service Information) packet from the multiplexed information generation unit 46. The TS multiplexing unit 45 multiplexes the MPEG2-TS packet and the PSI packet of the content to generate an MPEG2-TS stream. The TS multiplexing unit 45 outputs the generated MPEG2-TS stream to the 64QAM modulation unit 47.

多重情報生成部46は、MPEG2システムにおけるPSI/SIパケットをテレビ番組のデータ及びそのデータのチャンネルに合わせて生成する。多重情報生成部46は、生成したPSI/SIパケットをTS多重化部45に出力する。   The multiple information generation unit 46 generates a PSI / SI packet in the MPEG2 system in accordance with the data of the television program and the channel of the data. The multiplexed information generation unit 46 outputs the generated PSI / SI packet to the TS multiplexing unit 45.

64QAM変調部47は、TS多重化部45から出力されたMPEG2−TSストリームを64Q変調する。64QAM変調部47は、64QAM変調したMPEG2−TSストリームを周波数多重部48に出力する。   The 64QAM modulation unit 47 performs 64Q modulation on the MPEG2-TS stream output from the TS multiplexing unit 45. The 64QAM modulation unit 47 outputs the 64-QAM modulated MPEG2-TS stream to the frequency multiplexing unit 48.

周波数多重部48は、64QAM変調部47から出力されたMPEG2−TSストリームを周波数多重して伝送波を生成する。周波数多重部48は、伝送路49を経由して、生成した伝送波を受信装置410に送信する。   The frequency multiplexing unit 48 frequency multiplexes the MPEG2-TS stream output from the 64QAM modulation unit 47 to generate a transmission wave. The frequency multiplexing unit 48 transmits the generated transmission wave to the reception device 410 via the transmission path 49.

受信装置410は、周波数分離部411、64QAM復調部412、TS分離部413、制御CPU部414、TSデコーダ部415、AVデコーダ部416、及び初期値管理部417を有する。   The receiving apparatus 410 includes a frequency separation unit 411, a 64QAM demodulation unit 412, a TS separation unit 413, a control CPU unit 414, a TS decoder unit 415, an AV decoder unit 416, and an initial value management unit 417.

周波数分離部411は、伝送路49を経由して、送信装置41から受信した伝送波から、MPEG2−TSストリームを周波数分離する。周波数分離部411は、分離したMPEG2−TSストリームを64QAM復調部412に出力する。   The frequency separation unit 411 separates the MPEG2-TS stream from the transmission wave received from the transmission device 41 via the transmission line 49. The frequency separation unit 411 outputs the separated MPEG2-TS stream to the 64QAM demodulation unit 412.

64QAM復調部412は、周波数分離部411から出力されたMPEG2−TSパケットを64QAM復調する。64QAM復調部412は、64QAM復調したMPEG2−TSパケットをTS分離部413に出力する。   The 64QAM demodulator 412 demodulates the MPEG2-TS packet output from the frequency separator 411 by 64QAM. The 64QAM demodulator 412 outputs the MPEG2-TS packet demodulated by 64QAM to the TS separator 413.

TS分離部413は、64QAM復調部412から出力されたMPEG2−TSパケットに分離する。TS分離部413は、制御CPU部414からMPEG2−TSパケットのフィルタリング制御情報を取得する。フィルタリング制御情報については、後述する。そして、TS分離部413は、取得したフィルタリング制御情報に応じて、分離したMPEG2−TSパケットを種類別に分類してTSデコーダ部415に出力する。   The TS separation unit 413 separates the MPEG2-TS packet output from the 64QAM demodulation unit 412. The TS separation unit 413 acquires MPEG2-TS packet filtering control information from the control CPU unit 414. The filtering control information will be described later. Then, the TS separation unit 413 classifies the separated MPEG2-TS packets according to the type in accordance with the acquired filtering control information, and outputs them to the TS decoder unit 415.

制御CPU部414は、MPEG2−TSパケットのフィルタリング及びデスクランブルの制御をする。制御CPU部414は、TS分離部413から取得したMPEG2−TSパケットからフィルタリング制御情報及びデスクランブル制御情報を取得する。制御CPU部414は、取得したフィルタリング制御情報をTS分離部413に出力する。また、制御CPU部414は、取得したデスクランブル制御情報をAVデコーダ部416に出力する。なお、デスクランブル制御情報については、後述する。   The control CPU unit 414 controls MPEG2-TS packet filtering and descrambling. The control CPU unit 414 acquires filtering control information and descrambling control information from the MPEG2-TS packet acquired from the TS separation unit 413. The control CPU unit 414 outputs the acquired filtering control information to the TS separation unit 413. Further, the control CPU unit 414 outputs the acquired descrambling control information to the AV decoder unit 416. The descrambling control information will be described later.

TSデコーダ部415は、TS分離部413から出力されたMPEG2−TSパケットのうち、ビデオTSパケット及びオーディオTSパケットを、AVデコーダ部416で処理可能なエレメンタリストリーム形式に変換する。TSデコーダ部415は、生成したエレメンタリストリームをAVデコーダ部416に出力する。以下、ビデオTSパケットのエレメンタリストリームを「ビデオES」とも言い、オーディオTSパケットのエレメンタリストリームを「オーディオES」とも言う。   The TS decoder unit 415 converts the video TS packet and the audio TS packet in the MPEG2-TS packet output from the TS separation unit 413 into an elementary stream format that can be processed by the AV decoder unit 416. The TS decoder unit 415 outputs the generated elementary stream to the AV decoder unit 416. Hereinafter, an elementary stream of a video TS packet is also referred to as “video ES”, and an elementary stream of an audio TS packet is also referred to as “audio ES”.

AVデコーダ部416は、制御CPU部414からデスクランブル制御情報が入力され、初期値管理部417から初期値が入力され、TSデコーダ部415からエレメンタリストリームが入力される。AVデコーダ部416は、エレメンタリストリームをデスクランブル及びデコード(復号)する。なお、初期値は、ビデオESのデスクランブル鍵である初期鍵として機能する。AVデコーダ部416は、ビデオESをデコードして、画像を表示可能な形式のピクチャデータを生成する。また、AVデコーダ部416は、オーディオESをデコードして、音声を出力可能な形式のオーディオデータを生成する。AVデコーダ部416は、生成したピクチャデータ及びオーディオデータを、受信装置410の外部に接続された出力装置に出力する。   The AV decoder unit 416 receives descrambling control information from the control CPU unit 414, receives an initial value from the initial value management unit 417, and receives an elementary stream from the TS decoder unit 415. The AV decoder unit 416 descrambles and decodes (decodes) the elementary stream. The initial value functions as an initial key that is a descrambling key of the video ES. The AV decoder unit 416 decodes the video ES to generate picture data in a format that can display an image. The AV decoder unit 416 decodes the audio ES and generates audio data in a format that can output sound. The AV decoder unit 416 outputs the generated picture data and audio data to an output device connected to the outside of the receiving device 410.

ここで、出力装置は、表示装置(図示せず)及び出音装置(図示せず)を含む。表示装置は、例えば、CRT(Cathode Ray Tube)ディスプレイ、プラズマディスプレイ、液晶ディスプレイ及び有機EL(Electro Luminescence)ディスプレイ等である。出音装置は、例えば、スピーカーである。表示装置は、受信装置410から出力されたピクチャデータに基づいて、画像を表示する。出音装置は、受信装置410から出力されたオーディオデータに基づいて、音声を出音する。   Here, the output device includes a display device (not shown) and a sound output device (not shown). Examples of the display device include a CRT (Cathode Ray Tube) display, a plasma display, a liquid crystal display, and an organic EL (Electro Luminescence) display. The sound output device is, for example, a speaker. The display device displays an image based on the picture data output from the receiving device 410. The sound output device outputs sound based on the audio data output from the reception device 410.

初期値管理部417は、エレメンタリストリームのデスクランブルする際に使用される初期値を管理する。つまり、初期値管理部417は、初期値が格納される任意の記憶装置を有する。なお、初期値管理部417は、送信装置41と共有された初期値を管理する。つまり、初期値管理部417は、初期値管理部44に格納される初期値と同一の初期値が格納される。初期値管理部417は、初期値をAVデコーダ部416に出力する。   The initial value management unit 417 manages the initial value used when the elementary stream is descrambled. That is, the initial value management unit 417 includes an arbitrary storage device that stores initial values. Note that the initial value management unit 417 manages the initial value shared with the transmission device 41. That is, the initial value management unit 417 stores the same initial value as the initial value stored in the initial value management unit 44. The initial value management unit 417 outputs the initial value to the AV decoder unit 416.

続いて、図2を参照して、本発明の実施の形態にかかるTSエンコーダ部43の構成について説明する。図2は、本発明の実施の形態にかかるTSエンコーダ部43のブロック図である。   Next, the configuration of the TS encoder unit 43 according to the embodiment of the present invention will be described with reference to FIG. FIG. 2 is a block diagram of the TS encoder unit 43 according to the embodiment of the present invention.

TSエンコーダ部43は、ビデオエンコーダ22、ビデオデコーダ23、ハッシュ生成器24、バッファ25、スクランブラ26、及びTS処理部27を有する。   The TS encoder unit 43 includes a video encoder 22, a video decoder 23, a hash generator 24, a buffer 25, a scrambler 26, and a TS processing unit 27.

ビデオエンコーダ22は、コンテンツ生成部42から出力された画像データをエレメンタリストリーム形式に変換をする。エレメンタリストリームは、画像データがエンコードされたデータである。よって、エレメンタリストリームは、Iピクチャ、Bピクチャ、及びPピクチャのうちのいずれかのデータとなる。ビデオエンコーダ22は、生成したエレメンタリストリームをビデオデコーダ23及びスクランブラ26に出力する。   The video encoder 22 converts the image data output from the content generation unit 42 into an elementary stream format. An elementary stream is data in which image data is encoded. Therefore, the elementary stream is data of any one of I picture, B picture, and P picture. The video encoder 22 outputs the generated elementary stream to the video decoder 23 and the scrambler 26.

ビデオデコーダ23は、ビデオエンコーダ22から出力されたエレメンタリストリームをデコードする。ビデオデコーダ23は、エレメンタリストリームをデコードして生成したピクチャデータをハッシュ生成器24に出力する。また、ビデオデコーダ23は、デスクランブル制御情報であるリセットフラグを生成してTS処理部27に出力する。   The video decoder 23 decodes the elementary stream output from the video encoder 22. The video decoder 23 outputs the picture data generated by decoding the elementary stream to the hash generator 24. In addition, the video decoder 23 generates a reset flag that is descrambling control information and outputs the reset flag to the TS processing unit 27.

ハッシュ生成器24は、ビデオデコーダ23から出力されたピクチャデータをハッシュ演算して、一意の値のハッシュを生成する。ハッシュ生成器24は、生成したハッシュをバッファ25に出力する。   The hash generator 24 performs a hash operation on the picture data output from the video decoder 23 to generate a hash of a unique value. The hash generator 24 outputs the generated hash to the buffer 25.

バッファ25は、ハッシュ生成器24から出力されたハッシュ、又は、初期値管理部44から出力された初期値を保持する。つまり、バッファ25は、ハッシュ又は初期値が格納される任意の記憶装置である。バッファ25は、保持しているハッシュ又は初期値を、スクランブル鍵としてスクランブラ26に出力する。   The buffer 25 holds the hash output from the hash generator 24 or the initial value output from the initial value management unit 44. That is, the buffer 25 is an arbitrary storage device that stores a hash or an initial value. The buffer 25 outputs the held hash or initial value to the scrambler 26 as a scramble key.

スクランブラ26は、バッファ25から出力されたスクランブル鍵を使用して、ビデオエンコーダ22から出力されたエレメンタリストリームをスクランブルする。スクランブラ26は、スクランブルしたエレメンタリストリームをTS処理部27に出力する。   The scrambler 26 scrambles the elementary stream output from the video encoder 22 using the scramble key output from the buffer 25. The scrambler 26 outputs the scrambled elementary stream to the TS processing unit 27.

TS処理部27は、スクランブラ26から出力されたエレメンタリストリームをMPEG2−TSパケット形式へ変換する。TS処理部27は、ビデオデコーダ23から出力されたリセットフラグを、MPEG2−TSパケットに含まれるアダプテーション・フィールドに埋め込む。そして、TS処理部27は、生成したMPEG2−TSパケットをTS多重化部45に出力する。   The TS processing unit 27 converts the elementary stream output from the scrambler 26 into the MPEG2-TS packet format. The TS processing unit 27 embeds the reset flag output from the video decoder 23 in the adaptation field included in the MPEG2-TS packet. Then, the TS processing unit 27 outputs the generated MPEG2-TS packet to the TS multiplexing unit 45.

なお、本実施の形態では、このようにMPEG2−TSフォーマットに変換する場合について例示しているが、リセットフラグのように、受信装置410でのデスクランブルに必要な情報を埋め込むことできるフォーマットであれば、このフォーマットに限定されない。   In this embodiment, the case of conversion to the MPEG2-TS format is exemplified as described above. However, any format that can embed information necessary for descrambling in the reception device 410, such as a reset flag, is used. For example, the format is not limited.

続いて、本発明の実施の形態にかかるMPEG2−TSパケットの構成について説明する。図3は、本発明の実施の形態にかかるMPEG2−TSパケットの構成図である。ここでは、図13を参照して説明したMPEG2−TSパケットと異なる点について説明する。   Next, the configuration of the MPEG2-TS packet according to the embodiment of the present invention will be described. FIG. 3 is a configuration diagram of an MPEG2-TS packet according to the embodiment of the present invention. Here, differences from the MPEG2-TS packet described with reference to FIG. 13 will be described.

本実施の形態にかかるMPEG2−TSパケットは、アダプテーション・フィールドF3にリセットフラグF6が格納されるエリアを設けられている。なお、リセットフラグF6が格納されるエリアは、アダプテーション・フィールドF3のうち、任意のビット位置に設けられるようにしてよい。   The MPEG2-TS packet according to the present embodiment is provided with an area in which the reset flag F6 is stored in the adaptation field F3. The area in which the reset flag F6 is stored may be provided at an arbitrary bit position in the adaptation field F3.

続いて、図4を参照して、本発明の実施の形態にかかるAVデコーダ部416の構成について説明する。図4は、本発明の実施の形態にかかるAVデコーダ部416のブロック図である。   Next, the configuration of the AV decoder unit 416 according to the embodiment of the present invention will be described with reference to FIG. FIG. 4 is a block diagram of the AV decoder unit 416 according to the embodiment of the present invention.

AVデコーダ部416は、ビデオデコーダ37、デスクランブラ38、バッファ39、及びハッシュ生成器310を有する。   The AV decoder unit 416 includes a video decoder 37, a descrambler 38, a buffer 39, and a hash generator 310.

ビデオデコーダ37は、デスクランブラ38から出力されたエレメンタリストリームをデコードする。ビデオデコーダ37は、エレメンタリストリームをデコードして生成したピクチャデータを、受信装置410の外部及びハッシュ生成器310に出力する。ここで、ビデオデコーダ37は、送信装置41のビデオデコーダ23と同一のデコード規則によってエレメンタリストリームをデコードする。つまり、ビデオデコーダ23及びビデオデコーダ37は、同一のエレメンタリストリームをデコードした場合、同一のピクチャデータを生成する。   The video decoder 37 decodes the elementary stream output from the descrambler 38. The video decoder 37 outputs the picture data generated by decoding the elementary stream to the outside of the receiving apparatus 410 and the hash generator 310. Here, the video decoder 37 decodes the elementary stream according to the same decoding rule as that of the video decoder 23 of the transmission device 41. That is, the video decoder 23 and the video decoder 37 generate the same picture data when the same elementary stream is decoded.

デスクランブラ38は、バッファ39から出力されたデスクランブル鍵を使用して、TSデコーダ部415から出力されたエレメンタリストリームをデスクランブルする。デスクランブラ38は、デスクランブルしたエレメンタリストリームをビデオデコーダ37に出力する。   The descrambler 38 descrambles the elementary stream output from the TS decoder unit 415 using the descrambling key output from the buffer 39. The descrambler 38 outputs the descrambled elementary stream to the video decoder 37.

バッファ39は、初期値管理部417から出力された初期値、又は、ハッシュ生成器310から出力されたハッシュを保持する。つまり、バッファ39は、ハッシュ又は初期値が格納される任意の記憶装置である。バッファ39は、保持している初期値又はハッシュをデスクランブル鍵としてデスクランブラ38に出力する。   The buffer 39 holds the initial value output from the initial value management unit 417 or the hash output from the hash generator 310. That is, the buffer 39 is an arbitrary storage device that stores a hash or an initial value. The buffer 39 outputs the stored initial value or hash to the descrambler 38 as a descrambling key.

ハッシュ生成器310は、ビデオデコーダ37から出力されたピクチャデータをハッシュ演算して、一意の値のハッシュを生成する。ハッシュ生成器310は、生成したハッシュをバッファ39に出力する。ここで、ハッシュ生成器310は、送信装置41のハッシュ生成器24と同一の演算規則でハッシュを生成する。つまり、ハッシュ生成器24及びハッシュ生成器310は、同一のピクチャデータを演算した場合、同一のハッシュを生成する。   The hash generator 310 performs a hash operation on the picture data output from the video decoder 37 to generate a hash of a unique value. The hash generator 310 outputs the generated hash to the buffer 39. Here, the hash generator 310 generates a hash with the same calculation rule as the hash generator 24 of the transmission device 41. That is, the hash generator 24 and the hash generator 310 generate the same hash when calculating the same picture data.

続いて、図5を参照して、本発明の実施の形態にかかる送信装置41の動作について説明する。図5は、本発明の実施の形態にかかる送信装置41の制御フローチャートである。   Then, with reference to FIG. 5, operation | movement of the transmitter 41 concerning embodiment of this invention is demonstrated. FIG. 5 is a control flowchart of the transmission apparatus 41 according to the embodiment of the present invention.

コンテンツ生成部42は、画像データ、音声データ、字幕データ、BMLデータ等のコンテンツを生成する。つまり、各コンテンツによって構成される動画像データが生成される。コンテンツ生成部42は、生成した動画像データをTSエンコーダ部43に出力する(S101)。   The content generation unit 42 generates content such as image data, audio data, caption data, and BML data. That is, moving image data constituted by each content is generated. The content generation unit 42 outputs the generated moving image data to the TS encoder unit 43 (S101).

TSエンコーダ部43は、コンテンツ生成部42から出力された動画像データのうち、画像データ及び音声データのようにスクランブルによる保護が必要なデータを、エレメンタリストリームに変換してから、バッファ25のスクランブル鍵を利用してスクランブルしてMPEG2−TSパケットに変換する(S102)。TSエンコーダ部43は、生成したMPEG2−TSパケットをTS多重化部45に出力する。   The TS encoder unit 43 scrambles the buffer 25 after converting the moving image data output from the content generation unit 42 into data that needs to be protected by scrambling, such as image data and audio data, into an elementary stream. It is scrambled using the key and converted into an MPEG2-TS packet (S102). The TS encoder unit 43 outputs the generated MPEG2-TS packet to the TS multiplexing unit 45.

TS多重化部45は、TSエンコーダ部43から出力されたMPEG2−TSパケットと、多重情報生成部46から出力されたPSI/SIパケットと、ストリーム全体のビットレートを調整するためのNULLパケットと、を1つのMPEG2−TSストリームに多重化する(S103)。TS多重化部45は、生成したPEG2−TSストリームを64QAM変調部47に出力する。   The TS multiplexing unit 45 includes an MPEG2-TS packet output from the TS encoder unit 43, a PSI / SI packet output from the multiplexing information generation unit 46, a NULL packet for adjusting the bit rate of the entire stream, Are multiplexed into one MPEG2-TS stream (S103). The TS multiplexing unit 45 outputs the generated PEG2-TS stream to the 64QAM modulation unit 47.

ここで、日本の地上デジタル放送は、放送波を伝送するために64QAM(Quadrature Amplitude Modulation)方式で変調されている。また、日本のデジタル放送においては、携帯機器などの移動体に向けてワンセグメント放送と呼ばれる放送も行っている。ワンセグメント放送は、地上デジタル放送とは異なり、QPSK(Quadrature Phase Shift Keying)方式で変調されている。64QAM変調方式で変調された地上デジタル放送の電波、及び、QPSK変調方式で変調されたワンセグメント放送の電波は、OFDM(Orthogonal Frequency−Division Multiplexing)と呼ばれる方式で多重化され、送信されている。   Here, Japanese terrestrial digital broadcasting is modulated by a 64QAM (Quadrature Amplitude Modulation) system in order to transmit broadcast waves. Also, in Japanese digital broadcasting, broadcasting called one-segment broadcasting is also performed for mobile bodies such as portable devices. One-segment broadcasting, unlike terrestrial digital broadcasting, is modulated by QPSK (Quadrature Phase Shift Keying). The terrestrial digital broadcast radio waves modulated by the 64QAM modulation scheme and the one-segment broadcast radio waves modulated by the QPSK modulation scheme are multiplexed and transmitted by a scheme called OFDM (Orthogonal Frequency-Division Multiplexing).

64QAM変調部47は、TS多重化部45から出力されたMPEG2−TSストリームを64QAM変調する(S104)。64QAM変調部47は、64QAM変調したMPEG2−TSストリームを周波数多重部48に出力する。   The 64QAM modulation unit 47 performs 64QAM modulation on the MPEG2-TS stream output from the TS multiplexing unit 45 (S104). The 64QAM modulation unit 47 outputs the 64-QAM modulated MPEG2-TS stream to the frequency multiplexing unit 48.

周波数多重部48は、64QAM変調部47から出力されたMPEG2−TSストリームをOFDMのサブキャリアとして多重化する(S105)。送信装置41は、MPEG2−TSストリームを多重化して生成したOFDM波を、受信装置410に向けて送信する(S106)。つまり、本実施の形態では、伝送路49が、電波であるOFDM波を伝送する自由空間である場合について例示している。   The frequency multiplexing unit 48 multiplexes the MPEG2-TS stream output from the 64QAM modulation unit 47 as an OFDM subcarrier (S105). The transmission device 41 transmits the OFDM wave generated by multiplexing the MPEG2-TS stream to the reception device 410 (S106). That is, in this embodiment, the case where the transmission path 49 is a free space that transmits an OFDM wave that is a radio wave is illustrated.

なお、本発明では、送信装置41と受信装置410の間でのストリームの送受信方法については、上述した方法に限定されない。例えば、伝送路49は、自由空間のような無線のものに限定されず、IP網のように有線のものであってもよい。また、変調の有無及びその方法についても、上述したものに限定されない。つまり、64QAM変調を行わずに、MPEG2−TSストリームを送信するようにしてもよい。また、例えば、MPEG2−TSストリームをQPSK方式によって変調して送信するようにしてもよい。つまり、動画像データは、地上デジタル放送におけるテレビ番組データに限られず、ワンセグメント放送におけるテレビ番組データであってもよい。   In the present invention, the method for transmitting and receiving streams between the transmission device 41 and the reception device 410 is not limited to the method described above. For example, the transmission path 49 is not limited to a wireless one such as a free space, and may be a wired one such as an IP network. Further, the presence / absence of modulation and the method thereof are not limited to those described above. That is, the MPEG2-TS stream may be transmitted without performing 64QAM modulation. Further, for example, the MPEG2-TS stream may be modulated by the QPSK method and transmitted. That is, the moving image data is not limited to the television program data in terrestrial digital broadcasting, but may be television program data in one-segment broadcasting.

続いて、図6を参照して、本発明の実施の形態にかかるTSエンコーダ部43の動作について説明する。図6は、本発明の実施の形態にかかるTSエンコーダ部43の制御フローチャートである。   Next, the operation of the TS encoder unit 43 according to the embodiment of the present invention will be described with reference to FIG. FIG. 6 is a control flowchart of the TS encoder unit 43 according to the embodiment of the present invention.

ビデオエンコーダ22は、TSエンコーダ部43から出力された画像データをエレメンタリストリームにエンコードする(S201)。ここで、画像データのエンコード方式は、例えば、H.264/AVCのように、送信装置側と受信装置側のそれぞれにおけるビデオデコーダでのデコード結果が等しくなるエンコード方式であれば、どのようなエンコード方式であってもよい。例えば、現在の日本のデジタル放送で採用されているMPEG2形式では、デコード演算に小数演算が必要なため、デコーダの小数演算の精度や実装方法によって、デコード演算結果が異なってしまうことがある。つまり、このようなエンコード方式を採用すると、送信装置41でのデコード演算結果と、受信装置410でのデコード演算結果とが異なってしまう場合がある。この場合、それぞれのデコード演算結果から生成されるスクランブル鍵及びデスクランブル鍵が異なるものとなるため、受信装置410で正常にデスクランブルすることができなくなってしまう。   The video encoder 22 encodes the image data output from the TS encoder unit 43 into an elementary stream (S201). Here, the encoding method of the image data is, for example, H.264. Any encoding method may be used as long as the decoding results obtained by the video decoders on the transmitting device side and the receiving device side are the same as in H.264 / AVC. For example, in the MPEG2 format used in current Japanese digital broadcasting, a decimal operation is required for the decoding operation, and therefore the decoding operation result may differ depending on the accuracy of the decimal operation of the decoder and the mounting method. That is, when such an encoding method is employed, the decoding calculation result in the transmission device 41 may be different from the decoding calculation result in the reception device 410. In this case, since the scramble key and the descramble key generated from the respective decoding calculation results are different from each other, the receiving device 410 cannot be normally descrambled.

それに対して、H.264/AVCでは、整数のみでデコード演算をできるようになっているため、デコーダの小数演算の精度や実装方法に関わらずデコード演算結果が一致する。そのため、エンコード方式として、H.264/AVCを採用することによって、送信装置41でのデコード演算結果と、受信装置410でのデコード演算結果のそれぞれから、同一のスクランブル鍵及びデスクランブル鍵を生成することができ、正常にデスクランブルをすることが可能となる。   In contrast, H.C. In H.264 / AVC, decoding operations can be performed using only integers, so that the decoding operation results match regardless of the decimal arithmetic accuracy and mounting method. Therefore, H.264 is used as an encoding method. By adopting H.264 / AVC, the same scramble key and descrambling key can be generated from the decoding calculation result in the transmission device 41 and the decoding calculation result in the reception device 410, and the descrambling can be normally performed. It becomes possible to do.

ビデオデコーダ23は、ビデオエンコーダ22から出力されたエレメンタリストリームをデコードする(S202)。ビデオデコーダ23は、エレメンタリストリームをデコードして生成したピクチャデータをハッシュ生成器24及びTS処理部27に出力する。ここで、一般的な画像のデコード方式では、Iピクチャがデコードできなければ、Iピクチャの前後に存在するBピクチャや、Iピクチャの後に存在するPピクチャのデコードが不可能となる。そこで、本実施の形態では、Iピクチャをスクランブル/デスクランブル鍵のリセットタイミングとすることにより、受信装置410によるデスクランブル及びデコードを行うまでの時間を最短化する。よって、Iピクチャをスクランブル/デスクランブル鍵のリセットタイミングとするために、送信装置41がスクランブル対象となるエレメンタリストリームのピクチャの種類を判定する必要がある。   The video decoder 23 decodes the elementary stream output from the video encoder 22 (S202). The video decoder 23 outputs the picture data generated by decoding the elementary stream to the hash generator 24 and the TS processing unit 27. Here, in the general image decoding method, if the I picture cannot be decoded, it is impossible to decode the B picture existing before and after the I picture and the P picture existing after the I picture. Therefore, in this embodiment, the time until descrambling and decoding by the receiving apparatus 410 is minimized by setting the I picture as the scramble / descramble key reset timing. Therefore, in order to set the I picture as the scramble / descramble key reset timing, it is necessary for the transmission apparatus 41 to determine the type of the elementary stream picture to be scrambled.

そのため、ビデオデコーダ23は、デコードにおいて、デコードしたエレメンタリストリームがIピクチャか否かを判定する(S203)。Iピクチャか否かは、例えば、エレメンタリストリームに含まれるPCT(Picture Start Code)によって判定する。   Therefore, in the decoding, the video decoder 23 determines whether or not the decoded elementary stream is an I picture (S203). Whether it is an I picture is determined by, for example, PCT (Picture Start Code) included in the elementary stream.

デコードしたエレメンタリストリームがIピクチャであると判定した場合(S203:Yes)、TSエンコーダ部43は、初期値管理部44から初期値を取得して、バッファ25に格納する。また、ビデオデコーダ23は、リセットフラグを"1"として、TS処理部27に出力する(S205)。そして、処理は、ステップS207に進む。   When it is determined that the decoded elementary stream is an I picture (S203: Yes), the TS encoder unit 43 acquires an initial value from the initial value management unit 44 and stores it in the buffer 25. Further, the video decoder 23 sets the reset flag to “1” and outputs it to the TS processing unit 27 (S205). Then, the process proceeds to step S207.

デコードしたエレメンタリストリームがIピクチャでないと判定された場合(S203:No)、ビデオデコーダ23は、リセットフラグを"0"として、TS処理部27に出力する(S206)。そして、処理は、ステップS207に進む。なお、この場合は、バッファ25には、ビデオデコーダ23によって前回デコードされたピクチャデータをハッシュ演算して生成されたハッシュが格納されていることになる。このハッシュは、後述するステップS209で格納されることになる。   When it is determined that the decoded elementary stream is not an I picture (S203: No), the video decoder 23 sets the reset flag to “0” and outputs it to the TS processing unit 27 (S206). Then, the process proceeds to step S207. In this case, the buffer 25 stores a hash generated by hashing the picture data previously decoded by the video decoder 23. This hash is stored in step S209 described later.

スクランブラ26は、バッファ25に格納された値をスクランブル鍵として利用して、ビデオエンコーダ22から出力されたエレメンタリストリームをスクランブルする。よって、スクランブラ26は、Iピクチャのエレメンタリストリームについては、初期値によってデスクランブルを行い、そのIピクチャを参照するBピクチャ及びPピクチャのエレメンタリストリームについては、前回デコードされたピクチャのハッシュによってデスクランブルを行うことになる。スクランブラ26は、スクランブルしたエレメンタリストリームをTS処理部27に出力する(S207)。ここで、スクランブラ26におけるスクランブルのアルゴリズムとして、どのようなアルゴリズムを採用するようにしてよい。   The scrambler 26 scrambles the elementary stream output from the video encoder 22 using the value stored in the buffer 25 as a scramble key. Therefore, the scrambler 26 descrambles the elementary stream of the I picture with the initial value, and the elementary stream of the B picture and the P picture that refer to the I picture by the hash of the previously decoded picture. It will be descrambled. The scrambler 26 outputs the scrambled elementary stream to the TS processing unit 27 (S207). Here, any algorithm may be adopted as a scramble algorithm in the scrambler 26.

TS処理部27は、スクランブラ26から出力されたエレメンタリストリームをMPEG2−TSパケット化する。そして、TS処理部27は、MPEG2−TSパケットのアダプテーション・フィールドF3に、ビデオデコーダ23から出力されたリセットフラグF6を格納する。これによって、Iピクチャのエレメンタリストリームから生成されたMPEG2−TSパケットのアダプテーション・フィールドF3には、リセットフラグが"1"で格納され、Bピクチャ及びPピクチャのエレメンタリストリームから生成されたMPEG2−TSパケットのアダプテーション・フィールドF3には、リセットフラグが"0"で格納される。   The TS processing unit 27 converts the elementary stream output from the scrambler 26 into an MPEG2-TS packet. Then, the TS processing unit 27 stores the reset flag F6 output from the video decoder 23 in the adaptation field F3 of the MPEG2-TS packet. As a result, the reset flag is stored as “1” in the adaptation field F3 of the MPEG2-TS packet generated from the elementary stream of the I picture, and the MPEG2-TS generated from the elementary stream of the B picture and the P picture. A reset flag of “0” is stored in the adaptation field F3 of the TS packet.

ハッシュ生成器24は、ビデオデコーダ23によってデコードされたピクチャデータから、ハッシュを生成する(ステップS208)。ここで、ハッシュ生成器24において、ハッシュを生成するアルゴリズムとして、どのようなアルゴリズムを採用するようにしてもよい。例えば、SHA−1又はMD5等のアルゴリズムを採用する。また、ピクチャから生成することができる一意な値であれば、ハッシュ以外の値を生成するようにしてもよい。ハッシュ生成器24は、生成したハッシュをバッファ25に格納する(S209)。バッファ25に格納されたハッシュは、次にデコードするエレメンタリストリームがBピクチャ又はPピクチャである場合に、ステップS207においてスクランブル鍵として使用される。   The hash generator 24 generates a hash from the picture data decoded by the video decoder 23 (step S208). Here, the hash generator 24 may employ any algorithm as an algorithm for generating a hash. For example, an algorithm such as SHA-1 or MD5 is adopted. Further, as long as it is a unique value that can be generated from a picture, a value other than a hash may be generated. The hash generator 24 stores the generated hash in the buffer 25 (S209). The hash stored in the buffer 25 is used as a scramble key in step S207 when the elementary stream to be decoded next is a B picture or a P picture.

続いて、図7を参照して、本発明の実施の形態にかかる受信装置410の動作について説明する。図7は、本発明の実施の形態にかかる受信装置410の制御フローチャートである。   Next, with reference to FIG. 7, the operation of the receiving apparatus 410 according to the embodiment of the present invention will be described. FIG. 7 is a control flowchart of the receiving apparatus 410 according to the embodiment of the present invention.

受信装置410は、送信装置41から伝送路49を通じてOFDM波を受信する(S301)。受信装置410が受信したOFDM波は、周波数分離部411に入力される。周波数分離部411は、入力されたOFDM波からMPEG2−TSストリームを分離する(S302)。周波数分離部411は、分離したMPEG2−TSストリームを64QAM復調部412に出力する。なお、この時点では、MPEG2−TSストリームは、64QAM変調された状態となっている。   The receiving device 410 receives an OFDM wave from the transmitting device 41 through the transmission path 49 (S301). The OFDM wave received by the receiving apparatus 410 is input to the frequency separation unit 411. The frequency separation unit 411 separates the MPEG2-TS stream from the input OFDM wave (S302). The frequency separation unit 411 outputs the separated MPEG2-TS stream to the 64QAM demodulation unit 412. At this point, the MPEG2-TS stream is in a state of being 64QAM modulated.

64QAM復調部412は、周波数分離部411によって分離されたMPEG2−TSストリームを64QAM復調する(S303)。64QAM復調部412は、64QAM復調したMPEG2−TSストリームをTS分離部413に出力する。   The 64QAM demodulator 412 demodulates the MPEG2-TS stream separated by the frequency separator 411 (S303). The 64QAM demodulation unit 412 outputs the 64-QAM demodulated MPEG2-TS stream to the TS separation unit 413.

TS分離部413は、64QAM復調部412から出力されたMPEG2−TSストリームを、MPEG2−TSパケットに分離する(S304)。TS分離部413は、分離したMPEG2−TSパケットのコピーを制御CPU部414に出力する。ここで、MPEG2−TSパケットのTSヘッダ部分には、MPEG2−TSパケットにどのような種類のデータが格納されているかを識別するための識別子が含まれている。この識別子は、PID(Packet Identifier)と呼ばれる。制御CPU部414は、TS分離部413から出力されたMPEG2−TSパケットからPIDを取得して、取得したPIDをフィルタリング制御情報としてTS分離部413に出力する。TS分離部413は、制御CPU部414から出力されたPIDに基づいて、コピー元のMPEG2−TSパケットの種類を判別する。TS分離部413は、判別結果に応じて、画像、音声、及びPSI/SI等の種類別にMPEG2−TSパケットを分類する。TS分離部413は、分類したMPEG2−TSパケットをTSデコーダ部415に出力する。   The TS separation unit 413 separates the MPEG2-TS stream output from the 64QAM demodulation unit 412 into MPEG2-TS packets (S304). The TS separation unit 413 outputs a copy of the separated MPEG2-TS packet to the control CPU unit 414. Here, the TS header portion of the MPEG2-TS packet includes an identifier for identifying what type of data is stored in the MPEG2-TS packet. This identifier is called a PID (Packet Identifier). The control CPU unit 414 acquires a PID from the MPEG2-TS packet output from the TS separation unit 413, and outputs the acquired PID to the TS separation unit 413 as filtering control information. The TS separation unit 413 determines the type of copy source MPEG2-TS packet based on the PID output from the control CPU unit 414. The TS separation unit 413 classifies MPEG2-TS packets according to types such as image, sound, and PSI / SI according to the determination result. The TS separation unit 413 outputs the classified MPEG2-TS packet to the TS decoder unit 415.

また、制御CPU部414は、TS分離部413から出力されたMPEG2−TSパケットを解析して、解析したMPEG2−TSパケットからデスクランブル制御情報であるリセットフラグを取得する(S305)。制御CPU部414は、TS分離部413から出力された制御CPU部414は、取得したリセットフラグをAVデコーダ部416に出力する。   In addition, the control CPU unit 414 analyzes the MPEG2-TS packet output from the TS separation unit 413, and acquires a reset flag that is descrambling control information from the analyzed MPEG2-TS packet (S305). The control CPU unit 414 output from the TS separation unit 413 outputs the acquired reset flag to the AV decoder unit 416.

TSデコーダ部415は、TS分離部413によって分離されたMPEG2−TSパケットのうち、ビデオTSパケット及びオーディオTSパケットをエレメンタリストリームに変換するとともに、PSI/SIパケットをセクション形式に変換する(S306)。TSデコーダ部415は、エレメンタルストリーム及びセクション形式に変換したPSI/SIをAVデコーダ部416に出力する。なお、この時点では、エレメンタルストリームは、スクランブルされた状態となっている。   The TS decoder unit 415 converts the video TS packet and the audio TS packet among the MPEG2-TS packets separated by the TS separation unit 413 into elementary streams, and converts the PSI / SI packet into a section format (S306). . The TS decoder unit 415 outputs the PSI / SI converted into the elementary stream and the section format to the AV decoder unit 416. At this point, the elementary stream is in a scrambled state.

AVデコーダ部416は、TSデコーダ部415から出力されたエレメンタリストリームと、制御CPU部414から出力されたリセットフラグF6と、初期値管理部417から出力された初期値とに基づいて、エレメンタリストリームをデスクランブルする(S307)。さらに、AVデコーダ部416は、デスクランブルされたエレメンタリストリームをデコードして、ピクチャデータ及びオーディオデータを生成する。AVデコーダ部416は、生成したピクチャデータ及びオーディオデータを、受信装置410外部に接続された出力装置に出力する(S308)。   The AV decoder unit 416 is based on the elementary stream output from the TS decoder unit 415, the reset flag F6 output from the control CPU unit 414, and the initial value output from the initial value management unit 417. The stream is descrambled (S307). Further, the AV decoder unit 416 decodes the descrambled elementary stream to generate picture data and audio data. The AV decoder unit 416 outputs the generated picture data and audio data to an output device connected outside the reception device 410 (S308).

続いて、図8を参照して、本発明の実施の形態にかかるAVデコーダ部416の動作について説明する。図8は、本発明の実施の形態にかかるAVデコーダ部416の制御フローチャートである。   Next, the operation of the AV decoder unit 416 according to the embodiment of the present invention will be described with reference to FIG. FIG. 8 is a control flowchart of the AV decoder unit 416 according to the embodiment of the present invention.

制御CPU部414は、TS分離部413から出力されたMPEG2−TSパケットから、ビデオTSパケットをサーチする。制御CPU部414は、ビデオTSパケットとしてサーチされたMPEG2−TSパケットのアダプテーション・フィールドF3を解析してリセットフラグF6を取得する(S401)。制御CPU部414は、取得したリセットフラグF6をAVデコーダ部416に出力する。また、TSデコーダ部415は、TS分離部413から出力されたMPEG2−TSパケットをエレメンタリストリーム形式に変換する。TSデコーダ部415は、生成したエレメンタリストリームをAVデコーダ部416に出力する。   The control CPU unit 414 searches for a video TS packet from the MPEG2-TS packet output from the TS separation unit 413. The control CPU unit 414 analyzes the adaptation field F3 of the MPEG2-TS packet searched for as a video TS packet, and acquires the reset flag F6 (S401). The control CPU unit 414 outputs the acquired reset flag F6 to the AV decoder unit 416. Further, the TS decoder unit 415 converts the MPEG2-TS packet output from the TS separation unit 413 into an elementary stream format. The TS decoder unit 415 outputs the generated elementary stream to the AV decoder unit 416.

AVデコーダ部416は、制御CPU部414から出力されたリセットフラグF6を取得する(S402)。ここで、TSデコーダ部415からAVデコーダ部416にビデオTSパケットが出力されるときに、そのビデオTSパケットのアダプテーション・フィールドF3中のリセットフラグF6が、制御CPU部414からAVデコーダ部416に出力されるように、それぞれの出力タイミングを同期するものとする。   The AV decoder unit 416 acquires the reset flag F6 output from the control CPU unit 414 (S402). Here, when a video TS packet is output from the TS decoder unit 415 to the AV decoder unit 416, the reset flag F6 in the adaptation field F3 of the video TS packet is output from the control CPU unit 414 to the AV decoder unit 416. As described above, the respective output timings are synchronized.

AVデコーダ部416は、取得したリセットフラグF6が"1"であるか否かを判定する(S403)。つまり、AVデコーダ部416は、TSデコーダ部415から出力されたビデオTSパケットが、Iピクチャであるか否かを判定することになる。   The AV decoder unit 416 determines whether or not the acquired reset flag F6 is “1” (S403). That is, the AV decoder unit 416 determines whether or not the video TS packet output from the TS decoder unit 415 is an I picture.

リセットフラグF6が"1"である場合、AVデコーダ部416は、初期値管理部417のICカードリーダに挿入されているICカードに格納されている初期値を読み出してバッファ39に格納する(S404)。そして、処理は、ステップS405に進む。   When the reset flag F6 is “1”, the AV decoder unit 416 reads the initial value stored in the IC card inserted in the IC card reader of the initial value management unit 417 and stores it in the buffer 39 (S404). ). Then, the process proceeds to step S405.

リセットフラグF6が"1"でない場合、処理は、ステップS405に進む。なお、この場合は、バッファ39には、ビデオデコーダ37によって前回デコードされたピクチャデータから生成されたハッシュが格納されていることになる。このハッシュは、後述するステップS408で格納されることになる。   If the reset flag F6 is not “1”, the process proceeds to step S405. In this case, the buffer 39 stores a hash generated from the picture data previously decoded by the video decoder 37. This hash is stored in step S408 described later.

このように、本実施の形態では、送信装置41と受信装置410の間でスクランブル/デスクランブル鍵の初期値を共有する手段の一例としてICカードを利用した共有を行っている。具体的には、コンテンツ管理者は、初期値が記録されたICカードを受信装置410のユーザに配布して、ユーザが配布されたICカードを受信装置410に挿入することで、初期値の共有が行われる。   Thus, in the present embodiment, sharing using an IC card is performed as an example of means for sharing the initial value of the scramble / descramble key between the transmission device 41 and the reception device 410. Specifically, the content manager distributes the IC card in which the initial value is recorded to the user of the receiving device 410, and inserts the IC card in which the user is distributed into the receiving device 410, thereby sharing the initial value. Is done.

しかし、初期値を共有する方法は、これに限られない。例えば、ICカード以外の外部記憶媒体によって共有するようにしてもよい。外部記憶媒体として、例えば、USB(Universal Serial Bus)メモリ、外付けハードディスク、又は光ディスク等を使用するようにして、初期値管理部44、417がこれらから初期値を読み取り可能としてもよい。また、送信装置41及び受信装置410に入力装置を有するようにして、コンテンツ管理者又はユーザが入力装置を介して、同一の初期値を初期値管理部44、417に対して入力するようにしてもよい。入力装置として、例えば、キーボード及びマウス等を使用するようにしてもよい。   However, the method of sharing the initial value is not limited to this. For example, it may be shared by an external storage medium other than the IC card. As the external storage medium, for example, a USB (Universal Serial Bus) memory, an external hard disk, an optical disk, or the like may be used, and the initial value management units 44 and 417 may be able to read the initial value therefrom. Further, the transmission apparatus 41 and the reception apparatus 410 have input devices so that the content manager or user inputs the same initial value to the initial value management units 44 and 417 via the input device. Also good. For example, a keyboard and a mouse may be used as the input device.

デスクランブラ38は、バッファ39に格納された値をデスクランブル鍵として利用して、TSデコーダ部415から出力されたエレメンタリストリームをデスクランブルする(S405)。よって、デスクランブラ38は、送信装置41のスクランブラ26と同様に、Iピクチャのエレメンタリストリームについては、初期値によってデスクランブルを行い、そのIピクチャを参照するBピクチャ及びPピクチャのエレメンタリストリームについては、前回デコードされたピクチャのハッシュによってデスクランブルを行うことになる。デスクランブラ38は、デスクランブルしたエレメンタリストリームをビデオデコーダ37に出力する。   The descrambler 38 descrambles the elementary stream output from the TS decoder unit 415 using the value stored in the buffer 39 as a descrambling key (S405). Therefore, as with the scrambler 26 of the transmission device 41, the descrambler 38 descrambles the elementary stream of the I picture according to the initial value, and the elementary stream of the B picture and the P picture that refer to the I picture. Is descrambled with the hash of the previously decoded picture. The descrambler 38 outputs the descrambled elementary stream to the video decoder 37.

ビデオデコーダ37は、デスクランブラ38から出力されたエレメンタリストリームをデコードして、ピクチャデータを生成する(S406)。ビデオデコーダ23は、生成したピクチャデータをハッシュ生成器310に出力する。   The video decoder 37 decodes the elementary stream output from the descrambler 38 to generate picture data (S406). The video decoder 23 outputs the generated picture data to the hash generator 310.

ハッシュ生成器310は、ビデオデコーダ37から出力されたピクチャデータから、ハッシュを生成する(S407)。ハッシュ生成器24は、生成したハッシュをバッファ39に格納する(S408)。   The hash generator 310 generates a hash from the picture data output from the video decoder 37 (S407). The hash generator 24 stores the generated hash in the buffer 39 (S408).

また、ビデオデコーダ37は、エレメンタリストリームのデコード結果であるピクチャデータを、受信装置410の外部に接続された出力装置(図示せず)に出力する(S409)。   In addition, the video decoder 37 outputs the picture data that is the result of decoding the elementary stream to an output device (not shown) connected to the outside of the receiving device 410 (S409).

続いて、図9を参照して、本実施の形態にかかるメカニズム及び効果について説明する。図9は、時間軸上においてMPEG2−TSパケットの受信タイミングと、それらのMPEG2−TSパケットから得られるピクチャとの関係を示す図である。   Next, the mechanism and effect according to the present embodiment will be described with reference to FIG. FIG. 9 is a diagram showing the relationship between the reception timing of MPEG2-TS packets on the time axis and pictures obtained from those MPEG2-TS packets.

図9は、チャンネル切り替え後のストリームに含まれるMPEG2−TSパケット704〜733の受信が、時刻700から開始される様子を示している。最初にMPEG2−TSパケット704受信される。その後は、MPEG2−TSパケット705〜633が順次受信される。   FIG. 9 shows that reception of MPEG2-TS packets 704 to 733 included in the stream after channel switching is started from time 700. First, an MPEG2-TS packet 704 is received. Thereafter, MPEG2-TS packets 705 to 633 are sequentially received.

図9では、MPEG2−TSパケット710、713、714、719、727、729のそれぞれは、オーディオTSパケットを示し、MPEG2−TSパケット709、716、725のそれぞれは、ECMパケットを示す。それら以外のMPEG2−TSパケットのそれぞれは、ビデオTSパケットを示す。   In FIG. 9, MPEG2-TS packets 710, 713, 714, 719, 727, and 729 each indicate an audio TS packet, and MPEG2-TS packets 709, 716, and 725 each indicate an ECM packet. Each of the other MPEG2-TS packets represents a video TS packet.

各ビデオTSパケットを受信することによって、ピクチャ733〜741に示す各種ピクチャを得ることができる。各種ピクチャは、複数のMPEG2−TSパケットにより構成される。   By receiving each video TS packet, various pictures shown in pictures 733 to 741 can be obtained. Various pictures are composed of a plurality of MPEG2-TS packets.

具体的には、図9に示すMPEG2−TSストリームには、ピクチャとして、MPEG2−TSパケット703、704により構成されるBピクチャ733と、MPEG2−TSパケット708、711により構成されるBピクチャ735と、MPEG2−TSパケット712、715により構成されるBピクチャ737と、MPEG2−TSパケット723、724により構成されるBピクチャ739と、MPEG2−TSパケット726、728により構成されるBピクチャ740と、MPEG2−TSパケット705、706、707により構成されるIピクチャ734と、MPEG2−TSパケット720、721、722により構成されるIピクチャ738と、MPEG2−TSパケット717、718により構成されるPピクチャ737と、MPEG2−TSパケット730、731、732により構成されるPピクチャ741と、が含まれている。   Specifically, the MPEG2-TS stream shown in FIG. 9 includes, as pictures, a B picture 733 composed of MPEG2-TS packets 703 and 704, and a B picture 735 composed of MPEG2-TS packets 708 and 711. B picture 737 composed of MPEG2-TS packets 712 and 715, B picture 739 composed of MPEG2-TS packets 723 and 724, B picture 740 composed of MPEG2-TS packets 726 and 728, and MPEG2 -An I picture 734 composed of TS packets 705, 706, 707, an I picture 738 composed of MPEG2-TS packets 720, 721, 722, and a P picture composed of MPEG2-TS packets 717, 718 And 737, a P-picture 741 constituted by MPEG2-TS packets 730,731,732, are included.

チャンネル切り替え後、ストリームの受信を開始した時刻700で、MPEG2−TSパケット704を得る。MPEG2−TSパケット704は、Bピクチャ733を構成するパケットであるが、受信開始時刻700では、MPEG2−TSパケット703を受信することができないため、Bピクチャ733は得ることができない。   After channel switching, MPEG2-TS packet 704 is obtained at time 700 when reception of the stream is started. The MPEG2-TS packet 704 is a packet that constitutes the B picture 733. However, since the MPEG2-TS packet 703 cannot be received at the reception start time 700, the B picture 733 cannot be obtained.

時刻701で、Iピクチャ734を構成するMPEG2−TSパケット705、706、707が全て受信される。ステップS401において、制御CPU部414は、MPEG2−TSパケット705のアダプテーション・フィールドF3を解析して、ステップS402においてリセットフラグF6を得る。また、ステップS306において、TSデコーダ部415は、Iピクチャ734が含まれるMPEG2−TSパケットをエレメンタリストリームに変換する。   At time 701, all MPEG2-TS packets 705, 706, and 707 constituting the I picture 734 are received. In step S401, the control CPU 414 analyzes the adaptation field F3 of the MPEG2-TS packet 705, and obtains a reset flag F6 in step S402. In step S306, the TS decoder unit 415 converts the MPEG2-TS packet including the I picture 734 into an elementary stream.

ステップS403において、AVデコーダ部416は、リセットフラグF6が"1"であるか、又は"0"であるかの判定を行う。ステップS203、S204、S205の処理によって、Iピクチャ734を構成するMPEG2−TSパケット705、706、707には、リセットフラグF6に"1"が格納されている。そのため、処理はステップS404に進み、AVデコーダ部416は、初期値管理部417から初期値を読み出してバッファ39に格納する。そして、ステップS405において、デスクランブラ38は、バッファ39に格納された初期値をデスクランブル鍵として、Iピクチャ734が格納されるエレメンタリストリームをデスクランブルすることにより、時刻701でデスクランブルされたIピクチャ734を得ることができる(S406)。   In step S403, the AV decoder unit 416 determines whether the reset flag F6 is “1” or “0”. In the processes of steps S203, S204, and S205, “1” is stored in the reset flag F6 in the MPEG2-TS packets 705, 706, and 707 constituting the I picture 734. Therefore, the process proceeds to step S404, and the AV decoder unit 416 reads the initial value from the initial value management unit 417 and stores it in the buffer 39. In step S405, the descrambler 38 descrambles the elementary stream in which the I picture 734 is stored by using the initial value stored in the buffer 39 as a descrambling key, thereby descrambling the I descrambled at time 701. A picture 734 can be obtained (S406).

また、ステップS407及びS408において、ハッシュ生成器310は、時刻701で得られたIピクチャ734からハッシュを生成し、生成されたハッシュをバッファ39に格納する。   In steps S407 and S408, the hash generator 310 generates a hash from the I picture 734 obtained at time 701, and stores the generated hash in the buffer 39.

時刻701以降は、時刻702にてIピクチャ738を検出するまでに得られるMPEG2−TSパケットのアダプテーション・フィールドには"0"が格納されたリセットフラグF6しか得ることがない。そのため、Bピクチャ735が格納されたエレメンタリストリームをデスクランブルする際は、ステップS408にてバッファ39に格納されたIピクチャ734のハッシュを用いてデスクランブルされる。同様に、Bピクチャ736が格納されたエレメンタリストリームは、ステップS408にてバッファ39に格納されたBピクチャ735のハッシュを用いてデスクランブルされ、Pピクチャ737が格納されたエレメンタリストリームは、ステップS408にてバッファ39に格納されたBピクチャ736のハッシュを用いてデスクランブルされる。   After time 701, only the reset flag F6 in which “0” is stored in the adaptation field of the MPEG2-TS packet obtained until the I picture 738 is detected at time 702 can be obtained. Therefore, when the elementary stream storing the B picture 735 is descrambled, it is descrambled using the hash of the I picture 734 stored in the buffer 39 in step S408. Similarly, the elementary stream storing the B picture 736 is descrambled using the hash of the B picture 735 stored in the buffer 39 in step S408, and the elementary stream storing the P picture 737 is In S408, the data is descrambled using the hash of the B picture 736 stored in the buffer 39.

以上より、本実施の形態では、正常な画像を出力することができる時刻を、図14に示す時刻603に対応する時刻702から、時刻701にまで短縮することが可能となる。つまり、本実施の形態では、ECMを受信する前に受信したIピクチャであってもデスクランブルすることができ、正常な画像を得ることができる。よって、ECMを受信した後に到着するIピクチャを待たなくても良いため、特許文献1に開示の技術と比較して、チャンネル切り替え時間を短縮することができるという効果を奏する。   As described above, in this embodiment, the time at which a normal image can be output can be shortened from time 702 corresponding to time 603 shown in FIG. 14 to time 701. That is, in this embodiment, even an I picture received before receiving an ECM can be descrambled and a normal image can be obtained. Therefore, since it is not necessary to wait for an I picture that arrives after receiving the ECM, the channel switching time can be shortened compared to the technique disclosed in Patent Document 1.

以上に説明したように、本実施の形態では、予め用意されたIピクチャのデスクランブル鍵によって、Iピクチャをデスクランブルするようにしている。そして、Iピクチャに基づいて、Iピクチャを参照するピクチャのデスクランブル鍵を生成して、生成したデスクランブル鍵によって、Iピクチャを参照するピクチャをデスクランブルする。   As described above, in the present embodiment, the I picture is descrambled by using the I picture descrambling key prepared in advance. Then, based on the I picture, a descrambling key for the picture that refers to the I picture is generated, and the picture that refers to the I picture is descrambled using the generated descrambling key.

これによれば、例えば、ECMのような他のデータの受信タイミングに関係なく、Iピクチャを受信した時点から、正常な画像を出力することができる。そのため、本実施の形態によれば、チャンネル切り替え時間を短縮することができる。   According to this, for example, a normal image can be output from the time when the I picture is received regardless of the reception timing of other data such as ECM. Therefore, according to the present embodiment, the channel switching time can be shortened.

なお、本発明は上記実施の形態に限られたものではなく、趣旨を逸脱しない範囲で適宜変更することが可能である。   Note that the present invention is not limited to the above-described embodiment, and can be changed as appropriate without departing from the spirit of the present invention.

上述した本実施の形態では、送信装置41をデジタル放送送信装置に適用し、受信装置410をデジタルテレビ受像機に適用した場合について例示したが、これに限られない。例えば、送信装置41を、生成したMPEG2−TSストリームを外部記憶媒体に格納するレコーダに適用し、受信装置410を、外部記憶媒体に格納されたMPEG2−TSストリームを再生するプレーヤに適用するようにしてもよい。   In the above-described embodiment, the case where the transmission apparatus 41 is applied to a digital broadcast transmission apparatus and the reception apparatus 410 is applied to a digital television receiver is illustrated, but the present invention is not limited to this. For example, the transmission device 41 is applied to a recorder that stores the generated MPEG2-TS stream in an external storage medium, and the reception device 410 is applied to a player that reproduces the MPEG2-TS stream stored in the external storage medium. May be.

上述した本実施の形態では、ビデオデコーダ23及びビデオデコーダ37が生成したピクチャデータに基づいて、ハッシュを生成する場合について例示したが、これに限られない。ピクチャデータにデコードする前のエレメンタリストリームに基づいて、ハッシュを生成するようにしてもよい。   In the above-described embodiment, the case where the hash is generated based on the picture data generated by the video decoder 23 and the video decoder 37 is illustrated, but the present invention is not limited thereto. A hash may be generated based on an elementary stream before being decoded into picture data.

11 鍵管理装置
12 Kw暗号化部
13、45 TS多重化部
14 Ks暗号化部
15、26 スクランブラ
16、42 コンテンツ生成部
17 TSエンコーダ
18、47 64QAM変調部
19、49 伝送路
22 ビデオエンコーダ
23、37 ビデオデコーダ
24、310 ハッシュ生成器
25、39 バッファ
27 TS処理部
38、114 デスクランブラ
41、128 送信装置
43 TSエンコーダ部
44、417 初期値管理部
46、125 多重情報生成部
48、126 周波数多重部
110、410 受信装置
111、412 64QAM復調部
112、413 TS分離部
113 制御CPU
115 特殊鍵復号モジュール
116 汎用鍵復号モジュール
117、120 個別鍵Kmi
118、121 Kw復号化部
119、122 Ks復号化部
123 TSデコーダ
124 AVデコーダ
127、411 周波数分離部
128、410 送信装置
200 ビデオES
201 オーディオES
202、203 ビデオPES
204、205 オーディオPES
206、207、208、209 ビデオTSパケット
210、211、212、213 オーディオTSパケット
214 MPEG2−TSストリーム
215、216、217、218 ECMパケット
219 ECM
300、301、303、305、306、634、636、637、640、641、733、735、736、739、740 Bピクチャ
302、635、639、734、738 Iピクチャ
304、307、638、642、737、741 Pピクチャ
414 制御CPU部
415 TSデコーダ部
416 AVデコーダ部
F1 MPEG2−TSパケット
F2 TSヘッダ
F3 アダプテーション・フィールド
F4 データ・バイト
F6 リセットフラグ
11 Key management device 12 Kw encryption unit 13, 45 TS multiplexing unit 14 Ks encryption unit 15, 26 Scrambler 16, 42 Content generation unit 17 TS encoder 18, 47 64QAM modulation unit 19, 49 Transmission path 22 Video encoder 23 37 Video decoder 24, 310 Hash generator 25, 39 Buffer 27 TS processing unit 38, 114 Descrambler 41, 128 Transmitting device 43 TS encoder unit 44, 417 Initial value management unit 46, 125 Multiplex information generation unit 48, 126 Frequency Multiplexer 110, 410 Receiver 111, 412, 64QAM demodulator 112, 413 TS separator 113 Control CPU
115 Special key decryption module 116 General-purpose key decryption modules 117 and 120 Individual key Kmi
118, 121 Kw decoding unit 119, 122 Ks decoding unit 123 TS decoder 124 AV decoder 127, 411 Frequency separation unit 128, 410 Transmission device 200 Video ES
201 Audio ES
202, 203 Video PES
204, 205 Audio PES
206, 207, 208, 209 Video TS packet 210, 211, 212, 213 Audio TS packet 214 MPEG2-TS stream 215, 216, 217, 218 ECM packet 219 ECM
300, 301, 303, 305, 306, 634, 636, 637, 640, 641, 733, 735, 736, 739, 740 B picture 302, 635, 639, 734, 738 I picture 304, 307, 638, 642, 737, 741 P picture 414 Control CPU unit 415 TS decoder unit 416 AV decoder unit F1 MPEG2-TS packet F2 TS header F3 Adaptation field F4 Data byte F6 Reset flag

Claims (18)

Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータを復号する復号化装置であって、
前記Iピクチャに基づいて、当該Iピクチャを参照するピクチャのデスクランブル鍵を生成する鍵生成部と、
予め用意された前記Iピクチャのデスクランブル鍵によって、前記Iピクチャをデスクランブルするとともに、前記鍵生成部によって生成されたデスクランブル鍵によって、当該Iピクチャを参照するピクチャをデスクランブルするデスクランブラと、
を備えた復号化装置。
A decoding device for decoding stream data including an I picture and a B picture and a P picture that refer to the I picture, respectively,
A key generation unit that generates a descrambling key of a picture that refers to the I picture based on the I picture;
A descrambler that descrambles the I picture with a descrambling key of the I picture prepared in advance and descrambles a picture that references the I picture with a descrambling key generated by the key generation unit;
A decoding apparatus comprising:
前記鍵生成部は、前記Iピクチャに続く第1のピクチャについて、前記Iピクチャに基づいて、前記デスクランブル鍵を生成するものであって、前記Iピクチャを参照する、前記第1のピクチャよりも後の第2のピクチャについては、当該第2のピクチャよりも前の前記第1のピクチャ又は前記第2のピクチャに基づいて、デスクランブル鍵を生成する、
請求項1に記載の復号化装置。
The key generation unit generates the descrambling key for the first picture following the I picture based on the I picture, and refers to the I picture than the first picture. For the subsequent second picture, a descrambling key is generated based on the first picture or the second picture before the second picture.
The decoding device according to claim 1.
前記鍵生成部は、前記第2のピクチャのデスクランブル鍵を、当該第2のピクチャの1つ前の前記第1のピクチャ又は前記第2のピクチャに基づいて生成する、
請求項2に記載の復号化装置。
The key generation unit generates a descrambling key of the second picture based on the first picture or the second picture immediately before the second picture;
The decoding device according to claim 2.
前記鍵生成部は、前記ピクチャのハッシュ値を生成し、生成したハッシュ値に基づいて、前記デスクランブル鍵を生成する、
請求項1乃至3のいずれか1項に記載の復号化装置。
The key generation unit generates a hash value of the picture, and generates the descrambling key based on the generated hash value;
The decoding device according to any one of claims 1 to 3.
前記復号化装置は、前記デスクランブラによってデスクランブルされたピクチャを復号する復号部を備え、
前記鍵生成部は、前記復号部によって復号されたピクチャに基づいて、前記デスクランブル鍵を生成する、
請求項1乃至4のいずれか1項に記載の復号化装置。
The decoding apparatus includes a decoding unit that decodes a picture descrambled by the descrambler,
The key generation unit generates the descrambling key based on the picture decrypted by the decryption unit;
The decoding device according to any one of claims 1 to 4.
動画像データを符号化して、Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータを生成する符号化装置であって、
前記Iピクチャに基づいて、前記Iピクチャを参照するピクチャのスクランブル鍵を生成する鍵生成部と、
予め用意された前記Iピクチャのスクランブル鍵によって、前記Iピクチャをスクランブルするとともに、前記鍵生成部によって生成されたスクランブル鍵によって、前記Iピクチャを参照するピクチャをスクランブルするスクランブラと、
を備えた符号化装置。
An encoding device that encodes moving image data to generate stream data including an I picture and B and P pictures that respectively refer to the I picture.
A key generation unit that generates a scramble key of a picture that refers to the I picture based on the I picture;
A scrambler that scrambles the I picture with a scramble key of the I picture prepared in advance, and scrambles a picture that refers to the I picture with a scramble key generated by the key generation unit;
An encoding device comprising:
前記鍵生成部は、前記Iピクチャに続く第1のピクチャについて、前記Iピクチャに基づいて、前記スクランブル鍵を生成するものであって、前記Iピクチャを参照する、前記第1のピクチャよりも後の第2のピクチャについては、当該第2のピクチャよりも前の前記第1のピクチャ又は前記第2のピクチャに基づいて、スクランブル鍵を生成する、
請求項6に記載の符号化装置。
The key generation unit generates the scramble key based on the I picture for the first picture following the I picture, and refers to the I picture and is subsequent to the first picture. For the second picture, a scramble key is generated based on the first picture or the second picture before the second picture.
The encoding device according to claim 6.
前記鍵生成部は、前記第2のピクチャのスクランブル鍵を、当該第2のピクチャの1つ前の前記第1のピクチャ又は前記第2のピクチャに基づいて生成する、
請求項7に記載の符号化装置。
The key generation unit generates a scramble key for the second picture based on the first picture or the second picture immediately before the second picture;
The encoding device according to claim 7.
前記鍵生成部は、前記ピクチャのハッシュ値を生成し、生成したハッシュ値に基づいて、前記スクランブル鍵を生成する、
請求項6乃至8のいずれか1項に記載の符号化装置。
The key generation unit generates a hash value of the picture, and generates the scramble key based on the generated hash value.
The encoding device according to any one of claims 6 to 8.
前記符号化装置は、前記スクランブラによってスクランブルされる前のピクチャを復号する復号部を備え、
前記鍵生成部は、前記復号部によって復号されたピクチャに基づいて、前記スクランブル鍵を生成する、
請求項6乃至9のいずれか1項に記載の符号化装置。
The encoding device includes a decoding unit that decodes a picture before being scrambled by the scrambler,
The key generation unit generates the scramble key based on the picture decoded by the decoding unit;
The encoding device according to any one of claims 6 to 9.
動画像データを符号化して、Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータを生成する符号化装置と、前記符号化装置によって生成されたストリームデータを復号する復号化装置と、を備えた符号化復号化システムであって、
前記符号化装置は、
前記Iピクチャに基づいて、前記Iピクチャを参照するピクチャのスクランブル鍵を生成するスクランブル鍵生成部と、
予め用意された前記Iピクチャのスクランブル鍵によって、前記Iピクチャをスクランブルするとともに、前記スクランブル鍵生成部によって生成されたスクランブル鍵によって、前記Iピクチャを参照するピクチャをスクランブルするスクランブラと、を有し、
前記復号化装置は、
前記Iピクチャに基づいて、前記スクランブル鍵と同一のデスクランブル鍵を生成するデスクランブル鍵生成部と、
予め用意された前記Iピクチャのスクランブル鍵と同一のデスクランブル鍵によって、前記Iピクチャをデスクランブルするとともに、前記デスクランブル鍵生成部によって生成されたデスクランブル鍵によって、前記Iピクチャを参照するピクチャをデスクランブルするデスクランブラと、を有する、
符号化復号化システム。
An encoding device that encodes moving image data and generates scrambled stream data including an I picture and a B picture and a P picture that respectively refer to the I picture, and the encoding device A decoding apparatus comprising: a decoding device that decodes stream data;
The encoding device includes:
A scramble key generation unit that generates a scramble key of a picture that refers to the I picture based on the I picture;
A scrambler that scrambles the I picture with a scramble key of the I picture prepared in advance and scrambles a picture that refers to the I picture with a scramble key generated by the scramble key generation unit. ,
The decoding device
A descrambling key generation unit that generates the same descrambling key as the scramble key based on the I picture;
The I picture is descrambled with the same descramble key as the scramble key of the I picture prepared in advance, and a picture that refers to the I picture with the descramble key generated by the descramble key generation unit A descrambler for descrambling,
Encoding / decoding system.
Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータをデスクランブルするデスクランブラであって、
予め用意された前記Iピクチャのデスクランブル鍵によって、前記Iピクチャをデスクランブルするとともに、前記Iピクチャに基づいて生成されたデスクランブル鍵によって、前記Iピクチャを参照するピクチャをデスクランブルする、
デスクランブラ。
A descrambler that descrambles stream data including scrambled I pictures and B pictures and P pictures that respectively refer to the I pictures,
Descrambling the I picture with a descrambling key of the I picture prepared in advance, and descrambling a picture referring to the I picture with a descrambling key generated based on the I picture;
Descrambler.
Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、をスクランブルするスクランブラであって、
予め用意された前記Iピクチャのスクランブル鍵によって、前記Iピクチャをスクランブルするとともに、前記Iピクチャに基づいて生成されたスクランブル鍵によって、前記Iピクチャを参照するピクチャをスクランブルする、
スクランブラ。
A scrambler that scrambles an I picture and a B picture and a P picture that respectively refer to the I picture,
The I picture is scrambled with a scramble key of the I picture prepared in advance, and a picture that refers to the I picture is scrambled with a scramble key generated based on the I picture.
Scrambler.
Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータを復号する復号化方法であって、
予め用意された前記Iピクチャのデスクランブル鍵によって、前記Iピクチャをデスクランブルし、
前記Iピクチャに基づいて、当該Iピクチャを参照するピクチャのデスクランブル鍵を生成し、
前記生成されたデスクランブル鍵によって、当該Iピクチャを参照するピクチャをデスクランブルする、
復号化方法。
A decoding method for decoding stream data including scrambled I pictures and B pictures and P pictures that respectively refer to the I pictures,
The I picture is descrambled with a previously prepared I picture descramble key,
Based on the I picture, a descrambling key for a picture that refers to the I picture is generated,
Using the generated descrambling key, descrambling a picture referring to the I picture;
Decryption method.
動画像データを符号化して、Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータを生成する符号化方法であって、
予め用意された前記Iピクチャのスクランブル鍵によって、前記Iピクチャをスクランブルし、
前記Iピクチャに基づいて、前記Iピクチャを参照するピクチャのスクランブル鍵を生成し、
前記生成されたスクランブル鍵によって、前記Iピクチャを参照するピクチャをスクランブルする、
符号化方法。
An encoding method for encoding moving image data and generating stream data including scrambled I pictures and B pictures and P pictures respectively referring to the I pictures,
The I picture is scrambled by a scramble key of the I picture prepared in advance,
Based on the I picture, generate a scramble key for a picture that references the I picture,
Scramble a picture that references the I picture with the generated scramble key;
Encoding method.
動画像データを符号化して、Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータを生成して、生成したストリームデータを復号する符号化復号化方法であって、
予め用意された前記Iピクチャのスクランブル鍵によって、前記Iピクチャをスクランブルし、
前記Iピクチャに基づいて、前記Iピクチャを参照するピクチャのスクランブル鍵を生成し、
前記生成されたスクランブル鍵によって、前記Iピクチャを参照するピクチャをスクランブルし、
予め用意された前記Iピクチャのスクランブル鍵と同一のデスクランブル鍵によって、前記Iピクチャをデスクランブルし、
前記Iピクチャに基づいて、前記スクランブル鍵と同一のデスクランブル鍵を生成し、
前記生成されたデスクランブル鍵によって、前記Iピクチャを参照するピクチャをデスクランブルする、
符号化復号化方法。
Coding and decoding that encodes moving image data, generates stream data including an I picture and B and P pictures that respectively refer to the I picture, and decodes the generated stream data A method,
The I picture is scrambled by a scramble key of the I picture prepared in advance,
Based on the I picture, generate a scramble key for a picture that references the I picture,
Scramble a picture referring to the I picture with the generated scramble key;
Descramble the I picture with the same descrambling key as the scramble key of the I picture prepared in advance,
Based on the I picture, a descramble key identical to the scramble key is generated,
Using the generated descrambling key, descrambling a picture referring to the I picture;
Encoding / decoding method.
Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、がスクランブルされて含まれるストリームデータをデスクランブルするデスクランブル方法であって、
予め用意された前記Iピクチャのデスクランブル鍵によって、前記Iピクチャをデスクランブルし、
前記Iピクチャに基づいて生成されたデスクランブル鍵によって、前記Iピクチャを参照するピクチャをデスクランブルする、
デスクランブル方法。
A descrambling method for descrambling stream data including scrambled I pictures and B pictures and P pictures that respectively refer to the I pictures,
The I picture is descrambled with a previously prepared I picture descramble key,
Descrambling a picture that references the I picture with a descrambling key generated based on the I picture;
Descramble method.
Iピクチャと、それぞれ当該Iピクチャを参照するBピクチャ及びPピクチャと、をスクランブルするスクランブル方法であって、
予め用意された前記Iピクチャのスクランブル鍵によって、前記Iピクチャをスクランブルし、
前記Iピクチャに基づいて生成されたスクランブル鍵によって、前記Iピクチャを参照するピクチャをスクランブルする、
スクランブル方法。
A scrambling method for scrambling an I picture and a B picture and a P picture that respectively refer to the I picture,
The I picture is scrambled by a scramble key of the I picture prepared in advance,
Scramble a picture that references the I picture with a scramble key generated based on the I picture;
Scramble method.
JP2011119143A 2011-05-27 2011-05-27 Decoder, encoder, encoding/decoding system, descrambler, scrambler, and method of them Withdrawn JP2012249073A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011119143A JP2012249073A (en) 2011-05-27 2011-05-27 Decoder, encoder, encoding/decoding system, descrambler, scrambler, and method of them

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011119143A JP2012249073A (en) 2011-05-27 2011-05-27 Decoder, encoder, encoding/decoding system, descrambler, scrambler, and method of them

Publications (1)

Publication Number Publication Date
JP2012249073A true JP2012249073A (en) 2012-12-13

Family

ID=47469108

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011119143A Withdrawn JP2012249073A (en) 2011-05-27 2011-05-27 Decoder, encoder, encoding/decoding system, descrambler, scrambler, and method of them

Country Status (1)

Country Link
JP (1) JP2012249073A (en)

Similar Documents

Publication Publication Date Title
US9980014B2 (en) Methods, information providing system, and reception apparatus for protecting content
AU2007200636B2 (en) Method and system providing scrambled content
US9078021B2 (en) Information processing apparatus, content transmission method and storage medium
US10044508B2 (en) Embedding digital watermark at the receiver end to keep track of digital content source and intended legal subscriber
JP6841354B2 (en) Reception method and transmission method
US10779052B2 (en) Receiving apparatus, receiving method, transmitting apparatus, and transmitting method
JP2020053887A (en) Broadcasting system, receiver, transmitter, control method, and program
EP2974331B1 (en) Systems and methods for assembling and extracting command and control data
EP3473009B1 (en) Methods, devices and system for generating a watermarked stream
JP5113955B1 (en) Digital broadcast receiving apparatus and program thereof
KR100700301B1 (en) Transmission system
KR20060040583A (en) Method of partially scrambling a data stream
US20180181724A1 (en) Method for providing protected multimedia content
JP5901438B2 (en) DIGITAL BROADCAST RECEIVING DEVICE, ITS PROGRAM, AND DIGITAL BROADCAST TRANSMITTING DEVICE
JP2012249073A (en) Decoder, encoder, encoding/decoding system, descrambler, scrambler, and method of them
JP6009946B2 (en) Information processing apparatus, content transfer method, and program
JP2022136001A (en) Broadcast transmission device and relay device
JP2005341219A (en) Video image providing system and scramble method
JP2008072250A (en) Content making device
JP2010016887A (en) License information transmission apparatus, license information transmission program, license information transmission method and license information receiver, license information reception program, and license information reception method
JP2015073269A (en) Transmitter, receiver and conditional access system
JP2007288558A (en) Stream receiver

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140805