Mercurial > mplayer.hg
changeset 9490:48ac3ce565ab
start_slice() added - similar to get_image(), but is called when using slices
author | arpi |
---|---|
date | Sun, 23 Feb 2003 20:40:21 +0000 |
parents | acab62e4e026 |
children | 21f7d83507ca |
files | libmpcodecs/vf.c libmpcodecs/vf.h |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf.c Sun Feb 23 20:31:59 2003 +0000 +++ b/libmpcodecs/vf.c Sun Feb 23 20:40:21 2003 +0000 @@ -268,11 +268,14 @@ mpi->flags|=MP_IMGFLAG_ALLOCATED; } } + if(mpi->flags&MP_IMGFLAG_DRAW_CALLBACK) + if(vf->start_slice) vf->start_slice(vf,mpi); if(!(mpi->flags&MP_IMGFLAG_TYPE_DISPLAYED)){ - mp_msg(MSGT_DECVIDEO,MSGL_V,"*** [%s] %s mp_image_t, %dx%dx%dbpp %s %s, %d bytes\n", + mp_msg(MSGT_DECVIDEO,MSGL_V,"*** [%s] %s%s mp_image_t, %dx%dx%dbpp %s %s, %d bytes\n", vf->info->name, (mpi->type==MP_IMGTYPE_EXPORT)?"Exporting": ((mpi->flags&MP_IMGFLAG_DIRECT)?"Direct Rendering":"Allocating"), + (mpi->flags&MP_IMGFLAG_DRAW_CALLBACK)?" (slices)":"", mpi->width,mpi->height,mpi->bpp, (mpi->flags&MP_IMGFLAG_YUV)?"YUV":((mpi->flags&MP_IMGFLAG_SWAPPED)?"BGR":"RGB"), (mpi->flags&MP_IMGFLAG_PLANAR)?"planar":"packed",
--- a/libmpcodecs/vf.h Sun Feb 23 20:31:59 2003 +0000 +++ b/libmpcodecs/vf.h Sun Feb 23 20:40:21 2003 +0000 @@ -31,6 +31,8 @@ mp_image_t *mpi); int (*put_image)(struct vf_instance_s* vf, mp_image_t *mpi); + void (*start_slice)(struct vf_instance_s* vf, + mp_image_t *mpi); void (*draw_slice)(struct vf_instance_s* vf, unsigned char** src, int* stride, int w,int h, int x, int y); void (*uninit)(struct vf_instance_s* vf);