Added a setting "raw:half_size" that can be used to reduce the image size by half which greatly speeds up the conversion.

Maybe we should introduce a more generic "preview mode" to the translators that could automatically trigger those things?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20747 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-04-18 12:20:55 +00:00
parent 5878fb7998
commit 82bb12bfd0
@@ -195,6 +195,10 @@ RAWTranslator::DerivedTranslate(BPositionIO* source,
if (settings != NULL) {
settings->FindBool(B_TRANSLATOR_EXT_HEADER_ONLY, &headerOnly);
bool half;
if (settings->FindBool("raw:half_size", &half) == B_OK && half)
raw.SetHalfSize(true);
if (settings->FindMessenger(kProgressMonitor,
&progressData.monitor) == B_OK