vp9: Expose libvpx build configuration

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=127216536
This commit is contained in:
vigneshv 2016-07-12 10:46:41 -07:00 committed by Oliver Woodman
parent acef34a6f3
commit 6b4918fa9b
3 changed files with 16 additions and 0 deletions

View File

@ -131,6 +131,13 @@ public final class LibvpxVideoRenderer extends Renderer {
return isLibvpxAvailable() ? VpxDecoder.getLibvpxVersion() : null; return isLibvpxAvailable() ? VpxDecoder.getLibvpxVersion() : null;
} }
/**
* Returns the configuration string with which the underlying libvpx library was built.
*/
public static String getLibvpxConfig() {
return isLibvpxAvailable() ? VpxDecoder.getLibvpxConfig() : null;
}
@Override @Override
public int getTrackType() { public int getTrackType() {
return C.TRACK_TYPE_VIDEO; return C.TRACK_TYPE_VIDEO;

View File

@ -52,6 +52,11 @@ import java.nio.ByteBuffer;
*/ */
public static native String getLibvpxVersion(); public static native String getLibvpxVersion();
/**
* Returns the configuration string with which the underlying libvpx library was built.
*/
public static native String getLibvpxConfig();
private final long vpxDecContext; private final long vpxDecContext;
private volatile int outputMode; private volatile int outputMode;

View File

@ -170,6 +170,10 @@ FUNC(jstring, getLibvpxVersion) {
return env->NewStringUTF(vpx_codec_version_str()); return env->NewStringUTF(vpx_codec_version_str());
} }
FUNC(jstring, getLibvpxConfig) {
return env->NewStringUTF(vpx_codec_build_config());
}
FUNC(jstring, vpxGetErrorMessage, jlong jContext) { FUNC(jstring, vpxGetErrorMessage, jlong jContext) {
vpx_codec_ctx_t* const context = reinterpret_cast<vpx_codec_ctx_t*>(jContext); vpx_codec_ctx_t* const context = reinterpret_cast<vpx_codec_ctx_t*>(jContext);
return env->NewStringUTF(vpx_codec_error(context)); return env->NewStringUTF(vpx_codec_error(context));