diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-10-07 16:57:02 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-10-07 16:57:02 +0000 |
commit | 4e0b7398f077972f3759ae7f21e6dbbe866ff87b (patch) | |
tree | 05198287dc20a65c4f3b7a04cb1477460ff83655 /src/xine-engine/xine.c | |
parent | 3b17ce66a7f42a8145d97f691a984374d542a121 (diff) | |
download | xine-lib-4e0b7398f077972f3759ae7f21e6dbbe866ff87b.tar.gz xine-lib-4e0b7398f077972f3759ae7f21e6dbbe866ff87b.tar.bz2 |
added a snapshot function
CVS patchset: 757
CVS date: 2001/10/07 16:57:02
Diffstat (limited to 'src/xine-engine/xine.c')
-rw-r--r-- | src/xine-engine/xine.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index 40c6911a8..3d32d0f4d 100644 --- a/src/xine-engine/xine.c +++ b/src/xine-engine/xine.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine.c,v 1.64 2001/10/07 15:13:09 guenter Exp $ + * $Id: xine.c,v 1.65 2001/10/07 16:57:02 guenter Exp $ * * top-level xine functions * @@ -648,3 +648,23 @@ int xine_set_audio_property(xine_t *this, int property, int value) { return ~value; } +void xine_get_current_frame (xine_t *this, int *width, int *height, + int *ratio_code, int *format, + uint8_t **y, uint8_t **u, uint8_t **v) { + + vo_frame_t *frame; + + frame = this->video_out->get_last_frame (this->video_out); + + *width = frame->width; + *height = frame->height; + + *ratio_code = frame->ratio; + *format = frame->format; + + *y = frame->base[0]; + *u = frame->base[1]; + *v = frame->base[2]; + +} + |