Changeset 7285 for trunk


Ignore:
Timestamp:
12/01/10 16:29:03 (9 years ago)
Author:
curtis
Message:

Add compression type to original metadata table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/AVIReader.java

    r7220 r7285  
    254254    core[0].interleaved = bmpBitsPerPixel != 16; 
    255255 
     256    addGlobalMeta("Compression", getCodecName(bmpCompression)); 
     257 
    256258    if (bmpCompression == JPEG) { 
    257259      long fileOff = offsets.get(0).longValue(); 
     
    635637  } 
    636638 
     639  private String getCodecName(final int bmpCompression) { 
     640    switch (bmpCompression) { 
     641      case 0: 
     642        return "Raw (uncompressed)"; 
     643      case MSRLE: 
     644        return "Microsoft Run-Length Encoding (MSRLE)"; 
     645      case MS_VIDEO: 
     646        return "Microsoft Video (MSV1)"; 
     647      case JPEG: 
     648        return "JPEG"; 
     649      //case CINEPAK: 
     650      //  return "Cinepak"; 
     651      default: 
     652        return "Unknown"; 
     653    } 
     654  } 
     655 
    637656} 
Note: See TracChangeset for help on using the changeset viewer.