History

Merge "Update comments on nonexistent vpx_codec_init"

James Zern committed 6 years ago

Commit 94e43412 parents f1283ca e404f862 files · +9 −4Browse files

Unified · Split

2 files
  1. vpx/internal/vpx_codec_internal.h +4 −2
  2. vpx/vpx_codec.h +5 −2
vpx/internal/vpx_codec_internal.h+4−2
@@ -27,13 +27,15 @@ · 26 unmodified lines
2727 * </pre>
2828 *
2929 * An application instantiates a specific decoder instance by using
30− * vpx_codec_init() and a pointer to the algorithm's interface structure:
30+ * vpx_codec_dec_init() and a pointer to the algorithm's interface structure:
3131 * <pre>
3232 * my_app.c:
3333 * extern vpx_codec_iface_t my_codec;
3434 * {
3535 * vpx_codec_ctx_t algo;
36− * res = vpx_codec_init(&algo, &my_codec);
36+ * int threads = 4;
37+ * vpx_codec_dec_cfg_t cfg = { threads, 0, 0 };
38+ * res = vpx_codec_dec_init(&algo, &my_codec, &cfg, 0);
3739 * }
3840 * </pre>
3941 *
vpx/vpx_codec.h+5−2
@@ -22,13 +22,16 @@ · 21 unmodified lines
2222 * video codec algorithm.
2323 *
2424 * An application instantiates a specific codec instance by using
25− * vpx_codec_init() and a pointer to the algorithm's interface structure:
25+ * vpx_codec_dec_init() or vpx_codec_enc_init() and a pointer to the
26+ * algorithm's interface structure:
2627 * <pre>
2728 * my_app.c:
2829 * extern vpx_codec_iface_t my_codec;
2930 * {
3031 * vpx_codec_ctx_t algo;
31− * res = vpx_codec_init(&algo, &my_codec);
32+ * int threads = 4;
33+ * vpx_codec_dec_cfg_t cfg = { threads, 0, 0 };
34+ * res = vpx_codec_dec_init(&algo, &my_codec, &cfg, 0);
3235 * }
3336 * </pre>
3437 *

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t