History

draw_bmp: use command line options for any used scalers

wm4 committed 6 years ago

Commit baabd5f1 parent 6d8b3f95 files · +36 −16Browse files

Showing the changes to test (1 of 5 files). Show all

Unified · Split

test/repack.c+3−3
@@ -333,7 +333,7 @@ static void check_float_repack(int imgfmt, enum mp_csp csp, · 332 unmodified lines
333 talloc_free(from_f);333 talloc_free(from_f);
334}334}
335 335
336static bool try_draw_bmp(FILE *f, int imgfmt)336static bool try_draw_bmp(struct mpv_global *g, FILE *f, int imgfmt)
337{337{
338 bool ok = false;338 bool ok = false;
339 339
@@ -365,7 +365,7 @@ static bool try_draw_bmp(FILE *f, int imgfmt) · 25 unmodified lines
365 .num_items = 1,365 .num_items = 1,
366 };366 };
367 367
368 struct mp_draw_sub_cache *c = mp_draw_sub_alloc(NULL);368 struct mp_draw_sub_cache *c = mp_draw_sub_alloc(NULL, g);
369 if (mp_draw_sub_bitmaps(c, dst, &sbs_list)) {369 if (mp_draw_sub_bitmaps(c, dst, &sbs_list)) {
370 char *info = mp_draw_sub_get_dbg_info(c);370 char *info = mp_draw_sub_get_dbg_info(c);
371 fprintf(f, "%s\n", info);371 fprintf(f, "%s\n", info);
@@ -419,7 +419,7 @@ static void run(struct test_ctx *ctx) · 47 unmodified lines
419 int imgfmt = imgfmts[n];419 int imgfmt = imgfmts[n];
420 420
421 fprintf(f, "%-12s= ", mp_imgfmt_to_name(imgfmt));421 fprintf(f, "%-12s= ", mp_imgfmt_to_name(imgfmt));
422 try_draw_bmp(f, imgfmt);422 try_draw_bmp(ctx->global, f, imgfmt);
423 }423 }
424 424
425 fclose(f);425 fclose(f);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t