mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 21:06:00 +00:00
Add draw slice for the codecs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6710 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3f457aa9b7
commit
a355761e8b
@ -277,3 +277,9 @@ mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, i
|
||||
return mpi;
|
||||
}
|
||||
|
||||
void mpcodecs_draw_slice(sh_video_t *sh, unsigned char* src, int* stride, int w,int h, int x, int y) {
|
||||
struct vf_instance_s* vf = sh->vfilter;
|
||||
|
||||
if(vf->draw_slice)
|
||||
vf->draw_slice(vf,src,stride,w,h,x,y);
|
||||
}
|
||||
|
@ -25,5 +25,6 @@ extern int vd_use_slices;
|
||||
// callbacks:
|
||||
int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outfmt);
|
||||
mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, int w, int h);
|
||||
void mpcodecs_draw_slice(sh_video_t *sh, unsigned char* src, int* stride, int w,int h, int x, int y);
|
||||
|
||||
#define VDFLAGS_DROPFRAME 3
|
||||
|
Loading…
Reference in New Issue
Block a user