diff options
author | Mike Melanson <mike@multimedia.cx> | 2002-10-03 03:09:35 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2002-10-03 03:09:35 +0000 |
commit | eaeb9e5c187d730e1666862c33234fecf4642bda (patch) | |
tree | b0b1b8310488d77528cae99ff284e322f0c842a3 | |
parent | 8f315332beb0f45b1c7ed840bf0dd10ee082aa20 (diff) | |
download | xine-lib-eaeb9e5c187d730e1666862c33234fecf4642bda.tar.gz xine-lib-eaeb9e5c187d730e1666862c33234fecf4642bda.tar.bz2 |
finish bringing the template video decoder up to the new spec
CVS patchset: 2772
CVS date: 2002/10/03 03:09:35
-rw-r--r-- | src/libxinevdec/foovideo.c | 36 |
1 files changed, 4 insertions, 32 deletions
diff --git a/src/libxinevdec/foovideo.c b/src/libxinevdec/foovideo.c index 3ddfea646..0bea30f16 100644 --- a/src/libxinevdec/foovideo.c +++ b/src/libxinevdec/foovideo.c @@ -20,7 +20,7 @@ * General description and author credits go here... * * Leave the following line intact for when the decoder is committed to CVS: - * $Id: foovideo.c,v 1.6 2002/09/05 22:19:02 mroi Exp $ + * $Id: foovideo.c,v 1.7 2002/10/03 03:09:35 tmmm Exp $ */ #include <stdio.h> @@ -29,9 +29,9 @@ #include <sys/types.h> #include <unistd.h> +#include "xine_internal.h" #include "video_out.h" #include "buffer.h" -#include "xine_internal.h" #include "xineutils.h" #include "bswap.h" @@ -67,35 +67,6 @@ typedef struct foovideo_decoder_s { *************************************************************************/ /* - * FIXME: revise documentation, reflect api changes - * This function is called by xine to determine which buffer types this - * decoder knows how to handle. - * Parameters: - * this_gen: A video decoder object - * buf_type: The number of the buffer type that xine is querying for; - * these buffer constants are defined in src/xine-engine/buffer.h. - * Return: - * 1 if the decoder is capable of handling buf_type - * 0 if the decoder is not capable of handling buf_type - */ -static int foovideo_can_handle (video_decoder_t *this_gen, int buf_type) { - - /* this function will usually take the form of: - - return (buf_type == BUF_VIDEO_FOOVIDEO_V1 || - buf_type == BUF_VIDEO_FOOVIDEO_V2); - - where the constants such as BUF_VIDEO_FOOVIDEO_V1 are defined in - src/xine-engine/buffer.h. - - But for this example, return 0, indicating that this plugin handles - no buffer types. - */ - - return 0; -} - -/* * This function is responsible is called to initialize the video decoder * for use. Initialization usually involves setting up the fields in your * private video decoder object. @@ -169,7 +140,8 @@ static void foovideo_decode_data (video_decoder_t *this_gen, img = this->video_out->get_frame (this->video_out, this->width, this->height, - 42, IMGFMT_YUY2, VO_BOTH_FIELDS); + XINE_VO_ASPECT_DONT_TOUCH, + XINE_IMGFMT_YUY2, VO_BOTH_FIELDS); img->duration = this->video_step; img->pts = buf->pts; |