ref: 94e4341bc06a4fc4fe1fb654a3256cfc3e9ba262
parent: f1283ca4c60f49ee8ac75621067c888c5b05ae29
parent: e404f867ccb574f2780bdfd973b320e777bd055a
author: James Zern <[email protected]>
date: Mon Apr 27 14:38:37 EDT 2020
Merge "Update comments on nonexistent vpx_codec_init"
--- a/vpx/internal/vpx_codec_internal.h
+++ b/vpx/internal/vpx_codec_internal.h
@@ -27,13 +27,15 @@
* </pre>
*
* An application instantiates a specific decoder instance by using
- * vpx_codec_init() and a pointer to the algorithm's interface structure:
+ * vpx_codec_dec_init() and a pointer to the algorithm's interface structure:
* <pre>
* my_app.c:
* extern vpx_codec_iface_t my_codec;
* {
* vpx_codec_ctx_t algo;
- * res = vpx_codec_init(&algo, &my_codec);
+ * int threads = 4;
+ * vpx_codec_dec_cfg_t cfg = { threads, 0, 0 };
+ * res = vpx_codec_dec_init(&algo, &my_codec, &cfg, 0);
* }
* </pre>
*
--- a/vpx/vpx_codec.h
+++ b/vpx/vpx_codec.h
@@ -22,13 +22,16 @@
* video codec algorithm.
*
* An application instantiates a specific codec instance by using
- * vpx_codec_init() and a pointer to the algorithm's interface structure:
+ * vpx_codec_dec_init() or vpx_codec_enc_init() and a pointer to the
+ * algorithm's interface structure:
* <pre>
* my_app.c:
* extern vpx_codec_iface_t my_codec;
* {
* vpx_codec_ctx_t algo;
- * res = vpx_codec_init(&algo, &my_codec);
+ * int threads = 4;
+ * vpx_codec_dec_cfg_t cfg = { threads, 0, 0 };
+ * res = vpx_codec_dec_init(&algo, &my_codec, &cfg, 0);
* }
* </pre>
*