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
333333 talloc_free(from_f);
334334 }
335335
336−static bool try_draw_bmp(FILE *f, int imgfmt)
336+static bool try_draw_bmp(struct mpv_global *g, FILE *f, int imgfmt)
337337 {
338338 bool ok = false;
339339
@@ -365,7 +365,7 @@ static bool try_draw_bmp(FILE *f, int imgfmt) · 25 unmodified lines
365365 .num_items = 1,
366366 };
367367
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);
369369 if (mp_draw_sub_bitmaps(c, dst, &sbs_list)) {
370370 char *info = mp_draw_sub_get_dbg_info(c);
371371 fprintf(f, "%s\n", info);
@@ -419,7 +419,7 @@ static void run(struct test_ctx *ctx) · 47 unmodified lines
419419 int imgfmt = imgfmts[n];
420420
421421 fprintf(f, "%-12s= ", mp_imgfmt_to_name(imgfmt));
422− try_draw_bmp(f, imgfmt);
422+ try_draw_bmp(ctx->global, f, imgfmt);
423423 }
424424
425425 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