Wasabi ExpressPlay SDK for Embedded Systems  1.10
Ts2Processors.h
Go to the documentation of this file.
1 /*****************************************************************
2 |
3 | MPEG2 Transport Stream - Processors
4 |
5 | $Id: Ts2Processors.h 296 2014-06-25 11:20:09Z jebaseelir $
6 | Original author: Laurent Grandhomme
7 |
8 | This software is provided to you pursuant to your agreement
9 | with Intertrust Technologies Corporation ("Intertrust").
10 | This software may be used only in accordance with the terms
11 | of the agreement.
12 |
13 | Copyright (c) 2005-2014 by Intertrust. All rights reserved.
14 |
15 ****************************************************************/
16 
17 #ifndef _TS2_PROCESSORS_H_
18 #define _TS2_PROCESSORS_H_
19 
20 /*----------------------------------------------------------------------
21 | includes
22 +---------------------------------------------------------------------*/
23 #include "Atomix.h"
24 #include "Ts2Protection.h"
25 #include "Ts2Config.h"
26 
27 /*----------------------------------------------------------------------
28 | types
29 +---------------------------------------------------------------------*/
40 
41 /*----------------------------------------------------------------------
42 | methods
43 +---------------------------------------------------------------------*/
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
49 /*----------------------------------------------------------------------
50 | TS2_BbtsBufferEncrypter
51 +---------------------------------------------------------------------*/
81 TS2_EXPORT ATX_Result
82 TS2_BbtsBufferEncrypter_Create(const char* content_id,
83  const ATX_Byte* content_key,
84  const ATX_Byte* common_iv,
85  TS2_TrafficProtectionSystem protection,
86  ATX_UInt32 crypto_period,
87  const char* rights_issuer_url,
88  const char* silent_rights_url,
89  const char* preview_rights_url,
90  ATX_Boolean skip_payload_unit_start,
91  ATX_Boolean single_key_layer,
92  const ATX_Byte* access_criteria,
93  ATX_Size access_criteria_size,
94  TS2_BbtsBufferEncrypter** encrypter);
95 
110 TS2_EXPORT ATX_Result
112  const ATX_Byte* in,
113  ATX_Size in_size,
114  ATX_DataBuffer* out);
115 
125 TS2_EXPORT ATX_Result
127  const char* content_id,
128  const ATX_Byte* content_key);
129 
150 TS2_EXPORT ATX_Result
152  const char* content_id,
153  const ATX_Byte* content_key,
154  const ATX_Byte* access_criteria,
155  ATX_Size access_criteria_size);
156 
157 
163 TS2_EXPORT ATX_Result
165 
166 /*----------------------------------------------------------------------
167 | TS2_BbtsBufferDecrypter
168 +---------------------------------------------------------------------*/
182 TS2_EXPORT ATX_Result
184  TS2_BbtsBufferDecrypter** decrypter);
185 
200 TS2_EXPORT ATX_Result
202  const ATX_Byte* in,
203  ATX_Size in_size,
204  ATX_DataBuffer* out);
205 
210 TS2_EXPORT ATX_Result
212 
213 #ifdef __cplusplus
214 }
215 #endif
216 
217 #endif /* _TS2_PROCESSORS_H_ */