| 
									
										
										
										
											2013-04-17 23:09:55 -04:00
										 |  |  | // Copyright 2013 Dolphin Emulator Project
 | 
					
						
							|  |  |  | // Licensed under GPLv2
 | 
					
						
							|  |  |  | // Refer to the license.txt file included.
 | 
					
						
							| 
									
										
										
										
											2009-03-28 21:27:48 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #ifndef _AVIDUMP_H
 | 
					
						
							|  |  |  | #define _AVIDUMP_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-11-14 21:14:26 +00:00
										 |  |  | #ifdef _WIN32
 | 
					
						
							| 
									
										
										
										
											2009-03-28 21:27:48 +00:00
										 |  |  | #include <windows.h>
 | 
					
						
							| 
									
										
										
										
											2010-11-14 21:14:26 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #include <stdint.h>
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2009-03-28 21:27:48 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-26 20:47:48 -05:00
										 |  |  | #include "CommonTypes.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-28 21:27:48 +00:00
										 |  |  | class AVIDump | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2010-11-14 21:14:26 +00:00
										 |  |  | 	private: | 
					
						
							|  |  |  | 		static bool CreateFile(); | 
					
						
							|  |  |  | 		static void CloseFile(); | 
					
						
							|  |  |  | 		static void SetBitmapFormat(); | 
					
						
							|  |  |  | 		static bool SetCompressionOptions(); | 
					
						
							|  |  |  | 		static bool SetVideoFormat(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	public: | 
					
						
							|  |  |  | #ifdef _WIN32
 | 
					
						
							|  |  |  | 		static bool Start(HWND hWnd, int w, int h); | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  | 		static bool Start(int w, int h); | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2013-02-26 20:47:48 -05:00
										 |  |  | 		static void AddFrame(const u8* data, int width, int height); | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2010-11-14 21:14:26 +00:00
										 |  |  | 		static void Stop(); | 
					
						
							| 
									
										
										
										
											2009-03-28 21:27:48 +00:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-26 09:52:35 +00:00
										 |  |  | #endif // _AVIDUMP_H
 |