Commit e73768a8 authored by Gildas Bazin's avatar Gildas Bazin

* src/video_output/vout_pictures.c: declaration of FOURCC_RV24, courtesy of Olivier Aubert.
parent 213725df
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vout_pictures.c : picture management functions * vout_pictures.c : picture management functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2000 VideoLAN * Copyright (C) 2000 VideoLAN
* $Id: vout_pictures.c,v 1.34 2003/01/22 10:44:50 fenrir Exp $ * $Id: vout_pictures.c,v 1.35 2003/03/10 18:26:33 gbazin Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -529,6 +529,18 @@ void vout_AllocatePicture( vout_thread_t *p_vout, picture_t *p_pic, ...@@ -529,6 +529,18 @@ void vout_AllocatePicture( vout_thread_t *p_vout, picture_t *p_pic,
p_pic->i_planes = 1; p_pic->i_planes = 1;
break; break;
case FOURCC_RV24:
p_pic->p->i_lines = i_height;
p_pic->p->i_pitch = i_width * 3;
p_pic->p->i_visible_pitch = p_pic->p->i_pitch;
p_pic->p->i_pixel_pitch = 3;
/* FIXME: p_heap isn't always reachable
p_pic->p_heap->i_rmask = 0xff0000;
p_pic->p_heap->i_gmask = 0x00ff00;
p_pic->p_heap->i_bmask = 0x0000ff; */
p_pic->i_planes = 1;
break;
case FOURCC_RV32: case FOURCC_RV32:
p_pic->p->i_lines = i_height; p_pic->p->i_lines = i_height;
p_pic->p->i_pitch = i_width * 4; p_pic->p->i_pitch = i_width * 4;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment