• λ我爱Aspx >> Asp.Net >> 上面提到的原代码(C语言)—2
  • 上面提到的原代码(C语言)—2

  • :aspxer  Դ:internet  :2007-5-31 2:20:26  ؼ:
  • 上面提到的原代码(C语言)—2

    MyImageDestory(pmyimg p){

    free(p->data);

    free(p);

    }

    int huffman1(){

    if (GetNextBit()){

    if (GetNextBit()){

    if (GetNextBit()){

    if (GetNextBit()){

    return 0x7;/*f 4*/

    }

    else {

    return 0x6;/*e 4*/

    }

    }

    else {

    if (GetNextBit()){

    if (GetNextBit()){

    return 0x40;/*1b 5*/

    }

    else {

    if (GetNextBit()){

    return 0xf;/*35 6*/

    }

    else {

    return 0xe;/*34 6*/

    }

    }

    }

    else {

    return 0x5;/*c 4*/

    }

    }

    }

    else {

    if (!GetNextBit()){

    if (!GetNextBit()){

    return 0x3;/*8 4*/

    }

    else {

    if (GetNextBit()){

    return 0x8;/*13 5*/

    }

    else {

    return 0x80;/*12 5*/

    Ҷƪл˵?
  • һƪ找到了,JPG格式原理。
    һƪ上面提到的原代码(C语言)—1