Example #1
0
        public void FlipUnitTest()
        {
            vpx_image_t img = vpx_image_t.vpx_img_alloc(null, vpx_img_fmt_t.VPX_IMG_FMT_I420, 640, 480, 1);

            vpx_image_t.vpx_img_flip(img);

            vpx_image_t.vpx_img_free(img);
        }
Example #2
0
        public void InstantiateImageUnitTest()
        {
            vpx_image_t img = vpx_image_t.vpx_img_alloc(null, vpx_img_fmt_t.VPX_IMG_FMT_I420, 640, 480, 1);

            Assert.NotNull(img);

            vpx_image_t.vpx_img_free(img);
        }
Example #3
0
        public void SetRectangleUnitTest()
        {
            vpx_image_t img = vpx_image_t.vpx_img_alloc(null, vpx_img_fmt_t.VPX_IMG_FMT_I420, 640, 480, 1);

            int res = vpx_image_t.vpx_img_set_rect(img, 0, 0, 320, 240);

            Assert.Equal(0, res);

            vpx_image_t.vpx_img_free(img);
        }