Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f18e4763
Kaydet (Commit)
f18e4763
authored
Şub 15, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
assume max compression of 255 for ras
Change-Id: I51dfa45b266b6b9361f48aac58f0a4bca8446bdd
üst
445a3d0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
iras.cxx
filter/source/graphicfilter/iras/iras.cxx
+10
-5
No files found.
filter/source/graphicfilter/iras/iras.cxx
Dosyayı görüntüle @
f18e4763
...
...
@@ -168,12 +168,17 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
if
(
!
bOk
)
return
false
;
if
(
mnType
!=
RAS_TYPE_BYTE_ENCODED
)
//simple raw format
//The RLE packets are typically three bytes in size:
//The first byte is a Flag Value indicating the type of RLE packet.
//The second byte is the Run Count.
//The third byte is the Run Value.
//
//for the sake of simplicity we'll assume that RAS_TYPE_BYTE_ENCODED can
//describe data 255 times larger than the data stored
size_t
nMaxCompression
=
mnType
!=
RAS_TYPE_BYTE_ENCODED
?
1
:
255
;
if
(
m_rRAS
.
remainingSize
()
*
nMaxCompression
<
static_cast
<
sal_uInt64
>
(
mnHeight
)
*
mnWidth
*
mnDepth
/
8
)
{
if
(
m_rRAS
.
remainingSize
()
<
static_cast
<
sal_uInt64
>
(
mnHeight
)
*
mnWidth
*
mnDepth
/
8
)
{
return
false
;
}
return
false
;
}
Bitmap
aBmp
(
Size
(
mnWidth
,
mnHeight
),
mnDstBitsPerPix
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment