-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CHG: [droid] use native interface for mediacodec #11931
Conversation
@koying is the performance gain / cpu reduction really noticable? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for me except the 2 minors.
Unfortunately this change bites completely with all the changes made in kodi-agile, what will be merged in the next time step by step into kodi master.
So question is how to proceed, any suggestion?
|
||
// clear any jni exceptions, jni gets upset if we do not. | ||
if (xbmc_jnienv()->ExceptionCheck()) | ||
m_codec = AMediaCodec_createCodecByName(m_codecname.c_str()); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
ConfigureOutputFormat(&mediaformat); | ||
AMediaFormat* mediaformat = AMediaCodec_getOutputFormat(m_codec); | ||
if (!mediaformat) | ||
CLog::Log(LOGERROR, "CDVDVideoCodecAndroidMediaCodec::GetOutputPicture(INFO_OUTPUT_FORMAT_CHANGED) ExceptionCheck: getOutputBuffers"); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@peak3d Re rebase, honestly, it's been months that we wait for agile, and > 1 week I forewarned about mediacodec changes. Do you expect me to wait for more weeks and take the rebase burden upon myself because you preferred to work on agile? |
Been waiting till our current work settled down to adapt MrMC to using the native interface for mediacodec. Indeed, this is the way forward. |
Jenkins build and merge |
Motivation and Context
Gain of performance and resource by not having to use JNI
Types of change