00001 /* 00002 * Movie sequence packet header 00003 * 00004 * This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by Lukas Hermanns) 00005 * See "SoftPixelEngine.hpp" for license information. 00006 */ 00007 00008 #ifndef __SP_MOVIESEQUENCEPACKET_H__ 00009 #define __SP_MOVIESEQUENCEPACKET_H__ 00010 00011 00012 #include "Base/spStandard.hpp" 00013 #include "Base/spDimensionSize2D.hpp" 00014 #include "Base/spInputOutputString.hpp" 00015 00016 #if defined(SP_PLATFORM_WINDOWS) 00017 # include <windows.h> 00018 # include <vfw.h> 00019 #endif 00020 00021 00022 namespace sp 00023 { 00024 namespace video 00025 { 00026 00027 00028 #if defined(SP_PLATFORM_WINDOWS) 00029 00030 struct SMovieSequencePacket 00031 { 00032 /* Basics */ 00033 dim::size2di Size; 00034 s32 VideoMPF, AudioMPF; 00035 s32 VideoLastFrame, AudioLastFrame; 00036 s8* VideoData; 00037 u8* RawData; 00038 00039 /* Movie status */ 00040 s32 Next, Frame; 00041 s8 State; 00042 u32 Time, LastTime; 00043 s32 Resolution; 00044 bool Looped; 00045 00046 /* Buffer data */ 00047 AVISTREAMINFO VideoStreamInfo, AudioStreamInfo; 00048 PAVISTREAM pVideoStream, pAudioStream; 00049 PGETFRAME pGetFrame; 00050 BITMAPINFOHEADER BitmapInfoHeader; 00051 HDRAWDIB hDrawDIB; 00052 HBITMAP hBitmap; 00053 HDC hDeviceContext; 00054 }; 00055 00056 #endif 00057 00058 00059 } // /namespace video 00060 00061 } // /namespace sp 00062 00063 00064 #endif 00065 00066 00067 00068 // ================================================================================