Bijna klaar!
This commit is contained in:
		
							parent
							
								
									5ca7a72b86
								
							
						
					
					
						commit
						a3fd7a5a43
					
				
					 84 changed files with 879 additions and 969 deletions
				
			
		
							
								
								
									
										39
									
								
								util/MP4/box_ftyp.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								util/MP4/box_ftyp.cpp
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,39 @@
 | 
			
		|||
#include "box.cpp"
 | 
			
		||||
 | 
			
		||||
class Box_ftyp {
 | 
			
		||||
  public:
 | 
			
		||||
    Box_ftyp( );
 | 
			
		||||
    ~Box_ftyp();
 | 
			
		||||
    Box * GetBox();
 | 
			
		||||
    void SetMajorBrand( uint32_t MajorBrand = 0x66347620 );
 | 
			
		||||
    void SetMinorBrand( uint32_t MinorBrand = 0x1 );
 | 
			
		||||
  private:
 | 
			
		||||
    void SetDefaults( );
 | 
			
		||||
    Box * Container;
 | 
			
		||||
};//Box_ftyp Class
 | 
			
		||||
 | 
			
		||||
Box_ftyp::Box_ftyp( ) {
 | 
			
		||||
  Container = new Box( 0x66747970 );
 | 
			
		||||
  SetDefaults( );
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Box_ftyp::~Box_ftyp() {
 | 
			
		||||
  delete Container;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Box * Box_ftyp::GetBox() {
 | 
			
		||||
  return Container;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Box_ftyp::SetMajorBrand( uint32_t MajorBrand ) {
 | 
			
		||||
  Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(MajorBrand));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Box_ftyp::SetMinorBrand( uint32_t MinorBrand ) {
 | 
			
		||||
  Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(MinorBrand),4);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Box_ftyp::SetDefaults( ) {
 | 
			
		||||
  SetMinorBrand( );
 | 
			
		||||
  SetMajorBrand( );
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue