Android development of the widevine CDM has been done on the jb-mr2 branch of the cdm code base. This CL contains a merge of that jb-mr2 work to CDM master, and also reflects the evolution of the common Modular DRM code base since jb-mr2 branched. Change-Id: I1d7e1a12d092c00044a4298261146cb97808d4ef
32 lines
799 B
C++
32 lines
799 B
C++
//
|
|
// Copyright 2013 Google Inc. All Rights Reserved.
|
|
//
|
|
|
|
#ifndef WV_ERRORS_H_
|
|
#define WV_ERRORS_H_
|
|
|
|
#include "media/stagefright/MediaErrors.h"
|
|
|
|
namespace wvdrm {
|
|
|
|
using android::ERROR_DRM_VENDOR_MIN;
|
|
using android::ERROR_DRM_VENDOR_MAX;
|
|
|
|
enum {
|
|
kErrorIncorrectBufferSize = ERROR_DRM_VENDOR_MIN,
|
|
kErrorCDMGeneric = ERROR_DRM_VENDOR_MIN + 1,
|
|
kErrorUnsupportedCrypto = ERROR_DRM_VENDOR_MIN + 2,
|
|
kErrorExpectedUnencrypted = ERROR_DRM_VENDOR_MIN + 3,
|
|
kErrorWVDrmMaxErrorUsed = ERROR_DRM_VENDOR_MIN + 3,
|
|
|
|
// Used by crypto test mode
|
|
kErrorTestMode = ERROR_DRM_VENDOR_MAX,
|
|
};
|
|
|
|
_STLP_STATIC_ASSERT(static_cast<uint32_t>(kErrorWVDrmMaxErrorUsed) <=
|
|
static_cast<uint32_t>(ERROR_DRM_VENDOR_MAX));
|
|
|
|
} // namespace wvdrm
|
|
|
|
#endif // WV_ERRORS_H_
|