Changeset 3124


Ignore:
Timestamp:
08/30/07 15:11:37 (13 years ago)
Author:
curtis
Message:
  • Preserve existing codec if none has been set using the IFormatWriter API.
  • Clarify reasoning for commenting out Motion JPEG-B support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/out/QTWriter.java

    r3123 r3124  
    4545  // -- Constants -- 
    4646 
    47   /** Value indicating Motion JPEG-B codec. */ 
    48   public static final int CODEC_MOTION_JPEG_B = 1835692130; 
     47  // NB: Writing to Motion JPEG-B with QTJava seems to be broken. 
     48  ///** Value indicating Motion JPEG-B codec. */ 
     49  //public static final int CODEC_MOTION_JPEG_B = 1835692130; 
    4950 
    5051  /** Value indicating Cinepack codec. */ 
     
    118119    super("QuickTime", "mov"); 
    119120    compressionTypes = new String[] { 
    120       "Uncompressed", /*"Motion JPEG-B", */"Cinepak", "Animation", "H.263", 
    121       "Sorenson", "Sorenson 3", "MPEG 4" 
     121      "Uncompressed", 
     122      // NB: Writing to Motion JPEG-B with QTJava seems to be broken. 
     123      //"Motion JPEG-B", 
     124      "Cinepak", "Animation", "H.263", "Sorenson", "Sorenson 3", "MPEG 4" 
    122125    }; 
    123126 
     
    129132   * Sets the encoded movie's codec. 
    130133   * @param codec Codec value:<ul> 
    131    *   <li>QTWriter.CODEC_MOTION_JPEG_B</li> 
    132134   *   <li>QTWriter.CODEC_CINEPAK</li> 
    133135   *   <li>QTWriter.CODEC_ANIMATION</li> 
     
    602604 
    603605  private void setCodec() { 
    604     if (compression == null) compression = "Uncompressed"; 
     606    if (compression == null) return; 
    605607    if (compression.equals("Uncompressed")) codec = CODEC_RAW; 
     608    // NB: Writing to Motion JPEG-B with QTJava seems to be broken. 
    606609    //else if (compression.equals("Motion JPEG-B")) codec = CODEC_MOTION_JPEG_B; 
    607610    else if (compression.equals("Cinepak")) codec = CODEC_CINEPAK; 
Note: See TracChangeset for help on using the changeset viewer.