Skip to content

Commit

Permalink
Ad info of codes
Browse files Browse the repository at this point in the history
  • Loading branch information
jhyume committed Feb 7, 2015
1 parent fe2ae4f commit d575eed
Show file tree
Hide file tree
Showing 12 changed files with 194 additions and 2 deletions.
16 changes: 16 additions & 0 deletions include/bmp.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**-------------------------/// bmp include \\\---------------------------
*
* <b>bmp include</b>
* @version :
* @since : 2015 2月 07
*
* @description :
*
* @usage :
*
* @author : 'Jiahui Yu' | yjh199511 gmail.com
* @copyright
* @TODO :
*
*--------------------------\\\ bmp include ///---------------------------*/

#ifndef BMP_H
#define BMP_H

Expand Down
18 changes: 17 additions & 1 deletion include/build.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**-------------------------/// build songs library \\\---------------------------
*
* <b>build songs library</b>
* @version :
* @since : 2015 2月 07
*
* @description :
*
* @usage :
*
* @author : 'Jiahui Yu' | yjh199511 gmail.com
* @copyright
* @TODO :
*
*--------------------------\\\ build songs library ///---------------------------*/

#ifndef _IFLY_RES_BUILD_H_
#define _IFLY_RES_BUILD_H_

Expand Down Expand Up @@ -38,4 +54,4 @@ typedef int(*Proc_ProcessBuildRes)(const char *szResDir, const char *szResPath);
extern "C" __EXPORT int unInitialize();
typedef int(*Proc_unInitialize)();

#endif//_IFLY_RES_BUILD_H_
#endif//_IFLY_RES_BUILD_H_
16 changes: 16 additions & 0 deletions include/fingerprint.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**-------------------------/// fingerprint audio \\\---------------------------
*
* <b>fingerprint audio</b>
* @version :
* @since : 2015 2月 07
*
* @description :
* To extract features of songs.
* @usage :
*
* @author : 'Jiahui Yu' | yjh199511 gmail.com
* @copyright
* @TODO :
*
*--------------------------\\\ fingerprint audio ///---------------------------*/

#ifndef FINGERPRINT_H
#define FINGERPRINT_H

Expand Down
16 changes: 16 additions & 0 deletions include/hash.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**-------------------------/// hash structures \\\---------------------------
*
* <b>hash strctures and functions</b>
* @version :
* @since : 2015 2月 07
*
* @description :
*
* @usage :
*
* @author : 'Jiahui Yu' | yjh199511 gmail.com
* @copyright
* @TODO :
*
*--------------------------\\\ hash structures ///---------------------------*/

#ifndef _HashFunc_h_
#define _HashFunc_h_

Expand Down
16 changes: 16 additions & 0 deletions include/recog.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**-------------------------/// recognition of songs \\\---------------------------
*
* <b>recognitions of songs</b>
* @version :
* @since : 2015 2月 07
*
* @description :
*
* @usage :
*
* @author : 'Jiahui Yu' | yjh199511 gmail.com
* @copyright
* @TODO :
*
*--------------------------\\\ recognition of songs ///---------------------------*/

#ifndef _IFLY_RES_SELECT_H_
#define _IFLY_RES_SELECT_H_

Expand Down
16 changes: 16 additions & 0 deletions include/wav.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**-------------------------/// wav read \\\---------------------------
*
* <b>wav file read</b>
* @version :
* @since : 2015 2月 07
*
* @description :
*
* @usage :
*
* @author : 'Jiahui Yu' | yjh199511 gmail.com
* @copyright
* @TODO :
*
*--------------------------\\\ wav read ///---------------------------*/

#ifndef WAV_H
#define WAV_H

Expand Down
16 changes: 16 additions & 0 deletions src/bmp.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**-------------------------/// bmp \\\---------------------------
*
* <b>bmp pics head</b>
* @version : 1.0
* @since : 2015 2月 07
*
* @description :
* To produce bmp pictures.
* @usage :
*
* @author : 'Jiahui Yu' | yjh199511 ^_^ gmail.com
* @copyright
* @TODO :
*
*--------------------------\\\ bmp ///---------------------------*/

#include "bmp.h"

TBMP::TBMP(const char *filename, int w, int h, int mode){
Expand Down
18 changes: 17 additions & 1 deletion src/build.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**-------------------------/// build songs library \\\---------------------------
*
* <b>build songs library</b>
* @version :
* @since : 2015 2月 07
*
* @description :
* To build a songs library in the dir of ./samples
* @usage :
*
* @author : 'Jiahui Yu' | yjh199511 gmail.com
* @copyright
* @TODO :
*
*--------------------------\\\ build songs library ///---------------------------*/

#include "hash.h"
#include "fingerprint.h"
#include <fcntl.h> // 提供open()函数
Expand Down Expand Up @@ -63,7 +79,7 @@ int
main( int argc, char **argv )
{
Initialize();
ProcessBuildRes("/home/jiah/WS/git/AudioRecognition/bin/samples/", "./database");
ProcessBuildRes("./samples/", "./database");
unInitialize();
return 0;
}
16 changes: 16 additions & 0 deletions src/fingerprint.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**-------------------------/// fingerprint / feature extract \\\---------------------------
*
* <b>fingerprint feature extract</b>
* @version :
* @since : 2015 2月 07
*
* @description :
* To extract the features of songs.
* @usage :
*
* @author : 'Jiahui Yu' | yjh199511 gmail.com
* @copyright
* @TODO :
*
*--------------------------\\\ fingerprint / feature extract ///---------------------------*/

#include "fingerprint.h"
using namespace std;

Expand Down
16 changes: 16 additions & 0 deletions src/hash.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**-------------------------/// hash functions \\\---------------------------
*
* <b>hash functions</b>
* @version :
* @since : 2015 2月 07
*
* @description :
*
* @usage :
*
* @author : 'Jiahui Yu' | yjh199511 gmail.com
* @copyright
* @TODO :
*
*--------------------------\\\ hash functions ///---------------------------*/

#include "hash.h"

//外部函数
Expand Down
16 changes: 16 additions & 0 deletions src/recog.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**-------------------------/// recognition of songs \\\---------------------------
*
* <b>recognition of songs</b>
* @version :
* @since : 2015 2月 07
*
* @description :
*
* @usage :
*
* @author : 'Jiahui Yu' | yjh199511 gmail.com
* @copyright
* @TODO :
*
*--------------------------\\\ recognition of songs ///---------------------------*/

#include "hash.h"
#include "fingerprint.h"

Expand Down
16 changes: 16 additions & 0 deletions src/wav.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**-------------------------/// wav format analyse \\\---------------------------
*
* <b>wav format analyse</b>
* @version :
* @since : 2015 2月 07
*
* @description :
*
* @usage :
*
* @author : 'Jiahui Yu' | yjh199511 gmail.com
* @copyright
* @TODO :
*
*--------------------------\\\ wav format analyse ///---------------------------*/

#include "wav.h"

TWav::TWav(const char *filename){
Expand Down

0 comments on commit d575eed

Please sign in to comment.