|
|
|
@ -34,7 +34,7 @@ TEST_CASE("Multimedia") {
|
|
|
|
|
int averr;
|
|
|
|
|
int dimy, dimx;
|
|
|
|
|
ncplane_dim_yx(ncp_, &dimy, &dimx);
|
|
|
|
|
auto ncv = ncvisual_open_plane(nc_, find_data("dsscaw-purp.png"), &averr, 0, 0, NCSCALE_STRETCH);
|
|
|
|
|
auto ncv = ncvisual_open_plane(nc_, find_data("changes.jpg"), &averr, 0, 0, NCSCALE_STRETCH);
|
|
|
|
|
REQUIRE(ncv);
|
|
|
|
|
REQUIRE(0 == averr);
|
|
|
|
|
auto frame = ncvisual_decode(ncv, &averr);
|
|
|
|
@ -54,7 +54,7 @@ TEST_CASE("Multimedia") {
|
|
|
|
|
int averr;
|
|
|
|
|
int dimy, dimx;
|
|
|
|
|
ncplane_dim_yx(ncp_, &dimy, &dimx);
|
|
|
|
|
auto ncv = ncplane_visual_open(ncp_, find_data("dsscaw-purp.png"), &averr);
|
|
|
|
|
auto ncv = ncplane_visual_open(ncp_, find_data("changes.jpg"), &averr);
|
|
|
|
|
REQUIRE(ncv);
|
|
|
|
|
REQUIRE(0 == averr);
|
|
|
|
|
auto frame = ncvisual_decode(ncv, &averr);
|
|
|
|
@ -74,7 +74,7 @@ TEST_CASE("Multimedia") {
|
|
|
|
|
int averr;
|
|
|
|
|
int dimy, dimx;
|
|
|
|
|
ncplane_dim_yx(ncp_, &dimy, &dimx);
|
|
|
|
|
auto ncv = ncplane_visual_open(ncp_, find_data("dsscaw-purp.png"), &averr);
|
|
|
|
|
auto ncv = ncplane_visual_open(ncp_, find_data("changes.jpg"), &averr);
|
|
|
|
|
REQUIRE(ncv);
|
|
|
|
|
REQUIRE(0 == averr);
|
|
|
|
|
auto frame = ncvisual_decode(ncv, &averr);
|
|
|
|
@ -123,7 +123,7 @@ TEST_CASE("Multimedia") {
|
|
|
|
|
int averr;
|
|
|
|
|
int dimy, dimx;
|
|
|
|
|
ncplane_dim_yx(ncp_, &dimy, &dimx);
|
|
|
|
|
auto ncv = ncvisual_open_plane(nc_, find_data("fm6.mkv"), &averr, 0, 0, NCSCALE_STRETCH);
|
|
|
|
|
auto ncv = ncvisual_open_plane(nc_, find_data("notcursesI.avi"), &averr, 0, 0, NCSCALE_STRETCH);
|
|
|
|
|
REQUIRE(ncv);
|
|
|
|
|
CHECK(0 == averr);
|
|
|
|
|
auto frame = ncvisual_decode(ncv, &averr);
|