forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1257777 - Part 1: AIDL interfaces for remote codec and manager se…
…rvice binders. r=nalexander MozReview-Commit-ID: DAaJyWcyC0c --HG-- extra : rebase_source : 95b82faa20a98801f6aaba424b263e8515f425fc
- Loading branch information
Showing
8 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
mobile/android/base/aidl/org/mozilla/gecko/media/FormatParam.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
package org.mozilla.gecko.media; | ||
|
||
parcelable FormatParam; |
23 changes: 23 additions & 0 deletions
23
mobile/android/base/aidl/org/mozilla/gecko/media/ICodec.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
package org.mozilla.gecko.media; | ||
|
||
// Non-default types used in interface. | ||
import android.os.Bundle; | ||
import android.view.Surface; | ||
import org.mozilla.gecko.media.FormatParam; | ||
import org.mozilla.gecko.media.ICodecCallbacks; | ||
import org.mozilla.gecko.media.Sample; | ||
|
||
interface ICodec { | ||
void setCallbacks(in ICodecCallbacks callbacks); | ||
boolean configure(in FormatParam format, inout Surface surface, int flags); | ||
oneway void start(); | ||
oneway void stop(); | ||
oneway void flush(); | ||
oneway void release(); | ||
|
||
oneway void queueInput(in Sample sample); | ||
} |
16 changes: 16 additions & 0 deletions
16
mobile/android/base/aidl/org/mozilla/gecko/media/ICodecCallbacks.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
package org.mozilla.gecko.media; | ||
|
||
// Non-default types used in interface. | ||
import org.mozilla.gecko.media.FormatParam; | ||
import org.mozilla.gecko.media.Sample; | ||
|
||
interface ICodecCallbacks { | ||
oneway void onInputExhausted(); | ||
oneway void onOutputFormatChanged(in FormatParam format); | ||
oneway void onOutput(in Sample sample); | ||
oneway void onError(boolean fatal); | ||
} |
13 changes: 13 additions & 0 deletions
13
mobile/android/base/aidl/org/mozilla/gecko/media/ICodecManager.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
package org.mozilla.gecko.media; | ||
|
||
// Non-default types used in interface. | ||
import org.mozilla.gecko.media.ICodec; | ||
|
||
interface ICodecManager { | ||
/** Creates a remote ICodec object. */ | ||
ICodec createCodec(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
package org.mozilla.gecko.media; | ||
|
||
parcelable Sample; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters