esds box namespace fixed:
This commit is contained in:
		
							parent
							
								
									c7bd07d660
								
							
						
					
					
						commit
						9729daa93d
					
				
					 2 changed files with 13 additions and 13 deletions
				
			
		|  | @ -1,38 +1,38 @@ | |||
| #include "box_mp4a.h" | ||||
| #include "box_esds.h" | ||||
| 
 | ||||
| Box_mp4a::Box_mp4a( ) { | ||||
|   Container = new Box( 0x6D703461 ); | ||||
| Box_esds::Box_esds( ) { | ||||
|   Container = new Box( 0x65736473 ); | ||||
|   SetReserved(); | ||||
|   SetDefaults(); | ||||
| } | ||||
| 
 | ||||
| Box_mp4a::~Box_mp4a() { | ||||
| Box_esds::~Box_esds() { | ||||
|   delete Container; | ||||
| } | ||||
| 
 | ||||
| Box * Box_mp4a::GetBox() { | ||||
| Box * Box_esds::GetBox() { | ||||
|   return Container; | ||||
| } | ||||
| 
 | ||||
| void Box_mp4a::SetDataReferenceIndex( uint16_t DataReferenceIndex ) { | ||||
| void Box_esds::SetDataReferenceIndex( uint16_t DataReferenceIndex ) { | ||||
|   Container->SetPayload((uint32_t)2,Box::uint16_to_uint8( DataReferenceIndex ),6); | ||||
| } | ||||
| 
 | ||||
| void Box_mp4a::SetChannelCount( uint16_t Count ) { | ||||
| void Box_esds::SetChannelCount( uint16_t Count ) { | ||||
|   Container->SetPayload((uint32_t)2,Box::uint16_to_uint8( Count ),16); | ||||
| } | ||||
| 
 | ||||
| void Box_mp4a::SetSampleSize( uint16_t Size ) { | ||||
| void Box_esds::SetSampleSize( uint16_t Size ) { | ||||
|   Container->SetPayload((uint32_t)2,Box::uint16_to_uint8( Size ),18); | ||||
| } | ||||
| 
 | ||||
| void Box_mp4a::SetReserved( ) { | ||||
| void Box_esds::SetReserved( ) { | ||||
|   Container->SetPayload((uint32_t)4,Box::uint32_to_uint8( 0 ),20); | ||||
|   Container->SetPayload((uint32_t)2,Box::uint16_to_uint8( 0 ),4); | ||||
|   Container->SetPayload((uint32_t)4,Box::uint32_to_uint8( 0 )); | ||||
| } | ||||
| 
 | ||||
| void Box_mp4a::SetDefaults( ) { | ||||
| void Box_esds::SetDefaults( ) { | ||||
|   SetSampleSize( ); | ||||
|   SetChannelCount( ); | ||||
|   SetDataReferenceIndex( ); | ||||
|  |  | |||
|  | @ -1,10 +1,10 @@ | |||
| #include "box.h" | ||||
| #include <string> | ||||
| 
 | ||||
| class Box_mp4a { | ||||
| class Box_esds { | ||||
|   public: | ||||
|     Box_mp4a( ); | ||||
|     ~Box_mp4a(); | ||||
|     Box_esds( ); | ||||
|     ~Box_esds(); | ||||
|     Box * GetBox(); | ||||
|     void SetDataReferenceIndex( uint16_t DataReferenceIndex = 0); | ||||
|     void SetChannelCount( uint16_t Count = 2 ); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Erik Zandvliet
						Erik Zandvliet