zdoom-macos-deps/test/vpx.cpp

15 lines
392 B
C++
Raw Normal View History

2021-03-30 12:14:53 +00:00
#include <vpx/vpx_decoder.h>
#include <vpx/vp8dx.h>
int main()
{
2021-05-16 07:00:28 +00:00
vpx_codec_ctx_t codec;
2021-05-17 07:28:55 +00:00
AEDI_EXPECT(vpx_codec_dec_init(&codec, &vpx_codec_vp8_dx_algo, nullptr, 0) == VPX_CODEC_OK);
2021-03-30 12:14:53 +00:00
vp8_postproc_cfg_t pp = { 0, 0, 0 };
2021-05-17 07:28:55 +00:00
AEDI_EXPECT(vpx_codec_control(&codec, VP8_SET_POSTPROC, &pp) == VPX_CODEC_OK);
AEDI_EXPECT(vpx_codec_destroy(&codec) == VPX_CODEC_OK);
2021-03-30 12:14:53 +00:00
return 0;
2021-03-30 12:14:53 +00:00
}