diff options
author | wm4 <wm4@nowhere> | 2012-12-28 15:46:23 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-13 20:04:16 +0100 |
commit | 03730e73dc0439e0e673857d8c376a70cfcc8152 (patch) | |
tree | 8a9ba499fe0eed108eac7d17904eab8682735de4 /sub/draw_bmp.c | |
parent | 23f731839a39583321e2e03ff54715e9d5cea577 (diff) | |
download | mpv-03730e73dc0439e0e673857d8c376a70cfcc8152.tar.bz2 mpv-03730e73dc0439e0e673857d8c376a70cfcc8152.tar.xz |
img_convert: add sub_bitmap bounding box functions
mp_sub_bitmaps_bb is just sub_bitmaps_bb renamed/moved.
Diffstat (limited to 'sub/draw_bmp.c')
-rw-r--r-- | sub/draw_bmp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sub/draw_bmp.c b/sub/draw_bmp.c index 4cf89349a0..f8fbe2e643 100644 --- a/sub/draw_bmp.c +++ b/sub/draw_bmp.c @@ -27,6 +27,7 @@ #include "core/mp_common.h" #include "sub/draw_bmp.h" #include "sub/sub.h" +#include "sub/img_convert.h" #include "video/mp_image.h" #include "video/sws_utils.h" #include "video/img_format.h" @@ -543,7 +544,7 @@ void mp_draw_sub_bitmaps(struct mp_draw_sub_cache **cache, struct mp_image *dst, get_closest_y444_format(dst->imgfmt, &format, &bits); struct mp_rect bb; - if (!sub_bitmaps_bb(sbs, &bb)) + if (!mp_sub_bitmaps_bb(sbs, &bb)) return; if (!align_bbox_for_swscale(dst, &bb)) |