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
764b47e8
Kaydet (Commit)
764b47e8
authored
Eyl 24, 2011
tarafından
Pierre-André Jacquod
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cppcheck: reduce scope of var in vcl bitmap3.cxx
üst
9e1966d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
bitmap3.cxx
vcl/source/gdi/bitmap3.cxx
+12
-13
No files found.
vcl/source/gdi/bitmap3.cxx
Dosyayı görüntüle @
764b47e8
...
...
@@ -1933,7 +1933,6 @@ void Bitmap::ImplMedianCut( sal_uLong* pColBuf, BitmapPalette& rPal,
const
long
nRLen
=
nR2
-
nR1
;
const
long
nGLen
=
nG2
-
nG1
;
const
long
nBLen
=
nB2
-
nB1
;
long
nR
,
nG
,
nB
;
sal_uLong
*
pBuf
=
pColBuf
;
if
(
!
nRLen
&&
!
nGLen
&&
!
nBLen
)
...
...
@@ -1952,11 +1951,11 @@ void Bitmap::ImplMedianCut( sal_uLong* pColBuf, BitmapPalette& rPal,
{
long
nPixSum
=
0
,
nRSum
=
0
,
nGSum
=
0
,
nBSum
=
0
;
for
(
nR
=
nR1
;
nR
<=
nR2
;
nR
++
)
for
(
long
nR
=
nR1
;
nR
<=
nR2
;
nR
++
)
{
for
(
nG
=
nG1
;
nG
<=
nG2
;
nG
++
)
for
(
long
nG
=
nG1
;
nG
<=
nG2
;
nG
++
)
{
for
(
nB
=
nB1
;
nB
<=
nB2
;
nB
++
)
for
(
long
nB
=
nB1
;
nB
<=
nB2
;
nB
++
)
{
nPixSum
=
pBuf
[
RGB15
(
nR
,
nG
,
nB
)
];
...
...
@@ -1983,13 +1982,13 @@ void Bitmap::ImplMedianCut( sal_uLong* pColBuf, BitmapPalette& rPal,
if
(
nBLen
>
nGLen
&&
nBLen
>
nRLen
)
{
nB
=
nB1
-
1
;
long
nB
=
nB1
-
1
;
while
(
nPixNew
<
nTest
)
{
nB
++
,
nPixOld
=
nPixNew
;
for
(
nR
=
nR1
;
nR
<=
nR2
;
nR
++
)
for
(
nG
=
nG1
;
nG
<=
nG2
;
nG
++
)
for
(
long
nR
=
nR1
;
nR
<=
nR2
;
nR
++
)
for
(
long
nG
=
nG1
;
nG
<=
nG2
;
nG
++
)
nPixNew
+=
pBuf
[
RGB15
(
nR
,
nG
,
nB
)
];
}
...
...
@@ -2006,13 +2005,13 @@ void Bitmap::ImplMedianCut( sal_uLong* pColBuf, BitmapPalette& rPal,
}
else
if
(
nGLen
>
nRLen
)
{
nG
=
nG1
-
1
;
long
nG
=
nG1
-
1
;
while
(
nPixNew
<
nTest
)
{
nG
++
,
nPixOld
=
nPixNew
;
for
(
nR
=
nR1
;
nR
<=
nR2
;
nR
++
)
for
(
nB
=
nB1
;
nB
<=
nB2
;
nB
++
)
for
(
long
nR
=
nR1
;
nR
<=
nR2
;
nR
++
)
for
(
long
nB
=
nB1
;
nB
<=
nB2
;
nB
++
)
nPixNew
+=
pBuf
[
RGB15
(
nR
,
nG
,
nB
)
];
}
...
...
@@ -2029,13 +2028,13 @@ void Bitmap::ImplMedianCut( sal_uLong* pColBuf, BitmapPalette& rPal,
}
else
{
nR
=
nR1
-
1
;
long
nR
=
nR1
-
1
;
while
(
nPixNew
<
nTest
)
{
nR
++
,
nPixOld
=
nPixNew
;
for
(
nG
=
nG1
;
nG
<=
nG2
;
nG
++
)
for
(
nB
=
nB1
;
nB
<=
nB2
;
nB
++
)
for
(
long
nG
=
nG1
;
nG
<=
nG2
;
nG
++
)
for
(
long
nB
=
nB1
;
nB
<=
nB2
;
nB
++
)
nPixNew
+=
pBuf
[
RGB15
(
nR
,
nG
,
nB
)
];
}
...
...
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