Changeset View
Changeset View
Standalone View
Standalone View
extern/draco/dracoenc/src/draco/tools/draco_decoder.cc
| Context not available. | |||||
| } | } | ||||
| // Save the decoded geometry into a file. | // Save the decoded geometry into a file. | ||||
| // TODO(ostava): Currently only .ply and .obj are supported. | // TODO(fgalligan): Change extension code to look for '.'. | ||||
| const std::string extension = draco::parser::ToLower( | const std::string extension = draco::parser::ToLower( | ||||
| options.output.size() >= 4 | options.output.size() >= 4 | ||||
| ? options.output.substr(options.output.size() - 4) | ? options.output.substr(options.output.size() - 4) | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| } else { | } else { | ||||
| printf("Invalid extension of the output file. Use either .ply or .obj\n"); | printf( | ||||
| "Invalid extension of the output file. Use either .ply, .obj, or " | |||||
| ".gltf\n"); | |||||
| return -1; | return -1; | ||||
| } | } | ||||
| printf("Decoded geometry saved to %s (%" PRId64 " ms to decode)\n", | printf("Decoded geometry saved to %s (%" PRId64 " ms to decode)\n", | ||||
| Context not available. | |||||