diff options
author | Jacek Antonelli | 2008-08-15 23:45:37 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:37 -0500 |
commit | 31ba05810c641f14e8ab5da8ad2aaf527779f6c1 (patch) | |
tree | c4b8d635dfb657fa4cfee7c285f8cadbf24afa90 /linden/indra/newview/llfloatersnapshot.cpp | |
parent | Second Life viewer sources 1.19.1.1 (diff) | |
download | meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.zip meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.gz meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.bz2 meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.xz |
Second Life viewer sources 1.19.1.2
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloatersnapshot.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/newview/llfloatersnapshot.cpp b/linden/indra/newview/llfloatersnapshot.cpp index 9c91348..88e9235 100644 --- a/linden/indra/newview/llfloatersnapshot.cpp +++ b/linden/indra/newview/llfloatersnapshot.cpp | |||
@@ -585,10 +585,10 @@ void LLSnapshotLivePreview::onIdle( void* snapshot_preview ) | |||
585 | previewp->mJPEGImage = NULL; // deletes image | 585 | previewp->mJPEGImage = NULL; // deletes image |
586 | previewp->mJPEGImage = new LLImageJPEG(); | 586 | previewp->mJPEGImage = new LLImageJPEG(); |
587 | previewp->mJPEGImage->setEncodeQuality(llclamp(previewp->mSnapshotQuality, 0, 100)); | 587 | previewp->mJPEGImage->setEncodeQuality(llclamp(previewp->mSnapshotQuality, 0, 100)); |
588 | if (previewp->mJPEGImage->encode(previewp->mRawImage)) | 588 | if (previewp->mJPEGImage->encode(previewp->mRawImage, 0.0f)) |
589 | { | 589 | { |
590 | previewp->mDataSize = previewp->mJPEGImage->getDataSize(); | 590 | previewp->mDataSize = previewp->mJPEGImage->getDataSize(); |
591 | previewp->mJPEGImage->decode(previewp->mRawImageEncoded); | 591 | previewp->mJPEGImage->decode(previewp->mRawImageEncoded, 0.0f); |
592 | } | 592 | } |
593 | } | 593 | } |
594 | else if (previewp->getSnapshotType() == SNAPSHOT_TEXTURE) | 594 | else if (previewp->getSnapshotType() == SNAPSHOT_TEXTURE) |
@@ -601,10 +601,10 @@ void LLSnapshotLivePreview::onIdle( void* snapshot_preview ) | |||
601 | 601 | ||
602 | scaled->biasedScaleToPowerOfTwo(512); | 602 | scaled->biasedScaleToPowerOfTwo(512); |
603 | previewp->mImageScaled[previewp->mCurImageIndex] = TRUE; | 603 | previewp->mImageScaled[previewp->mCurImageIndex] = TRUE; |
604 | if (formatted->encode(scaled)) | 604 | if (formatted->encode(scaled, 0.0f)) |
605 | { | 605 | { |
606 | previewp->mDataSize = formatted->getDataSize(); | 606 | previewp->mDataSize = formatted->getDataSize(); |
607 | formatted->decode(previewp->mRawImageEncoded); | 607 | formatted->decode(previewp->mRawImageEncoded, 0.0f); |
608 | } | 608 | } |
609 | } | 609 | } |
610 | else | 610 | else |
@@ -695,7 +695,7 @@ void LLSnapshotLivePreview::saveTexture() | |||
695 | 695 | ||
696 | scaled->biasedScaleToPowerOfTwo(512); | 696 | scaled->biasedScaleToPowerOfTwo(512); |
697 | 697 | ||
698 | if (formatted->encode(scaled)) | 698 | if (formatted->encode(scaled, 0.0f)) |
699 | { | 699 | { |
700 | LLVFile::writeFile(formatted->getData(), formatted->getDataSize(), gVFS, new_asset_id, LLAssetType::AT_TEXTURE); | 700 | LLVFile::writeFile(formatted->getData(), formatted->getDataSize(), gVFS, new_asset_id, LLAssetType::AT_TEXTURE); |
701 | std::string pos_string; | 701 | std::string pos_string; |