NdkMediaCodec: implement setParameters to signal dynamic parameters
Add setParameters to communicate parameter changes when the codec
is in running state.
Bug: 32746065
Change-Id: I223041bebadedfb09848315a360b5efaae451c14
diff --git a/include/ndk/NdkMediaCodec.h b/include/ndk/NdkMediaCodec.h
index 528cd62..4cad46f 100644
--- a/include/ndk/NdkMediaCodec.h
+++ b/include/ndk/NdkMediaCodec.h
@@ -222,6 +222,16 @@
media_status_t AMediaCodec_setInputSurface(
AMediaCodec *mData, ANativeWindow *surface);
+/**
+ * Signal additional parameters to the codec instance.
+ *
+ * Parameters can be communicated only when the codec is running, i.e
+ * after AMediaCodec_start() has been called.
+ *
+ * NOTE: Some of these parameter changes may silently fail to apply.
+ */
+media_status_t AMediaCodec_setParameters(
+ AMediaCodec *mData, const AMediaFormat* params);
typedef enum {