mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 03:51:33 +00:00
add vpx test
This commit is contained in:
parent
f9264b515c
commit
818fc825ba
1 changed files with 26 additions and 0 deletions
26
test/vpx.cpp
Normal file
26
test/vpx.cpp
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
#include <vpx/vpx_decoder.h>
|
||||||
|
#include <vpx/vp8dx.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
vpx_codec_ctx_t codec;
|
||||||
|
|
||||||
|
if (vpx_codec_dec_init(&codec, &vpx_codec_vp8_dx_algo, nullptr, 0) != VPX_CODEC_OK)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
vp8_postproc_cfg_t pp = { 0, 0, 0 };
|
||||||
|
|
||||||
|
if (vpx_codec_control(&codec, VP8_SET_POSTPROC, &pp) != VPX_CODEC_OK)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (vpx_codec_destroy(&codec) != VPX_CODEC_OK)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in a new issue