⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 drm_adpapi.h

📁 SAMSUNG 5009的源代码
💻 H
字号:
/*
// $Header: /Mux_Demux_SDK/libDrmDecrypt/src/DrmAdpApi.h 10    8/29/03 10:56a Quita $
// Copyright (c) DivXNetworks, Inc. http://www.divxnetworks.com
// All rights reserved.
//
// This software is the confidential and proprietary information of DivXNetworks
// Inc. ("Confidential Information").  You shall not disclose such Confidential
// Information and shall use it only in accordance with the terms of the license
// agreement you entered into with DivXNetworks, Inc.
*/

/*
These functions are the top level interface to the Authorized Disconnected Playback (ADP)
Digital Rights Management (DRM) capabilities.  The names correspond to the  DivX
Authorized Disconnected Playback document and the user interface flow.
*/

#ifndef DRMADPAPI_H_INCLUDE
#define DRMADPAPI_H_INCLUDE


#define DRM_CONTEXT_SIZE_BYTES			2226
#define DRM_REGISTRATION_CODE_BYTES		9
#define DRM_HEADER_SIZE_BYTES			2224

#ifdef __cplusplus
extern "C" {
#endif

/* Random number functions. */
void drmSetRandomSample(void); /* Call this at least 3 times from user input before
                              call to drmGetRegistrationCode or drmInitPlayback. */
UINT drmGetRandomSampleCounter(void); /* Can be useful for making sure you have
                                         enough random samples. */

/* Owner Registration Function. */
UCHAR drmGetRegistrationCodeString(char *registrationCodeString);

/* Playback functions. */
UCHAR drmInitPlaybackContext(UCHAR *drmHeaderFromFile, UCHAR *drmContext);
UCHAR drmQueryRentalStatus(UCHAR *drmContext, UCHAR *useLimit,
							 UCHAR *useCount);  /* useLimit and useCount are out
													 parameters. */
UCHAR drmCommitPlayback(UCHAR *drmContext);
UCHAR drmDecryptFrame(UCHAR *drmContext, UCHAR *frame, UINT frameSize, 
						UCHAR *drmFrameInfo);


#ifdef __cplusplus
};
#endif

#endif //DRMADPAPI_H_INCLUDE

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -