日期:2009-03-23  浏览次数:20467 次

void 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*/
    }
    }
    }
else {
    if (GetNextBit()){
          return 0x4;/*b 4*/
    }
else {
    if (GetNextBit()){
     if (GetNextBit()){
          return 0x11;/*2b 6*/
    }
else {
         return 0x10;/*2a 6*/
    }
    }
else {
         return 0x9;/*14 5*/
    }
    }
    }
    }
    }
else {
    if (!GetNextBit()){
     if (!GetNextBit()){
     if (!GetNextBit()){
     if (!GetNextBit()){
     if (!GetNextBit()){
     if (!GetNextBit()){
     /*error in analysis 4624*/
    return 0
;    }
else {
    if (GetNextBit()){
          return 0x1e;/*3 8*/
    }
else {
         return 0x1d;/*2 8*/
    }
    }
    }
else {
    if (GetNextBit()){
          return 0x16;/*3 7*/
    }
else {
    if (Get