зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1083658
- add "output-downscaled" to GMP. r=cpearce.
This commit is contained in:
Родитель
9e63cc6042
Коммит
4d6309bd93
|
@ -182,7 +182,9 @@ ToMediaKeyStatus(GMPMediaKeyStatus aStatus) {
|
|||
switch (aStatus) {
|
||||
case kGMPUsable: return MediaKeyStatus::Usable;
|
||||
case kGMPExpired: return MediaKeyStatus::Expired;
|
||||
case kGMPOutputDownscaled: return MediaKeyStatus::Output_downscaled;
|
||||
case kGMPOutputNotAllowed: return MediaKeyStatus::Output_not_allowed;
|
||||
case kGMPInternalError: return MediaKeyStatus::Internal_error;
|
||||
default: return MediaKeyStatus::Internal_error;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Name: fake
|
||||
Description: Fake GMP Plugin
|
||||
Version: 1.0
|
||||
APIs: encode-video[h264], decode-video[h264], eme-decrypt-v5[fake]
|
||||
APIs: encode-video[h264], decode-video[h264], eme-decrypt-v6[fake]
|
||||
Libraries: dxva2.dll
|
||||
|
|
|
@ -79,9 +79,11 @@ enum GMPSessionMessageType {
|
|||
enum GMPMediaKeyStatus {
|
||||
kGMPUsable = 0,
|
||||
kGMPExpired = 1,
|
||||
kGMPOutputNotAllowed = 2,
|
||||
kGMPUnknown = 3,
|
||||
kGMPMediaKeyStatusInvalid = 4 // Must always be last.
|
||||
kGMPOutputDownscaled = 2,
|
||||
kGMPOutputNotAllowed = 3,
|
||||
kGMPInternalError = 4,
|
||||
kGMPUnknown = 5,
|
||||
kGMPMediaKeyStatusInvalid = 6 // Must always be last.
|
||||
};
|
||||
|
||||
// Time in milliseconds, as offset from epoch, 1 Jan 1970.
|
||||
|
@ -222,7 +224,7 @@ enum GMPSessionType {
|
|||
kGMPSessionInvalid = 2 // Must always be last.
|
||||
};
|
||||
|
||||
#define GMP_API_DECRYPTOR "eme-decrypt-v5"
|
||||
#define GMP_API_DECRYPTOR "eme-decrypt-v6"
|
||||
|
||||
// API exposed by plugin library to manage decryption sessions.
|
||||
// When the Host requests this by calling GMPGetAPIFunc().
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Name: clearkey
|
||||
Description: ClearKey decrypt-only GMP plugin
|
||||
Version: 0.1
|
||||
APIs: eme-decrypt-v5[org.w3.clearkey]
|
||||
APIs: eme-decrypt-v6[org.w3.clearkey]
|
||||
|
|
Загрузка…
Ссылка в новой задаче