diff options
Diffstat (limited to 'source/blender/blenkernel/intern/image.c')
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index 976b525d841..ddf0daa5f73 100644 --- a/source/blender/blenkernel/intern/image.c +++ b/source/blender/blenkernel/intern/image.c @@ -620,6 +620,14 @@ static void de_interlace_st(struct ImBuf *ibuf) /* standard fields */ ibuf->y /= 2; } +void image_de_interlace(Image *ima, int odd) +{ + if(odd) + de_interlace_st(ima->ibuf); + else + de_interlace_ng(ima->ibuf); +} + /* important note: all calls here and calls inside can NOT use threadsafe malloc! */ /* this entire function is mutex'ed with the same lock as for mallocs */ void ima_ibuf_is_nul(Tex *tex, Image *ima) |