コード例 #1
0
 /*      */ public byte[] getData(int paramInt) /*      */ {
   /* 1354 */ if (ProfileDeferralMgr.deferring) {
     /* 1355 */ ProfileDeferralMgr.activateProfiles();
     /*      */ }
   /*      */
   /* 1358 */ return getData(this.ID, paramInt);
   /*      */ }
コード例 #2
0
 /*      */ public void setData(int paramInt, byte[] paramArrayOfByte) /*      */ {
   /* 1402 */ if (ProfileDeferralMgr.deferring) {
     /* 1403 */ ProfileDeferralMgr.activateProfiles();
     /*      */ }
   /*      */
   /* 1406 */ CMSManager.getModule().setTagData(this.ID, paramInt, paramArrayOfByte);
   /*      */ }
コード例 #3
0
 /*      */ public static ICC_Profile getInstance(byte[] paramArrayOfByte) /*      */ {
   /*  774 */ if (ProfileDeferralMgr.deferring) /*  775 */ ProfileDeferralMgr.activateProfiles();
   /*      */ long l;
   /*      */ try
   /*      */ {
     /*  779 */ l = CMSManager.getModule().loadProfile(paramArrayOfByte);
     /*      */ } catch (CMMException localCMMException1) {
     /*  781 */ throw new IllegalArgumentException("Invalid ICC Profile Data");
     /*      */ }
   /*      */ Object localObject;
   /*      */ try {
     /*  785 */ if ((getColorSpaceType(l) == 6)
         && (getData(l, 2004119668) != null)
         && (getData(l, 1800688195) != null))
     /*      */ {
       /*  788 */ localObject = new ICC_ProfileGray(l);
       /*      */ }
     /*  790 */ else if ((getColorSpaceType(l) == 5)
         && (getData(l, 2004119668) != null)
         && (getData(l, 1918392666) != null)
         && (getData(l, 1733843290) != null)
         && (getData(l, 1649957210) != null)
         && (getData(l, 1918128707) != null)
         && (getData(l, 1733579331) != null)
         && (getData(l, 1649693251) != null))
     /*      */ {
       /*  798 */ localObject = new ICC_ProfileRGB(l);
       /*      */ }
     /*      */ else /*  801 */ localObject = new ICC_Profile(l);
     /*      */ }
   /*      */ catch (CMMException localCMMException2) {
     /*  804 */ localObject = new ICC_Profile(l);
     /*      */ }
   /*  806 */ return localObject;
   /*      */ }
コード例 #4
0
 /*      */ ICC_Profile(ProfileDeferralInfo paramProfileDeferralInfo) /*      */ {
   /*  739 */ this.deferralInfo = paramProfileDeferralInfo;
   /*  740 */ this.profileActivator =
       new ProfileActivator() {
         /*      */ public void activate() throws ProfileDataException {
           /*  742 */ ICC_Profile.this.activateDeferredProfile();
           /*      */ }
         /*      */ };
   /*  745 */ ProfileDeferralMgr.registerDeferral(this.profileActivator);
   /*      */ }
コード例 #5
0
 /*      */ public byte[] getData() /*      */ {
   /* 1319 */ if (ProfileDeferralMgr.deferring) {
     /* 1320 */ ProfileDeferralMgr.activateProfiles();
     /*      */ }
   /*      */
   /* 1323 */ PCMM localPCMM = CMSManager.getModule();
   /*      */
   /* 1326 */ int i = localPCMM.getProfileSize(this.ID);
   /*      */
   /* 1328 */ byte[] arrayOfByte = new byte[i];
   /*      */
   /* 1331 */ localPCMM.getProfileData(this.ID, arrayOfByte);
   /*      */
   /* 1333 */ return arrayOfByte;
   /*      */ }
コード例 #6
0
 /*      */ public int getPCSType() /*      */ {
   /* 1255 */ if (ProfileDeferralMgr.deferring) {
     /* 1256 */ ProfileDeferralMgr.activateProfiles();
     /*      */ }
   /* 1258 */ return getPCSType(this.ID);
   /*      */ }
コード例 #7
0
 /*      */ protected void finalize() /*      */ {
   /*  753 */ if (this.ID != 0L) /*  754 */ CMSManager.getModule().freeProfile(this.ID);
   /*  755 */ else if (this.profileActivator != null)
     /*  756 */ ProfileDeferralMgr.unregisterDeferral(this.profileActivator);
   /*      */ }