PMediaDecoderParams.ipdlh (808B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 include "mozilla/dom/MediaIPCUtils.h"; 6 7 using mozilla::media::TimeUnit from "TimeUnits.h"; 8 using mozilla::CryptoScheme from "MediaData.h"; 9 10 namespace mozilla { 11 12 // used for both SendInput/RecvInput and ProcessDecodedData/RecvOutput 13 struct MediaDataIPDL 14 { 15 int64_t offset; 16 TimeUnit time; 17 TimeUnit timecode; 18 TimeUnit duration; 19 bool keyframe; 20 }; 21 22 struct CryptoInfo { 23 CryptoScheme mEncryptionScheme; 24 uint8_t[] mIV; 25 uint8_t[] mConstantIV; 26 uint8_t[] mKeyId; 27 uint32_t[] mClearBytes; 28 uint32_t[] mCipherBytes; 29 uint8_t mCryptByteBlock; 30 uint8_t mSkipByteBlock; 31 }; 32 33 } // namespace mozilla