⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compat.c

📁 linux下mp3编解码程序
💻 C
📖 第 1 页 / 共 2 页
字号:
/* C code produced by gperf version 3.0.1 *//* Command-line: gperf -tCcTonD -K id -N id3_compat_lookup -s -3 -k '*' compat.gperf  */#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \      && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \      && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \      && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \      && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \      && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \      && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \      && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \      && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \      && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \      && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \      && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \      && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \      && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \      && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \      && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \      && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \      && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \      && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \      && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \      && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \      && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \      && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))/* The character set is not based on ISO-646.  */error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."#endif#line 1 "compat.gperf"/* * libid3tag - ID3 tag manipulation library * Copyright (C) 2000-2004 Underbit Technologies, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA * * Id: compat.gperf,v 1.11 2004/01/23 09:41:32 rob Exp  */# ifdef HAVE_CONFIG_H#  include "config.h"# endif# include "global.h"# include <stdlib.h># include <string.h># ifdef HAVE_ASSERT_H#  include <assert.h># endif# include "id3tag.h"# include "compat.h"# include "frame.h"# include "field.h"# include "parse.h"# include "ucs4.h"# define EQ(id)    #id, 0# define OBSOLETE    0, 0# define TX(id)    #id, translate_##idstatic id3_compat_func_t translate_TCON;#define TOTAL_KEYWORDS 73#define MIN_WORD_LENGTH 3#define MAX_WORD_LENGTH 4#define MIN_HASH_VALUE 6#define MAX_HASH_VALUE 127/* maximum key range = 122, duplicates = 0 */#ifdef __GNUC____inline#else#ifdef __cplusplusinline#endif#endifstatic unsigned inthash (str, len)     register const char *str;     register unsigned int len;{  static const unsigned char asso_values[] =    {      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128,  64,       58,  20,  15, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128,  10,  18,   3,   6,   1,       47,   0, 128,  42,  62,  30,  31,   0,  19,  52,       10,  24,   8,  30,   5,   3,  30,   8,  25,  47,        3, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128, 128, 128, 128,      128, 128, 128, 128, 128, 128, 128    };  register int hval = 0;  switch (len)    {      default:        hval += asso_values[(unsigned char)str[3]];      /*FALLTHROUGH*/      case 3:        hval += asso_values[(unsigned char)str[2]];      /*FALLTHROUGH*/      case 2:        hval += asso_values[(unsigned char)str[1]+1];      /*FALLTHROUGH*/      case 1:        hval += asso_values[(unsigned char)str[0]];        break;    }  return hval;}#ifdef __GNUC____inline#endifconst struct id3_compat *id3_compat_lookup (str, len)     register const char *str;     register unsigned int len;{  static const struct id3_compat wordlist[] =    {#line 97 "compat.gperf"      {"TLE",  EQ(TLEN)  /* Length */},#line 68 "compat.gperf"      {"ETC",  EQ(ETCO)  /* Event timing codes */},#line 126 "compat.gperf"      {"ULT",  EQ(USLT)  /* Unsynchronised lyric/text transcription */},#line 123 "compat.gperf"      {"TYE",  OBSOLETE  /* Year [obsolete] */},#line 92 "compat.gperf"      {"TFT",  EQ(TFLT)  /* File type */},#line 84 "compat.gperf"      {"TCM",  EQ(TCOM)  /* Composer */},#line 66 "compat.gperf"      {"EQU",  OBSOLETE  /* Equalization [obsolete] */},#line 63 "compat.gperf"      {"COM",  EQ(COMM)  /* Comments */},#line 130 "compat.gperf"      {"WCM",  EQ(WCOM)  /* Commercial information */},#line 96 "compat.gperf"      {"TLA",  EQ(TLAN)  /* Language(s) */},#line 88 "compat.gperf"      {"TDA",  OBSOLETE  /* Date [obsolete] */},#line 124 "compat.gperf"      {"TYER", OBSOLETE  /* Year [obsolete] */},#line 83 "compat.gperf"      {"TBP",  EQ(TBPM)  /* BPM (beats per minute) */},#line 87 "compat.gperf"      {"TCR",  EQ(TCOP)  /* Copyright message */},#line 104 "compat.gperf"      {"TOT",  EQ(TOAL)  /* Original album/movie/show title */},#line 89 "compat.gperf"      {"TDAT", OBSOLETE  /* Date [obsolete] */},#line 67 "compat.gperf"      {"EQUA", OBSOLETE  /* Equalization [obsolete] */},#line 102 "compat.gperf"      {"TOR",  EQ(TDOR)  /* Original release year [obsolete] */},#line 131 "compat.gperf"      {"WCP",  EQ(WCOP)  /* Copyright/legal information */},#line 99 "compat.gperf"      {"TOA",  EQ(TOPE)  /* Original artist(s)/performer(s) */},#line 78 "compat.gperf"      {"RVA",  OBSOLETE  /* Relative volume adjustment [obsolete] */},#line 120 "compat.gperf"      {"TT3",  EQ(TIT3)  /* Subtitle/description refinement */},#line 98 "compat.gperf"      {"TMT",  EQ(TMED)  /* Media type */},#line 76 "compat.gperf"      {"POP",  EQ(POPM)  /* Popularimeter */},#line 74 "compat.gperf"      {"MLL",  EQ(MLLT)  /* MPEG location lookup table */},#line 79 "compat.gperf"      {"RVAD", OBSOLETE  /* Relative volume adjustment [obsolete] */},#line 65 "compat.gperf"      {"CRM",  OBSOLETE  /* Encrypted meta frame [obsolete] */},#line 128 "compat.gperf"      {"WAR",  EQ(WOAR)  /* Official artist/performer webpage */},#line 80 "compat.gperf"      {"SLT",  EQ(SYLT)  /* Synchronised lyric/text */},#line 81 "compat.gperf"      {"STC",  EQ(SYTC)  /* Synchronised tempo codes */},#line 95 "compat.gperf"      {"TKE",  EQ(TKEY)  /* Initial key */},#line 111 "compat.gperf"      {"TRC",  EQ(TSRC)  /* ISRC (international standard recording code) */},#line 109 "compat.gperf"      {"TPA",  EQ(TPOS)  /* Part of a set */},#line 117 "compat.gperf"      {"TSS",  EQ(TSSE)  /* Software/hardware and settings used for encoding */},#line 112 "compat.gperf"      {"TRD",  OBSOLETE  /* Recording dates [obsolete] */},#line 64 "compat.gperf"      {"CRA",  EQ(AENC)  /* Audio encryption */},#line 108 "compat.gperf"      {"TP4",  EQ(TPE4)  /* Interpreted, remixed, or otherwise modified by */},#line 125 "compat.gperf"      {"UFI",  EQ(UFID)  /* Unique file identifier */},#line 101 "compat.gperf"      {"TOL",  EQ(TOLY)  /* Original lyricist(s)/text writer(s) */},#line 110 "compat.gperf"      {"TPB",  EQ(TPUB)  /* Publisher */},#line 73 "compat.gperf"      {"MCI",  EQ(MCDI)  /* Music CD identifier */},#line 107 "compat.gperf"      {"TP3",  EQ(TPE3)  /* Conductor/performer refinement */},#line 132 "compat.gperf"      {"WPB",  EQ(WPUB)  /* Publishers official webpage */},#line 113 "compat.gperf"      {"TRDA", OBSOLETE  /* Recording dates [obsolete] */},#line 115 "compat.gperf"      {"TSI",  OBSOLETE  /* Size [obsolete] */},#line 90 "compat.gperf"      {"TDY",  EQ(TDLY)  /* Playlist delay */},#line 82 "compat.gperf"      {"TAL",  EQ(TALB)  /* Album/movie/show title */},#line 116 "compat.gperf"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -