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
47169087
Kaydet (Commit)
47169087
authored
May 21, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unnecessary GZCodec derivation
Change-Id: Id710a1fe4a3c1593add69bb2a7014d26f9499e87
üst
a1ec916d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
22 deletions
+11
-22
svgfilter.cxx
filter/source/svg/svgfilter.cxx
+2
-2
svgimport.cxx
filter/source/svg/svgimport.cxx
+2
-2
zcodec.hxx
include/tools/zcodec.hxx
+3
-14
graphicfilter.cxx
vcl/source/filter/graphicfilter.cxx
+4
-4
No files found.
filter/source/svg/svgfilter.cxx
Dosyayı görüntüle @
47169087
...
@@ -370,8 +370,8 @@ OUString SAL_CALL SVGFilter::detect(Sequence<PropertyValue>& rDescriptor) throw
...
@@ -370,8 +370,8 @@ OUString SAL_CALL SVGFilter::detect(Sequence<PropertyValue>& rDescriptor) throw
return
OUString
();
return
OUString
();
xSeek
->
seek
(
0
);
xSeek
->
seek
(
0
);
G
ZCodec
aCodec
;
ZCodec
aCodec
;
aCodec
.
BeginCompression
();
aCodec
.
BeginCompression
(
ZCODEC_DEFAULT_COMPRESSION
,
false
,
true
);
aCodec
.
Decompress
(
*
aStream
.
get
(),
*
pMemoryStream
);
aCodec
.
Decompress
(
*
aStream
.
get
(),
*
pMemoryStream
);
aCodec
.
EndCompression
();
aCodec
.
EndCompression
();
pMemoryStream
->
Seek
(
STREAM_SEEK_TO_BEGIN
);
pMemoryStream
->
Seek
(
STREAM_SEEK_TO_BEGIN
);
...
...
filter/source/svg/svgimport.cxx
Dosyayı görüntüle @
47169087
...
@@ -67,8 +67,8 @@ bool SVGFilter::implImport( const Sequence< PropertyValue >& rDescriptor )
...
@@ -67,8 +67,8 @@ bool SVGFilter::implImport( const Sequence< PropertyValue >& rDescriptor )
return
false
;
return
false
;
SvStream
*
pMemoryStream
=
new
SvMemoryStream
;
SvStream
*
pMemoryStream
=
new
SvMemoryStream
;
G
ZCodec
aCodec
;
ZCodec
aCodec
;
aCodec
.
BeginCompression
();
aCodec
.
BeginCompression
(
ZCODEC_DEFAULT_COMPRESSION
,
false
,
true
);
aCodec
.
Decompress
(
*
aStream
.
get
(),
*
pMemoryStream
);
aCodec
.
Decompress
(
*
aStream
.
get
(),
*
pMemoryStream
);
aCodec
.
EndCompression
();
aCodec
.
EndCompression
();
pMemoryStream
->
Seek
(
STREAM_SEEK_TO_BEGIN
);
pMemoryStream
->
Seek
(
STREAM_SEEK_TO_BEGIN
);
...
...
include/tools/zcodec.hxx
Dosyayı görüntüle @
47169087
...
@@ -52,10 +52,10 @@ private:
...
@@ -52,10 +52,10 @@ private:
public
:
public
:
ZCodec
(
sal_uIntPtr
nInBuf
=
0x8000UL
,
sal_uIntPtr
nOutBuf
=
0x8000UL
);
ZCodec
(
sal_uIntPtr
nInBuf
=
0x8000UL
,
sal_uIntPtr
nOutBuf
=
0x8000UL
);
virtual
~
ZCodec
();
~
ZCodec
();
v
irtual
void
BeginCompression
(
int
nCompressLevel
=
ZCODEC_DEFAULT_COMPRESSION
,
bool
updateCrc
=
false
,
bool
gzLib
=
false
);
v
oid
BeginCompression
(
int
nCompressLevel
=
ZCODEC_DEFAULT_COMPRESSION
,
bool
updateCrc
=
false
,
bool
gzLib
=
false
);
virtual
long
EndCompression
();
long
EndCompression
();
bool
IsFinished
()
const
{
return
mbFinish
;
}
bool
IsFinished
()
const
{
return
mbFinish
;
}
long
Compress
(
SvStream
&
rIStm
,
SvStream
&
rOStm
);
long
Compress
(
SvStream
&
rIStm
,
SvStream
&
rOStm
);
...
@@ -72,17 +72,6 @@ public:
...
@@ -72,17 +72,6 @@ public:
sal_uIntPtr
GetCRC
();
sal_uIntPtr
GetCRC
();
};
};
class
GZCodec
:
public
ZCodec
{
public
:
GZCodec
(){};
virtual
~
GZCodec
(){};
virtual
void
BeginCompression
(
int
nCompressLevel
=
ZCODEC_DEFAULT_COMPRESSION
,
bool
updateCrc
=
false
,
bool
gzLib
=
true
)
SAL_OVERRIDE
{
ZCodec
::
BeginCompression
(
nCompressLevel
,
updateCrc
,
gzLib
);
};
};
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl/source/filter/graphicfilter.cxx
Dosyayı görüntüle @
47169087
...
@@ -655,9 +655,9 @@ static bool ImpPeekGraphicFormat( SvStream& rStream, OUString& rFormatExtension,
...
@@ -655,9 +655,9 @@ static bool ImpPeekGraphicFormat( SvStream& rStream, OUString& rFormatExtension,
// check if it is gzipped -> svgz
// check if it is gzipped -> svgz
if
(
sFirstBytes
[
0
]
==
0x1F
&&
sFirstBytes
[
1
]
==
0x8B
)
if
(
sFirstBytes
[
0
]
==
0x1F
&&
sFirstBytes
[
1
]
==
0x8B
)
{
{
G
ZCodec
aCodec
;
ZCodec
aCodec
;
rStream
.
Seek
(
nStreamPos
);
rStream
.
Seek
(
nStreamPos
);
aCodec
.
BeginCompression
();
aCodec
.
BeginCompression
(
ZCODEC_DEFAULT_COMPRESSION
,
false
,
true
);
nDecompressedSize
=
aCodec
.
Read
(
rStream
,
sExtendedOrDecompressedFirstBytes
,
2048
);
nDecompressedSize
=
aCodec
.
Read
(
rStream
,
sExtendedOrDecompressedFirstBytes
,
2048
);
nCheckSize
=
nDecompressedSize
<
256
?
nDecompressedSize
:
256
;
nCheckSize
=
nDecompressedSize
<
256
?
nDecompressedSize
:
256
;
aCodec
.
EndCompression
();
aCodec
.
EndCompression
();
...
@@ -1517,10 +1517,10 @@ sal_uInt16 GraphicFilter::ImportGraphic( Graphic& rGraphic, const OUString& rPat
...
@@ -1517,10 +1517,10 @@ sal_uInt16 GraphicFilter::ImportGraphic( Graphic& rGraphic, const OUString& rPat
if
(
aTwoBytes
[
0
]
==
0x1F
&&
aTwoBytes
[
1
]
==
0x8B
)
if
(
aTwoBytes
[
0
]
==
0x1F
&&
aTwoBytes
[
1
]
==
0x8B
)
{
{
SvMemoryStream
aMemStream
;
SvMemoryStream
aMemStream
;
G
ZCodec
aCodec
;
ZCodec
aCodec
;
long
nMemoryLength
;
long
nMemoryLength
;
aCodec
.
BeginCompression
();
aCodec
.
BeginCompression
(
ZCODEC_DEFAULT_COMPRESSION
,
false
,
true
);
nMemoryLength
=
aCodec
.
Decompress
(
rIStream
,
aMemStream
);
nMemoryLength
=
aCodec
.
Decompress
(
rIStream
,
aMemStream
);
aCodec
.
EndCompression
();
aCodec
.
EndCompression
();
...
...
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