Commit 6b4918fa by vigneshv Committed by Oliver Woodman

vp9: Expose libvpx build configuration

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=127216536
parent acef34a6
...@@ -131,6 +131,13 @@ public final class LibvpxVideoRenderer extends Renderer { ...@@ -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;
......
...@@ -52,6 +52,11 @@ import java.nio.ByteBuffer; ...@@ -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;
......
...@@ -170,6 +170,10 @@ FUNC(jstring, getLibvpxVersion) { ...@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment