User:Ommina: Difference between revisions

From AniDB
Jump to navigation Jump to search
No edit summary
Line 90: Line 90:
7<br>
7<br>
8<br>
8<br>
<table>
<tr>
  <td align="center">Byte 1</td>
</tr>
<tr>
  <td>
  <table>
    <tr>
    <td>Bit</td>
    <td align="right">Decimal</td>
    <td>Data Field</td>
    </tr>
    <tr bgcolor="#eee">
    <td>0</td>
    <td align="right">1</td>
    <td>Data Field</td>
    </tr>
    <tr>
    <td>1</td>
    <td align="right">2</td>
    <td>Data Field</td>
    </tr>
    <tr bgcolor="#eee">
    <td>2</td>
    <td align="right">4</td>
    <td>Data Field</td>
    </tr>
    <tr>
    <td>3</td>
    <td align="right">8</td>
    <td>Data Field</td>
    </tr>
    <tr bgcolor="#eee">
    <td>4</td>
    <td align="right">16</td>
    <td>Data Field</td>
    </tr>
    <tr>
    <td>5</td>
    <td align="right">32</td>
    <td>Data Field</td>
    </tr>
    <tr bgcolor="#eee">
    <td>6</td>
    <td align="right">64</td>
    <td>Data Field</td>
    </tr>
    <tr>
    <td>7</td>
    <td align="right">128</td>
    <td>Data Field</td>
    </tr>
  </table>
  </td>
</tr>
</table>


<table>
<table>
  <tr>
  <tr>
   <td colspan="3" align="center">Byte 1</td>
   <td colspan="3" align="center">Byte 1</td>
  <td colspan="3" align="center">Byte 2</td>
  <td colspan="3" align="center">Byte 3</td>
  <td colspan="3" align="center">Byte 4</td>
  </tr>
  </tr>
  <tr>
  <tr>
Line 99: Line 159:
   <td>Decimal</td>
   <td>Decimal</td>
   <td>Data Field</td>
   <td>Data Field</td>
  <td>Bit</td>
  <td>Decimal</td>
  <td>Data Field</td>
  <td>Bit</td>
  <td>Decimal</td>
  <td>Data Field</td>
  <td>Bit</td>
  <td>Decimal</td>
  <td>Data Field</td>
</tr>
<tr bgcolor="#eee">
  <td>0</td>
  <td align="right">1</td>
  <td>String</td>
  <td>0</td>
  <td align="right">1</td>
  <td>String</td>
  <td>0</td>
  <td align="right">1</td>
  <td>String</td>
  <td>0</td>
  <td align="right">1</td>
  <td>String</td>
  </tr>
  </tr>
  <tr>
  <tr>
  <td>1</td>
  <td align="right">2</td>
  <td>String</td>
  <td>1</td>
  <td align="right">2</td>
  <td>String</td>
  <td>1</td>
  <td align="right">2</td>
  <td>String</td>
  <td>1</td>
  <td align="right">2</td>
  <td>String</td>
</tr>
<tr bgcolor="#eee">
  <td>2</td>
  <td align="right">4</td>
  <td>String</td>
  <td>1</td>
  <td align="right">2</td>
  <td>String</td>
  <td>1</td>
  <td align="right">2</td>
  <td>String</td>
  <td>1</td>
  <td align="right">2</td>
  <td>String</td>
</tr>
<tr>
  <td>3</td>
  <td align="right">8</td>
  <td>String</td>
  <td>3</td>
  <td align="right">8</td>
  <td>String</td>
  <td>3</td>
  <td align="right">8</td>
  <td>String</td>
  <td>3</td>
  <td align="right">8</td>
  <td>String</td>
</tr>
<tr bgcolor="#eee">
  <td>4</td>
  <td align="right">16</td>
  <td>String</td>
  <td>4</td>
  <td align="right">16</td>
  <td>String</td>
  <td>4</td>
  <td align="right">16</td>
  <td>String</td>
  <td>4</td>
  <td align="right">16</td>
  <td>String</td>
</tr>
<tr>
  <td>5</td>
  <td align="right">32</td>
  <td>String</td>
  <td>5</td>
  <td align="right">32</td>
  <td>String</td>
  <td>5</td>
  <td align="right">32</td>
  <td>String</td>
  <td>5</td>
  <td align="right">32</td>
  <td>String</td>
</tr>
<tr bgcolor="#eee">
  <td>6</td>
  <td align="right">64</td>
  <td>String</td>
  <td>6</td>
  <td align="right">64</td>
  <td>String</td>
  <td>6</td>
  <td align="right">64</td>
  <td>String</td>
  <td>6</td>
  <td align="right">64</td>
  <td>String</td>
</tr>
<tr>
  <td>7</td>
  <td align="right">128</td>
  <td>String</td>
  <td>7</td>
  <td align="right">128</td>
  <td>String</td>
  <td>7</td>
  <td align="right">128</td>
  <td>String</td>
  <td>7</td>
  <td align="right">128</td>
  <td>String</td>
</tr>
</table>
<table>
<tr>
  <td colspan="3" align="center">Byte 1</td>
  <td colspan="3" align="center">Byte 2</td>
  <td colspan="3" align="center">Byte 3</td>
  <td colspan="3" align="center">Byte 4</td>
</tr>
<tr>
  <td>Bit</td>
  <td>Decimal</td>
  <td>Data Field</td>
  <td>Bit</td>
  <td>Decimal</td>
  <td>Data Field</td>
  <td>Bit</td>
  <td>Decimal</td>
  <td>Data Field</td>
  <td>Bit</td>
  <td>Decimal</td>
  <td>Data Field</td>
</tr>
<tr bgcolor="#eee">
  <td>0</td>
  <td align="right">1</td>
  <td>String</td>
  <td>0</td>
  <td align="right">1</td>
  <td>String</td>
  <td>0</td>
  <td align="right">1</td>
  <td>String</td>
   <td>0</td>
   <td>0</td>
   <td align="right">1</td>
   <td align="right">1</td>
Line 106: Line 319:
  </tr>
  </tr>
  <tr>
  <tr>
  <td>1</td>
  <td align="right">2</td>
  <td>String</td>
  <td>1</td>
  <td align="right">2</td>
  <td>String</td>
  <td>1</td>
  <td align="right">2</td>
  <td>String</td>
   <td>1</td>
   <td>1</td>
   <td align="right">2</td>
   <td align="right">2</td>
   <td>String</td>
   <td>String</td>
  </tr>
  </tr>
  <tr>
  <tr bgcolor="#eee">
   <td>2</td>
   <td>2</td>
   <td align="right">4</td>
   <td align="right">4</td>
  <td>String</td>
  <td>1</td>
  <td align="right">2</td>
  <td>String</td>
  <td>1</td>
  <td align="right">2</td>
  <td>String</td>
  <td>1</td>
  <td align="right">2</td>
   <td>String</td>
   <td>String</td>
  </tr>
  </tr>
  <tr>
  <tr>
  <td>3</td>
  <td align="right">8</td>
  <td>String</td>
  <td>3</td>
  <td align="right">8</td>
  <td>String</td>
  <td>3</td>
  <td align="right">8</td>
  <td>String</td>
   <td>3</td>
   <td>3</td>
   <td align="right">8</td>
   <td align="right">8</td>
   <td>String</td>
   <td>String</td>
  </tr>
  </tr>
  <tr>
  <tr bgcolor="#eee">
  <td>4</td>
  <td align="right">16</td>
  <td>String</td>
  <td>4</td>
  <td align="right">16</td>
  <td>String</td>
  <td>4</td>
  <td align="right">16</td>
  <td>String</td>
   <td>4</td>
   <td>4</td>
   <td align="right">16</td>
   <td align="right">16</td>
Line 126: Line 375:
  </tr>
  </tr>
  <tr>
  <tr>
  <td>5</td>
  <td align="right">32</td>
  <td>String</td>
  <td>5</td>
  <td align="right">32</td>
  <td>String</td>
  <td>5</td>
  <td align="right">32</td>
  <td>String</td>
   <td>5</td>
   <td>5</td>
   <td align="right">32</td>
   <td align="right">32</td>
   <td>String</td>
   <td>String</td>
  </tr>
  </tr>
  <tr>
  <tr bgcolor="#eee">
  <td>6</td>
  <td align="right">64</td>
  <td>String</td>
  <td>6</td>
  <td align="right">64</td>
  <td>String</td>
  <td>6</td>
  <td align="right">64</td>
  <td>String</td>
   <td>6</td>
   <td>6</td>
   <td align="right">64</td>
   <td align="right">64</td>
Line 136: Line 403:
  </tr>
  </tr>
  <tr>
  <tr>
  <td>7</td>
  <td align="right">128</td>
  <td>String</td>
  <td>7</td>
  <td align="right">128</td>
  <td>String</td>
  <td>7</td>
  <td align="right">128</td>
  <td>String</td>
   <td>7</td>
   <td>7</td>
   <td align="right">128</td>
   <td align="right">128</td>
Line 141: Line 417:
  </tr>
  </tr>
</table>
</table>
'''acode:'''
{| cellpadding="0" align="center"
! width="40"|Bit
! width="80"|Decimal
! width="160"|Data field
! width="50"|-
! width="40"|Bit
! width="120"|Decimal
! width="160"|Data field
|- style="background-color: #eee;"
|0 ||1 || int4 aid || || 16 || 65536 || str url
|-
|1 ||2 || int4 episodes || || 17 || 131072 || str picname
|- style="background-color: #eee;"
|2 ||4 || int4 normal ep count || || 18 || 262144 || str year
|-
|3 ||8 || int4 special ep count ||  || 19 || 524288 || str type
|- style="background-color: #eee;"
|4 ||16 || int4 rating || || 20 || 1048576 || str romaji name
|-
|5 ||32 || int4 vote count || || 21 || 2097152 || str kanji name
|- style="background-color: #eee;"
|6 ||64 || int4 temp rating || || 22 || 4194304 || str english name
|-
|7 ||128 || int4 temp vote count || || 23 || 8388608 || str other name
|- style="background-color: #eee;"
|8 ||256 || int4 average review rating || || 24 || 16777216 || str short name list
|-
|9 ||512 || int4 review count || || 25 || 33554432 || str synonym list
|- style="background-color: #eee;"
|10 ||1024 || int4 air date || || 26 || 67108864 || str category list
|-
|11 ||2048 || int4 end date || || 27 || 134217728 || str related aid list
|- style="background-color: #eee;"
|12 ||4096 || int4 anime planet id || || 28 || 268435456 || str producer name list
|-
|13 ||8192 || int4 anime news network id || || 29 || 536870912 || str producer id list
|- style="background-color: #eee;"
|14 ||16384 || int4 allcinema id || || 30 || 1073741824 || str award list
|-
|15 ||32768 || str animenfo id || || 31 || -2147483648 || reserved (all)
|}


=== ANIME acode replacement ===
=== ANIME acode replacement ===

Revision as of 08:40, 14 October 2008


FILE acode & fcode replacement

fmask:

byte1 - IDs
1
2 int4 aid
3 int4 eid
4 int4 gid
5 int4 lid
6 list other episodes
7 int2 IsDeprecated
8 int2 state

byte2
1 int8 size
2 str ed2k
3 str md5
4 str sha1
5 str crc32
6
7
8

byte3
1 str quality
2 str source
3 str audio codec
4 int4 audio bitrate
5 str video codec
6 int4 video bitrate
7 str video resolution
8 str file type (extension)

byte4
1 str dub language
2 str sub language
3 int4 length in seconds
4 str description
5 int4 release date
6
7
8 str anidb file name


amask:

byte1
1 int4 anime total episodes
2 int4 last episode nr (highest, not special)
3 str year
4 str type
5 str related aid list
6 str related aid type
7 str category list
8

byte2
1 str romaji name
2 str kanji name
3 str english name
4 str other name
5 str short name list
6 str synonym list
7 str producer name list
8 str producer id list

byte3
1 str epno
2 str ep name
3 str ep romaji name
4 str ep kanji name
5
6
7
8

byte4
1 str group name
2 str group short name
3
4
5
6
7
8

Byte 1
Bit Decimal Data Field
0 1 Data Field
1 2 Data Field
2 4 Data Field
3 8 Data Field
4 16 Data Field
5 32 Data Field
6 64 Data Field
7 128 Data Field
Byte 1 Byte 2 Byte 3 Byte 4
Bit Decimal Data Field Bit Decimal Data Field Bit Decimal Data Field Bit Decimal Data Field
0 1 String 0 1 String 0 1 String 0 1 String
1 2 String 1 2 String 1 2 String 1 2 String
2 4 String 1 2 String 1 2 String 1 2 String
3 8 String 3 8 String 3 8 String 3 8 String
4 16 String 4 16 String 4 16 String 4 16 String
5 32 String 5 32 String 5 32 String 5 32 String
6 64 String 6 64 String 6 64 String 6 64 String
7 128 String 7 128 String 7 128 String 7 128 String
Byte 1 Byte 2 Byte 3 Byte 4
Bit Decimal Data Field Bit Decimal Data Field Bit Decimal Data Field Bit Decimal Data Field
0 1 String 0 1 String 0 1 String 0 1 String
1 2 String 1 2 String 1 2 String 1 2 String
2 4 String 1 2 String 1 2 String 1 2 String
3 8 String 3 8 String 3 8 String 3 8 String
4 16 String 4 16 String 4 16 String 4 16 String
5 32 String 5 32 String 5 32 String 5 32 String
6 64 String 6 64 String 6 64 String 6 64 String
7 128 String 7 128 String 7 128 String 7 128 String

ANIME acode replacement

amask:

amask:
byte1
1 int aid
2
3 str year
4 str type
5 str related aid list
6 str related aid type
7 str category list
8 str award list

byte2
1 str romaji name
2 str kanji name
3 str english name
4 str other name
5 str short name list
6 str synonym list
7 str producer name list
8 str producer id list

byte3
1 int4 episodes
2 int4 normal ep count
3 int4 special ep count
4 int4 air date
5 int4 end date
6 str url
7 str picname
8

byte4
1 int4 rating
2 int4 vote count
3 int4 temp rating
4 int4 temp vote count
5 int4 average review rating
6 int4 review count
7
8

byte5
1 int4 anime planet id
2 int4 anime news network id
3 int4 allcinema id
4 str animenfo id
5
6
7
8

ANIME Relationship Types

Some stuff I don't remember, but need to look up.

Empty Table

Byte 1
Bit Decimal Data Field
0 1 String
1 2 String
2 4 String
3 8 String
4 16 String
5 32 String
6 64 String
7 128 String