Theora headers 1 and 2 working in analyser
This commit is contained in:
		
							parent
							
								
									4ea8fe0327
								
							
						
					
					
						commit
						a2f088ad80
					
				
					 4 changed files with 324 additions and 107 deletions
				
			
		
							
								
								
									
										39
									
								
								lib/theora.h
									
										
									
									
									
								
							
							
						
						
									
										39
									
								
								lib/theora.h
									
										
									
									
									
								
							|  | @ -1,5 +1,7 @@ | |||
| #pragma once | ||||
| #include<sys/types.h> | ||||
| #include<stdint.h> | ||||
| #include<string> | ||||
| 
 | ||||
| namespace theora{ | ||||
|   class header{ | ||||
|  | @ -7,18 +9,51 @@ namespace theora{ | |||
|       header(); | ||||
|       bool read(char* newData, unsigned int length); | ||||
|       int getHeaderType(); | ||||
|       char getKFGShift(); | ||||
|       long unsigned int getPICH();//movie height
 | ||||
|       char getVMAJ(); | ||||
|       char getVMIN(); | ||||
|       char getVREV(); | ||||
|       short getFMBW(); | ||||
|       short getFMBH(); | ||||
|       long unsigned int getPICW();//movie width
 | ||||
|       long unsigned int getPICH();//movie height
 | ||||
|       char getPICX(); | ||||
|       char getPICY(); | ||||
|       long unsigned int getFRN();//frame rate numerator
 | ||||
|       long unsigned int getFRD();//frame rate denominator
 | ||||
|       long unsigned int getPARN(); | ||||
|       long unsigned int getPARD(); | ||||
|       char getCS(); | ||||
|       long unsigned int getNOMBR(); | ||||
|       char getQUAL(); | ||||
|       char getPF(); | ||||
|       char getKFGShift(); | ||||
|       std::string getVendor(); | ||||
|       long unsigned int getNComments(); | ||||
|       std::string getUserComment(size_t index); | ||||
|       std::string toPrettyString(size_t indent = 0); | ||||
|     protected: | ||||
|       uint32_t getInt32(size_t index); | ||||
|       uint32_t getInt24(size_t index); | ||||
|       uint16_t getInt16(size_t index); | ||||
|       uint32_t commentLen(size_t index); | ||||
|     private: | ||||
|       char* data; | ||||
|       unsigned int datasize; | ||||
|       bool checkDataSize(unsigned int size); | ||||
|       bool validateIdentificationHeader(); | ||||
|   }; | ||||
| 
 | ||||
|   class frame{ | ||||
|     public: | ||||
|       frame(); | ||||
|       bool read(char* newData, unsigned int length); | ||||
|       char getFTYPE(); | ||||
|       char getNQIS(); | ||||
|       char getQIS(size_t index); | ||||
|       std::string toPrettyString(size_t indent = 0); | ||||
|     private: | ||||
|       char * data; | ||||
|       unsigned int datasize; | ||||
|       bool checkDataSize(unsigned int size); | ||||
|   }; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Erik Zandvliet
						Erik Zandvliet