diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-06-03 16:20:35 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-06-03 16:20:35 +0000 |
commit | 07edb89ff5d2484e0549992dc9d3e4ea7727dc89 (patch) | |
tree | 4c40cfe6079fd0874e48893f896b951505bb7f9e /src/xine-engine/buffer.h | |
parent | 4849b574232233c801f244406b7cd16a0e52add3 (diff) | |
download | xine-lib-07edb89ff5d2484e0549992dc9d3e4ea7727dc89.tar.gz xine-lib-07edb89ff5d2484e0549992dc9d3e4ea7727dc89.tar.bz2 |
provide function to convert endianess of BITMAPINFOHEADER (when reading data from
win32/MS format files)
CVS patchset: 1998
CVS date: 2002/06/03 16:20:35
Diffstat (limited to 'src/xine-engine/buffer.h')
-rw-r--r-- | src/xine-engine/buffer.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/xine-engine/buffer.h b/src/xine-engine/buffer.h index e893a41ff..5a49f02db 100644 --- a/src/xine-engine/buffer.h +++ b/src/xine-engine/buffer.h @@ -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: buffer.h,v 1.46 2002/06/03 13:31:12 miguelfreitas Exp $ + * $Id: buffer.h,v 1.47 2002/06/03 16:20:36 miguelfreitas Exp $ * * * contents: @@ -259,7 +259,11 @@ uint32_t formattag_to_buf_audio( uint32_t formattag ); char * buf_audio_name( uint32_t buf_type ); -/* this version of BITMAPINFOHEADER should be safe to compile on 64bits machines */ +/* this is xine version of BITMAPINFOHEADER + * - should be safe to compile on 64bits machines + * - will always use machine endian format, so demuxers reading + * stuff from win32 formats must use the function below. + */ typedef struct { int32_t biSize; int32_t biWidth; @@ -274,6 +278,9 @@ typedef struct { int32_t biClrImportant; } xine_bmiheader; +/* convert xine_bmiheader struct from little endian */ +void xine_bmiheader_le2me( xine_bmiheader *bih ); + #ifdef __cplusplus } |