diff options
Diffstat (limited to 'source/libvpx/vpx/vpx_codec.h')
-rw-r--r-- | source/libvpx/vpx/vpx_codec.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/libvpx/vpx/vpx_codec.h b/source/libvpx/vpx/vpx_codec.h index 07df72a..b25308e 100644 --- a/source/libvpx/vpx/vpx_codec.h +++ b/source/libvpx/vpx/vpx_codec.h @@ -203,9 +203,11 @@ extern "C" { const char *err_detail; /**< Detailed info, if available */ vpx_codec_flags_t init_flags; /**< Flags passed at init time */ union { - struct vpx_codec_dec_cfg *dec; /**< Decoder Configuration Pointer */ - struct vpx_codec_enc_cfg *enc; /**< Encoder Configuration Pointer */ - void *raw; + /**< Decoder Configuration Pointer */ + const struct vpx_codec_dec_cfg *dec; + /**< Encoder Configuration Pointer */ + const struct vpx_codec_enc_cfg *enc; + const void *raw; } config; /**< Configuration pointer aliasing union */ vpx_codec_priv_t *priv; /**< Algorithm private storage */ } vpx_codec_ctx_t; @@ -215,9 +217,9 @@ extern "C" { * This enumeration determines the bit depth of the codec. */ typedef enum vpx_bit_depth { - VPX_BITS_8, /**< 8 bits */ - VPX_BITS_10, /**< 10 bits */ - VPX_BITS_12 /**< 12 bits */ + VPX_BITS_8 = 8, /**< 8 bits */ + VPX_BITS_10 = 10, /**< 10 bits */ + VPX_BITS_12 = 12, /**< 12 bits */ } vpx_bit_depth_t; /* |