[svn] / trunk / xvidcore / vfw / src / codec.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/vfw/src/codec.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1398, Fri Apr 2 21:29:21 2004 UTC revision 1460, Wed May 26 09:39:00 2004 UTC
# Line 348  Line 348 
348          return 0;          return 0;
349  }  }
350    
 static int exit_dll(CODEC* codec)  
 {  
         if(codec->m_hdll)  
         {  
                 FreeLibrary(codec->m_hdll);  
                 codec->m_hdll = NULL;  
                 codec->xvid_global_func = NULL;  
                 codec->xvid_encore_func = NULL;  
                 codec->xvid_decore_func = NULL;  
                 codec->xvid_plugin_single_func = NULL;  
                 codec->xvid_plugin_2pass1_func = NULL;  
                 codec->xvid_plugin_2pass2_func = NULL;  
                 codec->xvid_plugin_lumimasking_func = NULL;  
                 codec->xvid_plugin_psnr_func = NULL;  
         }  
         return 0;  
 }  
   
351  /* constant-quant zones for fixed quant encoding */  /* constant-quant zones for fixed quant encoding */
352  static void  static void
353  prepare_cquant_zones(CONFIG * config) {  prepare_cquant_zones(CONFIG * config) {
# Line 626  Line 608 
608                          codec->xvid_encore_func(codec->ehandle, XVID_ENC_DESTROY, NULL, NULL);                          codec->xvid_encore_func(codec->ehandle, XVID_ENC_DESTROY, NULL, NULL);
609                          codec->ehandle = NULL;                          codec->ehandle = NULL;
610                  }                  }
                 exit_dll(codec);  
611          }          }
612    
613          if (codec->config.display_status)          if (codec->config.display_status)
# Line 943  Line 924 
924          outhdr->biPlanes = 1;          outhdr->biPlanes = 1;
925          outhdr->biBitCount = 24;          outhdr->biBitCount = 24;
926          outhdr->biCompression = BI_RGB; /* sonic foundry vegas video v3 only supports BI_RGB */          outhdr->biCompression = BI_RGB; /* sonic foundry vegas video v3 only supports BI_RGB */
927          outhdr->biSizeImage = outhdr->biWidth * outhdr->biHeight * outhdr->biBitCount;          outhdr->biSizeImage = outhdr->biWidth * outhdr->biHeight * outhdr->biBitCount / 8;
928          outhdr->biXPelsPerMeter = 0;          outhdr->biXPelsPerMeter = 0;
929          outhdr->biYPelsPerMeter = 0;          outhdr->biYPelsPerMeter = 0;
930          outhdr->biClrUsed = 0;          outhdr->biClrUsed = 0;
# Line 1000  Line 981 
981          REG_GET_N("Brightness", pp_brightness, 0);          REG_GET_N("Brightness", pp_brightness, 0);
982          REG_GET_N("Deblock_Y",  pp_dy, 0)          REG_GET_N("Deblock_Y",  pp_dy, 0)
983          REG_GET_N("Deblock_UV", pp_duv, 0)          REG_GET_N("Deblock_UV", pp_duv, 0)
984          REG_GET_N("Dering",  pp_dr, 0)          REG_GET_N("Dering_Y",  pp_dry, 0)
985            REG_GET_N("Dering_UV", pp_druv, 0)
986          REG_GET_N("FilmEffect", pp_fe, 0)          REG_GET_N("FilmEffect", pp_fe, 0)
987    
988          RegCloseKey(hKey);          RegCloseKey(hKey);
# Line 1016  Line 998 
998                          codec->xvid_decore_func(codec->dhandle, XVID_DEC_DESTROY, NULL, NULL);                          codec->xvid_decore_func(codec->dhandle, XVID_DEC_DESTROY, NULL, NULL);
999                          codec->dhandle = NULL;                          codec->dhandle = NULL;
1000                  }                  }
                 exit_dll(codec);  
1001          }          }
1002    
1003          return ICERR_OK;          return ICERR_OK;
# Line 1096  Line 1077 
1077    
1078          if (pp_dy)frame.general |= XVID_DEBLOCKY;          if (pp_dy)frame.general |= XVID_DEBLOCKY;
1079          if (pp_duv) frame.general |= XVID_DEBLOCKUV;          if (pp_duv) frame.general |= XVID_DEBLOCKUV;
1080  /*      if (pp_dr) frame.general |= XVID_DERING; */          if (pp_dry) frame.general |= XVID_DERINGY;
1081            if (pp_druv) frame.general |= XVID_DERINGUV;
1082          if (pp_fe) frame.general |= XVID_FILMEFFECT;          if (pp_fe) frame.general |= XVID_FILMEFFECT;
1083    
1084          frame.brightness = pp_brightness;          frame.brightness = pp_brightness;

Legend:
Removed from v.1398  
changed lines
  Added in v.1460

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4