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
16f5f716
Kaydet (Commit)
16f5f716
authored
Şub 14, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
reduce scope of bPalette
Change-Id: Icc1fd48e72be6c550b03008a6d7b81bf8a903d44
üst
31de0ac3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
iras.cxx
filter/source/graphicfilter/iras/iras.cxx
+4
-4
No files found.
filter/source/graphicfilter/iras/iras.cxx
Dosyayı görüntüle @
16f5f716
...
@@ -50,7 +50,6 @@ private:
...
@@ -50,7 +50,6 @@ private:
sal_Int32
mnDepth
,
mnImageDatSize
,
mnType
;
sal_Int32
mnDepth
,
mnImageDatSize
,
mnType
;
sal_Int32
mnColorMapType
,
mnColorMapSize
;
sal_Int32
mnColorMapType
,
mnColorMapSize
;
sal_uInt8
mnRepCount
,
mnRepVal
;
// RLE Decoding
sal_uInt8
mnRepCount
,
mnRepVal
;
// RLE Decoding
bool
mbPalette
;
bool
ImplReadBody
(
BitmapWriteAccess
*
pAcc
);
bool
ImplReadBody
(
BitmapWriteAccess
*
pAcc
);
bool
ImplReadHeader
();
bool
ImplReadHeader
();
...
@@ -77,7 +76,6 @@ RASReader::RASReader(SvStream &rRAS)
...
@@ -77,7 +76,6 @@ RASReader::RASReader(SvStream &rRAS)
,
mnColorMapSize
(
0
)
,
mnColorMapSize
(
0
)
,
mnRepCount
(
0
)
,
mnRepCount
(
0
)
,
mnRepVal
(
0
)
,
mnRepVal
(
0
)
,
mbPalette
(
false
)
{
{
}
}
...
@@ -106,6 +104,8 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
...
@@ -106,6 +104,8 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
if
(
mnDstBitsPerPix
<=
8
)
// paletten bildchen
if
(
mnDstBitsPerPix
<=
8
)
// paletten bildchen
{
{
bool
bPalette
(
false
);
if
(
mnColorMapType
==
RAS_COLOR_RAW_MAP
)
// RAW Colormap wird geskipped
if
(
mnColorMapType
==
RAS_COLOR_RAW_MAP
)
// RAW Colormap wird geskipped
{
{
sal_uLong
nCurPos
=
m_rRAS
.
Tell
();
sal_uLong
nCurPos
=
m_rRAS
.
Tell
();
...
@@ -130,7 +130,7 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
...
@@ -130,7 +130,7 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
{
{
pAcc
->
SetPaletteColor
(
i
,
BitmapColor
(
nRed
[
i
],
nGreen
[
i
],
nBlue
[
i
]
)
);
pAcc
->
SetPaletteColor
(
i
,
BitmapColor
(
nRed
[
i
],
nGreen
[
i
],
nBlue
[
i
]
)
);
}
}
m
bPalette
=
true
;
bPalette
=
true
;
}
}
else
else
return
false
;
return
false
;
...
@@ -139,7 +139,7 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
...
@@ -139,7 +139,7 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
else
if
(
mnColorMapType
!=
RAS_COLOR_NO_MAP
)
// alles andere ist kein standard
else
if
(
mnColorMapType
!=
RAS_COLOR_NO_MAP
)
// alles andere ist kein standard
return
false
;
return
false
;
if
(
!
m
bPalette
)
if
(
!
bPalette
)
{
{
mnDstColors
=
1
<<
mnDstBitsPerPix
;
mnDstColors
=
1
<<
mnDstBitsPerPix
;
pAcc
->
SetPaletteEntryCount
(
mnDstColors
);
pAcc
->
SetPaletteEntryCount
(
mnDstColors
);
...
...
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