diff options
author | wm4 <wm4@nowhere> | 2012-09-28 21:25:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-16 07:26:30 +0200 |
commit | 3c9c1790fee177cc9c9661475746a92ab6ce9bea (patch) | |
tree | 9939309bb9341f2684ab1fd9e2793a230369a674 /libvo/fastmemcpy.h | |
parent | ffb7a2fe17af204635db6694b5b49b6368be91e6 (diff) | |
download | mpv-3c9c1790fee177cc9c9661475746a92ab6ce9bea.tar.bz2 mpv-3c9c1790fee177cc9c9661475746a92ab6ce9bea.tar.xz |
vo_gl3: support RGBA EOSD
This also adds support for multiple EOSD renderers. This capability is
unused yet, but important for the following commits.
Diffstat (limited to 'libvo/fastmemcpy.h')
-rw-r--r-- | libvo/fastmemcpy.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libvo/fastmemcpy.h b/libvo/fastmemcpy.h index 5d05d37043..36fada39fe 100644 --- a/libvo/fastmemcpy.h +++ b/libvo/fastmemcpy.h @@ -64,4 +64,17 @@ static inline void * memcpy_pic2(void * dst, const void * src, return retval; } +static inline void memset_pic(void *dst, int fill, int bytesPerLine, int height, + int stride) +{ + if (bytesPerLine == stride) { + memset(dst, fill, stride * height); + } else { + for (int i = 0; i < height; i++) { + memset(dst, fill, bytesPerLine); + dst = (uint8_t *)dst + stride; + } + } +} + #endif /* MPLAYER_FASTMEMCPY_H */ |