RDK Documentation (Open Sourced RDK Components)
AampDRMutils.h File Reference

Context-free common utility functions. More...

#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <sstream>
#include "AampDrmMediaFormat.h"
#include "AampDrmData.h"
#include "AampDrmInfo.h"
#include "AampDrmSystems.h"
#include "AampUtils.h"
Include dependency graph for AampDRMutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DRM_API_SUCCESS   (0)
 Macros to track the value of API success or failure.
 
#define DRM_API_FAILED   (-1)
 
#define DRM_METADATA_TAG_START   "<ckm:policy xmlns:ckm=\"urn:ccp:ckm\">"
 start and end tags for DRM policy
 
#define DRM_METADATA_TAG_END   "</ckm:policy>"
 

Functions

void aamp_ConvertEndianness (unsigned char *original, unsigned char *guidBytes)
 Convert endianness of 16 byte block. More...
 
unsigned char * aamp_ExtractDataFromPssh (const char *psshData, int dataLength, const char *startStr, const char *endStr, int *len, const char *verStr)
 
std::string aamp_ExtractWVContentMetadataFromPssh (const char *psshData, int dataLength)
 Extract WideVine content meta data from DRM Agnostic PSSH header. Might not work with WideVine PSSH header. More...
 
unsigned char * aamp_ExtractKeyIdFromPssh (const char *psshData, int dataLength, int *len, DRMSystems drmSystem)
 

yes

Context-free common utility functions.

Data structures to help with DRM sessions.

Definition in file AampDRMutils.h.

Function Documentation

◆ aamp_ConvertEndianness()

void aamp_ConvertEndianness ( unsigned char *  original,
unsigned char *  guidBytes 
)

Convert endianness of 16 byte block.

Parameters
[in]original- Pointer to source byte block.
[out]guidBytes- Pointer to destination byte block.
Returns
void.

Definition at line 134 of file AampDRMutils.cpp.

◆ aamp_ExtractWVContentMetadataFromPssh()

std::string aamp_ExtractWVContentMetadataFromPssh ( const char *  psshData,
int  dataLength 
)

Extract WideVine content meta data from DRM Agnostic PSSH header. Might not work with WideVine PSSH header.

Definition at line 148 of file AampDRMutils.cpp.