Skip to content

Commit

Permalink
RemoteProjectFile: switch to exr internal type
Browse files Browse the repository at this point in the history
OpenEXR does a better job of compression. This will save some space.
  • Loading branch information
Zack Moratto committed Aug 24, 2012
1 parent 39f0783 commit 7b0a64a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src_plate_old/photk/RemoteProjectFile.cc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -195,23 +195,23 @@ namespace photk {


if ( project_info.drg_channel_type() == "float32" ) { if ( project_info.drg_channel_type() == "float32" ) {
drg.reset( new PlateFile(base_url+"DRG.plate"+postfix, drg.reset( new PlateFile(base_url+"DRG.plate"+postfix,
project_info.plate_manager(), "", 256, "tif", project_info.plate_manager(), "", 256, "exr",
VW_PIXEL_GRAYA, VW_CHANNEL_FLOAT32) ); VW_PIXEL_GRAYA, VW_CHANNEL_FLOAT32) );
} else if ( project_info.drg_channel_type() == "int16" ) { } else if ( project_info.drg_channel_type() == "int16" ) {
drg.reset( new PlateFile(base_url+"DRG.plate"+postfix, drg.reset( new PlateFile(base_url+"DRG.plate"+postfix,
project_info.plate_manager(), "", 256, "tif", project_info.plate_manager(), "", 256, "exr",
VW_PIXEL_GRAYA, VW_CHANNEL_INT16) ); VW_PIXEL_GRAYA, VW_CHANNEL_INT16) );
} else { } else {
drg.reset( new PlateFile(base_url+"DRG.plate"+postfix, drg.reset( new PlateFile(base_url+"DRG.plate"+postfix,
project_info.plate_manager(), "", 256, "tif", project_info.plate_manager(), "", 256, "exr",
VW_PIXEL_GRAYA, VW_CHANNEL_UINT8) ); VW_PIXEL_GRAYA, VW_CHANNEL_UINT8) );
} }
albedo.reset( new PlateFile(base_url+"Albedo.plate"+postfix, albedo.reset( new PlateFile(base_url+"Albedo.plate"+postfix,
project_info.plate_manager(), "", 256, "tif", project_info.plate_manager(), "", 256, "exr",
VW_PIXEL_GRAYA, VW_CHANNEL_FLOAT32) ); VW_PIXEL_GRAYA, VW_CHANNEL_FLOAT32) );
if ( project_info.reflectance() != ProjectMeta::NONE ) { if ( project_info.reflectance() != ProjectMeta::NONE ) {
reflect.reset( new PlateFile(base_url+"Reflectance.plate"+postfix, reflect.reset( new PlateFile(base_url+"Reflectance.plate"+postfix,
project_info.plate_manager(), "", 256, "tif", project_info.plate_manager(), "", 256, "exr",
VW_PIXEL_GRAYA, VW_CHANNEL_FLOAT32) ); VW_PIXEL_GRAYA, VW_CHANNEL_FLOAT32) );
} }
} }
Expand Down

0 comments on commit 7b0a64a

Please sign in to comment.