Bijna klaar!
This commit is contained in:
		
							parent
							
								
									5ca7a72b86
								
							
						
					
					
						commit
						a3fd7a5a43
					
				
					 84 changed files with 879 additions and 969 deletions
				
			
		
							
								
								
									
										45
									
								
								util/MP4/box_vmhd.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								util/MP4/box_vmhd.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,45 @@ | |||
| #include "box.cpp" | ||||
| 
 | ||||
| class Box_vmhd { | ||||
|   public: | ||||
|     Box_vmhd( ); | ||||
|     ~Box_vmhd(); | ||||
|     Box * GetBox(); | ||||
|     void SetGraphicsMode( uint16_t GraphicsMode = 0 ); | ||||
|     void SetOpColor( uint16_t Red = 0, uint16_t Green = 0, uint16_t Blue = 0); | ||||
|   private: | ||||
|     Box * Container; | ||||
|     void SetReserved( ); | ||||
|     void SetDefaults( ); | ||||
| };//Box_ftyp Class
 | ||||
| 
 | ||||
| Box_vmhd::Box_vmhd( ) { | ||||
|   Container = new Box( 0x766D6864 ); | ||||
|   SetDefaults(); | ||||
|   SetReserved(); | ||||
| } | ||||
| 
 | ||||
| Box_vmhd::~Box_vmhd() { | ||||
|   delete Container; | ||||
| } | ||||
| 
 | ||||
| Box * Box_vmhd::GetBox() { | ||||
|   return Container; | ||||
| } | ||||
| 
 | ||||
| void Box_vmhd::SetGraphicsMode( uint16_t GraphicsMode ) { | ||||
|   Container->SetPayload((uint32_t)2,Box::uint16_to_uint8(GraphicsMode),8); | ||||
| } | ||||
| void Box_vmhd::SetOpColor( uint16_t Red, uint16_t Green, uint16_t Blue ) { | ||||
|   Container->SetPayload((uint32_t)2,Box::uint16_to_uint8(Blue),14); | ||||
|   Container->SetPayload((uint32_t)2,Box::uint16_to_uint8(Green),12); | ||||
|   Container->SetPayload((uint32_t)2,Box::uint16_to_uint8(Red),10); | ||||
| } | ||||
| 
 | ||||
| void Box_vmhd::SetReserved( ) { | ||||
|   Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(1)); | ||||
| } | ||||
| void Box_vmhd::SetDefaults( ) { | ||||
|   SetOpColor(); | ||||
|   SetGraphicsMode(); | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma