mirror of
https://github.com/mpv-player/mpv
synced 2025-01-29 11:12:56 +00:00
start_slice() added - similar to get_image(), but is called when using slices
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9491 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
cd302b2662
commit
0020d4b05c
@ -268,11 +268,14 @@ mp_image_t* vf_get_image(vf_instance_t* vf, unsigned int outfmt, int mp_imgtype,
|
||||
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",
|
||||
|
@ -31,6 +31,8 @@ typedef struct vf_instance_s {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user