public unsafe void InitialiseCodecYV12BuffersTest() { vpx_codec_alg_priv_t alg = new vpx_codec_alg_priv_t(); VP8D_CONFIG oxcf = new VP8D_CONFIG(); var res = onyxd.vp8_create_decoder_instances(alg.yv12_frame_buffers, oxcf); Assert.Equal(vpx_codec_err_t.VPX_CODEC_OK, res); onyxd.vp8_remove_decoder_instances(alg.yv12_frame_buffers); }
public void InitialiseMacroBlockTest() { frame_buffers fb = new frame_buffers(); VP8D_CONFIG config = new VP8D_CONFIG(); var errRes = onyxd.vp8_create_decoder_instances(fb, config); Assert.Equal(vpx_codec_err_t.VPX_CODEC_OK, errRes); int res = alloccommon.vp8_alloc_frame_buffers(fb.pbi[0].common, 640, 480); Assert.Equal(0, res); Assert.NotNull(fb.pbi[0].mb.block[24].qcoeff); //Assert.NotEqual(0, fb.pbi[0].mb.block[24].qcoeff.get()); }