#include "codecs/video.dat" #include "codecs/audio.dat" void get_video_codec_data(char *output, const int fcctype, const int compression,const int type,const int max_char_line,const int align){ //type val: 0 - name 1 - name (url) 2 - author 3 - author (url) 4 - comments #define PAD_ALIGN 8 //due my lame line breaking algorithm make a a PAD_ALIGN symbol before max_char_line. !!!TODO!!! int counter; int flag=0; const char *pointer; int cr_count=0; if (type<0||type>4) return; for (counter=0;countermax_char_line-PAD_ALIGN&& *pointer==' '){ *output++='\n'; fill(output,' ',align); pointer++; output+=align; cr_count=0; } cr_count++; *output++=*pointer++; } cr_count=0; *output='\x0'; } } } void get_audio_codec_data(char *output, const int wTagFormat, int type){ int counter; for(counter=0;counter