Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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ç
Batuhan Osman TASKAYA
cpython
Commits
434493b2
Kaydet (Commit)
434493b2
authored
Mar 14, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Logical markup.
Replace ugly {description} with a {tableii}, for the option descriptions.
üst
a8912306
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
74 deletions
+84
-74
libjpeg.tex
Doc/lib/libjpeg.tex
+42
-37
libjpeg.tex
Doc/libjpeg.tex
+42
-37
No files found.
Doc/lib/libjpeg.tex
Dosyayı görüntüle @
434493b2
...
@@ -2,51 +2,56 @@
...
@@ -2,51 +2,56 @@
\label
{
module-jpeg
}
\label
{
module-jpeg
}
\bimodindex
{
jpeg
}
\bimodindex
{
jpeg
}
The module
\
cod
e
{
jpeg
}
provides access to the jpeg compressor and
The module
\
modul
e
{
jpeg
}
provides access to the jpeg compressor and
decompressor written by the Independent JPEG Group. JPEG is a (draft?)
\
decompressor written by the Independent JPEG Group. JPEG is a (draft?)
standard for compressing pictures. For details on jpeg or the
standard for compressing pictures. For details on jpeg or the
Independent JPEG Group software refer to the JPEG standard or the
Independent JPEG Group software refer to the JPEG standard or the
documentation provided with the software.
documentation provided with the software.
The
\code
{
jpeg
}
module defines these functions:
The
\module
{
jpeg
}
module defines an exception and some functions.
\setindexsubitem
{
(in module jpeg)
}
\begin{excdesc}
{
error
}
\begin{funcdesc}
{
compress
}{
data
\,
w
\,
h
\,
b
}
Exception raised by
\function
{
compress()
}
and
\function
{
decompress()
}
Treat data as a pixmap of width
\var
{
w
}
and height
\var
{
h
}
, with
\var
{
b
}
bytes per
in case of errors.
pixel. The data is in SGI GL order, so the first pixel is in the
\end{excdesc}
lower-left corner. This means that
\code
{
lrectread
}
return data can
immediately be passed to compress. Currently only 1 byte and 4 byte
\begin{funcdesc}
{
compress
}{
data, w, h, b
}
pixels are allowed, the former being treated as greyscale and the
Treat data as a pixmap of width
\var
{
w
}
and height
\var
{
h
}
, with
latter as RGB color. Compress returns a string that contains the
\var
{
b
}
bytes per pixel. The data is in SGI GL order, so the first
compressed picture, in JFIF format.
pixel is in the lower-left corner. This means that
\code
{
gl.lrectread
}
return data can immediately be passed to
\function
{
compress()
}
.
Currently only 1 byte and 4 byte pixels are allowed, the former being
treated as greyscale and the latter as RGB color.
\function
{
compress()
}
returns a string that contains the compressed
picture, in JFIF format.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
decompress
}{
data
}
\begin{funcdesc}
{
decompress
}{
data
}
Data is a string containing a picture in JFIF format. It returns a
Data is a string containing a picture in JFIF format. It returns a
tuple
tuple
\code
{
(
\var
{
data
}
,
\var
{
width
}
,
\var
{
height
}
,
\
code
{
(
\var
{
data
}
,
\var
{
width
}
,
\var
{
height
}
,
\var
{
bytesperpixel
}
)
}
.
\
var
{
bytesperpixel
}
)
}
. Again, the data is suitable to pass to
Again, the data is suitable to pass to
\code
{
lrectwrite
}
.
\code
{
gl.
lrectwrite
}
.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
setoption
}{
name
\,
value
}
\begin{funcdesc}
{
setoption
}{
name, value
}
Set various options. Subsequent compress and decompress calls
Set various options. Subsequent
\function
{
compress()
}
and
will use these options. The following options are available:
\function
{
decompress()
}
calls will use these options. The following
\begin{description}
options are available:
\item
[\code{'forcegray' }]
Force output to be grayscale, even if input is RGB.
\begin{tableii}
{
|l|l|
}{
code
}{
Option
}{
Effect
}
\lineii
{
'forcegray'
}{
%
\item
[\code{'quality' }]
Force output to be grayscale, even if input is RGB.
}
Set the quality of the compressed image to a
\lineii
{
'quality'
}{
%
value between
\code
{
0
}
and
\code
{
100
}
(default is
\code
{
75
}
). Compress only.
Set the quality of the compressed image to a value between
\code
{
0
}
and
\code
{
100
}
(default is
\code
{
75
}
).
\\
\item
[\code{'optimize' }]
&
This only affects compression.
}
Perform Huffman table optimization. Takes longer, but results in
\lineii
{
'optimize'
}{
%
smaller compressed image. Compress only.
Perform Huffman table optimization. Takes longer, but results in
smaller compressed
\\
\item
[\code{'smooth' }]
&
image. This only affects compression.
}
Perform inter-block smoothing on uncompressed image. Only useful for
\lineii
{
'smooth'
}{
%
low-quality images. Decompress only.
Perform inter-block smoothing on uncompressed image. Only useful
\end{description}
for low-quality
\\
&
images. This only affects decompression.
}
\end{tableii}
\end{funcdesc}
\end{funcdesc}
Compress and uncompress raise the error
\code
{
jpeg.error
}
in case of errors.
Doc/libjpeg.tex
Dosyayı görüntüle @
434493b2
...
@@ -2,51 +2,56 @@
...
@@ -2,51 +2,56 @@
\label
{
module-jpeg
}
\label
{
module-jpeg
}
\bimodindex
{
jpeg
}
\bimodindex
{
jpeg
}
The module
\
cod
e
{
jpeg
}
provides access to the jpeg compressor and
The module
\
modul
e
{
jpeg
}
provides access to the jpeg compressor and
decompressor written by the Independent JPEG Group. JPEG is a (draft?)
\
decompressor written by the Independent JPEG Group. JPEG is a (draft?)
standard for compressing pictures. For details on jpeg or the
standard for compressing pictures. For details on jpeg or the
Independent JPEG Group software refer to the JPEG standard or the
Independent JPEG Group software refer to the JPEG standard or the
documentation provided with the software.
documentation provided with the software.
The
\code
{
jpeg
}
module defines these functions:
The
\module
{
jpeg
}
module defines an exception and some functions.
\setindexsubitem
{
(in module jpeg)
}
\begin{excdesc}
{
error
}
\begin{funcdesc}
{
compress
}{
data
\,
w
\,
h
\,
b
}
Exception raised by
\function
{
compress()
}
and
\function
{
decompress()
}
Treat data as a pixmap of width
\var
{
w
}
and height
\var
{
h
}
, with
\var
{
b
}
bytes per
in case of errors.
pixel. The data is in SGI GL order, so the first pixel is in the
\end{excdesc}
lower-left corner. This means that
\code
{
lrectread
}
return data can
immediately be passed to compress. Currently only 1 byte and 4 byte
\begin{funcdesc}
{
compress
}{
data, w, h, b
}
pixels are allowed, the former being treated as greyscale and the
Treat data as a pixmap of width
\var
{
w
}
and height
\var
{
h
}
, with
latter as RGB color. Compress returns a string that contains the
\var
{
b
}
bytes per pixel. The data is in SGI GL order, so the first
compressed picture, in JFIF format.
pixel is in the lower-left corner. This means that
\code
{
gl.lrectread
}
return data can immediately be passed to
\function
{
compress()
}
.
Currently only 1 byte and 4 byte pixels are allowed, the former being
treated as greyscale and the latter as RGB color.
\function
{
compress()
}
returns a string that contains the compressed
picture, in JFIF format.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
decompress
}{
data
}
\begin{funcdesc}
{
decompress
}{
data
}
Data is a string containing a picture in JFIF format. It returns a
Data is a string containing a picture in JFIF format. It returns a
tuple
tuple
\code
{
(
\var
{
data
}
,
\var
{
width
}
,
\var
{
height
}
,
\
code
{
(
\var
{
data
}
,
\var
{
width
}
,
\var
{
height
}
,
\var
{
bytesperpixel
}
)
}
.
\
var
{
bytesperpixel
}
)
}
. Again, the data is suitable to pass to
Again, the data is suitable to pass to
\code
{
lrectwrite
}
.
\code
{
gl.
lrectwrite
}
.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
setoption
}{
name
\,
value
}
\begin{funcdesc}
{
setoption
}{
name, value
}
Set various options. Subsequent compress and decompress calls
Set various options. Subsequent
\function
{
compress()
}
and
will use these options. The following options are available:
\function
{
decompress()
}
calls will use these options. The following
\begin{description}
options are available:
\item
[\code{'forcegray' }]
Force output to be grayscale, even if input is RGB.
\begin{tableii}
{
|l|l|
}{
code
}{
Option
}{
Effect
}
\lineii
{
'forcegray'
}{
%
\item
[\code{'quality' }]
Force output to be grayscale, even if input is RGB.
}
Set the quality of the compressed image to a
\lineii
{
'quality'
}{
%
value between
\code
{
0
}
and
\code
{
100
}
(default is
\code
{
75
}
). Compress only.
Set the quality of the compressed image to a value between
\code
{
0
}
and
\code
{
100
}
(default is
\code
{
75
}
).
\\
\item
[\code{'optimize' }]
&
This only affects compression.
}
Perform Huffman table optimization. Takes longer, but results in
\lineii
{
'optimize'
}{
%
smaller compressed image. Compress only.
Perform Huffman table optimization. Takes longer, but results in
smaller compressed
\\
\item
[\code{'smooth' }]
&
image. This only affects compression.
}
Perform inter-block smoothing on uncompressed image. Only useful for
\lineii
{
'smooth'
}{
%
low-quality images. Decompress only.
Perform inter-block smoothing on uncompressed image. Only useful
\end{description}
for low-quality
\\
&
images. This only affects decompression.
}
\end{tableii}
\end{funcdesc}
\end{funcdesc}
Compress and uncompress raise the error
\code
{
jpeg.error
}
in case of errors.
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