diff options
| author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-14 18:32:57 +0000 |
|---|---|---|
| committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-14 18:32:57 +0000 |
| commit | 34c78dfed7894040f2c3ba1aafd99038249d8bc1 (patch) | |
| tree | 862ab0ba5b0dad3bae22cb0a9c4e3653419462ac /src/video_out | |
| parent | 4c5c55108935cc8e7e3dfe65f963b0b146e6a53e (diff) | |
| download | xine-lib-34c78dfed7894040f2c3ba1aafd99038249d8bc1.tar.gz xine-lib-34c78dfed7894040f2c3ba1aafd99038249d8bc1.tar.bz2 | |
video output driver auto-probing
CVS patchset: 179
CVS date: 2001/06/14 18:32:57
Diffstat (limited to 'src/video_out')
| -rw-r--r-- | src/video_out/video_out_aa.c | 10 | ||||
| -rw-r--r-- | src/video_out/video_out_syncfb.c | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/video_out/video_out_aa.c b/src/video_out/video_out_aa.c index c1e884b18..179157e7c 100644 --- a/src/video_out/video_out_aa.c +++ b/src/video_out/video_out_aa.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: video_out_aa.c,v 1.6 2001/06/13 18:25:27 guenter Exp $ + * $Id: video_out_aa.c,v 1.7 2001/06/14 18:32:57 guenter Exp $ * * video_out_aa.c, ascii-art output plugin for xine * @@ -127,6 +127,8 @@ static void aa_update_frame_format (vo_driver_t *this, vo_frame_t *img, aa_frame_t *frame = (aa_frame_t *) img; + /* printf ("aa_update_format...\n"); */ + if ((frame->width != width) || (frame->height != height) || (frame->format != format)) { @@ -154,6 +156,9 @@ static void aa_update_frame_format (vo_driver_t *this, vo_frame_t *img, frame->vo_frame.base[0] = malloc_aligned(16,image_size, (void**) &frame->mem[0]); frame->vo_frame.base[1] = malloc_aligned(16,image_size/4, (void**) &frame->mem[1]); frame->vo_frame.base[2] = malloc_aligned(16,image_size/4, (void**) &frame->mem[2]); + + /* printf ("allocated yuv memory for %d x %d image\n", width, height); */ + } else if (format == IMGFMT_YUY2) { image_size = width * 2 * height; frame->vo_frame.base[0] = malloc_aligned(16,image_size, (void**) &frame->mem[0]); @@ -165,6 +170,8 @@ static void aa_update_frame_format (vo_driver_t *this, vo_frame_t *img, frame->ratio_code = ratio_code; } + + /* printf ("aa_update_format done\n"); */ } static void aa_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen) { @@ -217,6 +224,7 @@ static void aa_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen) { aa_imgheight (this->context)); aa_flush (this->context); + } static int aa_get_property (vo_driver_t *this_gen, int property) { diff --git a/src/video_out/video_out_syncfb.c b/src/video_out/video_out_syncfb.c index d2ba25a35..fa09ddf99 100644 --- a/src/video_out/video_out_syncfb.c +++ b/src/video_out/video_out_syncfb.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: video_out_syncfb.c,v 1.4 2001/05/30 18:32:15 joachim_koenig Exp $ + * $Id: video_out_syncfb.c,v 1.5 2001/06/14 18:32:57 guenter Exp $ * * video_out_syncfb.c, Matrox G400 video extension interface for xine * @@ -866,7 +866,7 @@ static vo_info_t vo_info_mga = { "Syncfb", "xine video output plugin using MGA Teletux (syncfb) video extension", VISUAL_TYPE_X11, - 10 + 20 }; vo_info_t *get_video_out_plugin_info() { |
