[svn] / branches / dev-api-4 / xvidcore / vfw / src / codec.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/vfw/src/codec.c

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

revision 1305, Sat Jan 3 12:06:11 2004 UTC revision 1326, Fri Jan 23 11:17:24 2004 UTC
# Line 271  Line 271 
271                           void *param2)                           void *param2)
272  {  {
273          switch (opt) {          switch (opt) {
         case XVID_PLG_INFO:  
274          case XVID_PLG_CREATE:          case XVID_PLG_CREATE:
275                    *((void**)param2) = NULL;
276            case XVID_PLG_INFO:
277          case XVID_PLG_DESTROY:          case XVID_PLG_DESTROY:
278          case XVID_PLG_BEFORE:          case XVID_PLG_BEFORE:
279                  return 0;                  return 0;
# Line 848  Line 849 
849          return ICERR_OK;          return ICERR_OK;
850  }  }
851    
852    #define REG_GET_N(X, Y, Z) \
853    { \
854            DWORD size = sizeof(int); \
855            if (RegQueryValueEx(hKey, X, 0, 0, (LPBYTE)&Y, &size) != ERROR_SUCCESS) { \
856                    Y=Z; \
857            } \
858    }while(0)
859    
860  LRESULT decompress_begin(CODEC * codec, BITMAPINFO * lpbiInput, BITMAPINFO * lpbiOutput)  LRESULT decompress_begin(CODEC * codec, BITMAPINFO * lpbiInput, BITMAPINFO * lpbiOutput)
861  {  {
862          xvid_gbl_init_t init;          xvid_gbl_init_t init;
863          xvid_dec_create_t create;          xvid_dec_create_t create;
864            HKEY hKey;
865    
866          if (init_dll() != 0) return ICERR_ERROR;          if (init_dll() != 0) return ICERR_ERROR;
867    
# Line 883  Line 892 
892    
893          codec->dhandle = create.handle;          codec->dhandle = create.handle;
894    
895            RegOpenKeyEx(XVID_REG_KEY, XVID_REG_PARENT "\\" XVID_REG_CHILD, 0, KEY_READ, &hKey);
896    
897            REG_GET_N("Deblock_Y",  pp_dy, 0)
898            REG_GET_N("Deblock_UV", pp_duv, 0)
899            REG_GET_N("Dering",  pp_dr, 0)
900            REG_GET_N("FilmEffect", pp_fe, 0)
901    
902            RegCloseKey(hKey);
903    
904          return ICERR_OK;          return ICERR_OK;
905  }  }
906    
# Line 973  Line 991 
991                  frame.output.csp = XVID_CSP_NULL;                  frame.output.csp = XVID_CSP_NULL;
992          }          }
993    
994            if (pp_dy)frame.general |= XVID_DEBLOCKY;
995            if (pp_duv) frame.general |= XVID_DEBLOCKUV;
996    /*      if (pp_dr) frame.general |= XVID_DERING; */
997            if (pp_fe) frame.general |= XVID_FILMEFFECT;
998    
999          switch (xvid_decore_func(codec->dhandle, XVID_DEC_DECODE, &frame, NULL))          switch (xvid_decore_func(codec->dhandle, XVID_DEC_DECODE, &frame, NULL))
1000          {          {
1001          case XVID_ERR_FAIL :          case XVID_ERR_FAIL :

Legend:
Removed from v.1305  
changed lines
  Added in v.1326

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