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
fe74263c
Kaydet (Commit)
fe74263c
authored
Tem 10, 2000
tarafından
Peter Schneider-Kamp
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ANSI-fication
üst
8235f1c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
48 deletions
+16
-48
imageop.c
Modules/imageop.c
+16
-48
No files found.
Modules/imageop.c
Dosyayı görüntüle @
fe74263c
...
...
@@ -35,9 +35,7 @@ typedef unsigned long Py_UInt32;
static
PyObject
*
ImageopError
;
static
PyObject
*
imageop_crop
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
imageop_crop
(
PyObject
*
self
,
PyObject
*
args
)
{
char
*
cp
,
*
ncp
;
short
*
nsp
;
...
...
@@ -91,9 +89,7 @@ PyObject *args;
}
static
PyObject
*
imageop_scale
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
imageop_scale
(
PyObject
*
self
,
PyObject
*
args
)
{
char
*
cp
,
*
ncp
;
short
*
nsp
;
...
...
@@ -140,9 +136,7 @@ PyObject *args;
/* Note: this routine can use a bit of optimizing */
static
PyObject
*
imageop_tovideo
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
imageop_tovideo
(
PyObject
*
self
,
PyObject
*
args
)
{
int
maxx
,
maxy
,
x
,
y
,
len
;
int
i
;
...
...
@@ -196,9 +190,7 @@ PyObject *args;
}
static
PyObject
*
imageop_grey2mono
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
imageop_grey2mono
(
PyObject
*
self
,
PyObject
*
args
)
{
int
tres
,
x
,
y
,
len
;
unsigned
char
*
cp
,
*
ncp
;
...
...
@@ -238,9 +230,7 @@ PyObject *args;
}
static
PyObject
*
imageop_grey2grey4
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
imageop_grey2grey4
(
PyObject
*
self
,
PyObject
*
args
)
{
int
x
,
y
,
len
;
unsigned
char
*
cp
,
*
ncp
;
...
...
@@ -279,9 +269,7 @@ PyObject *args;
}
static
PyObject
*
imageop_grey2grey2
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
imageop_grey2grey2
(
PyObject
*
self
,
PyObject
*
args
)
{
int
x
,
y
,
len
;
unsigned
char
*
cp
,
*
ncp
;
...
...
@@ -320,9 +308,7 @@ PyObject *args;
}
static
PyObject
*
imageop_dither2mono
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
imageop_dither2mono
(
PyObject
*
self
,
PyObject
*
args
)
{
int
sum
,
x
,
y
,
len
;
unsigned
char
*
cp
,
*
ncp
;
...
...
@@ -366,9 +352,7 @@ PyObject *args;
}
static
PyObject
*
imageop_dither2grey2
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
imageop_dither2grey2
(
PyObject
*
self
,
PyObject
*
args
)
{
int
x
,
y
,
len
;
unsigned
char
*
cp
,
*
ncp
;
...
...
@@ -411,9 +395,7 @@ PyObject *args;
}
static
PyObject
*
imageop_mono2grey
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
imageop_mono2grey
(
PyObject
*
self
,
PyObject
*
args
)
{
int
v0
,
v1
,
x
,
y
,
len
,
nlen
;
unsigned
char
*
cp
,
*
ncp
;
...
...
@@ -450,9 +432,7 @@ PyObject *args;
}
static
PyObject
*
imageop_grey22grey
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
imageop_grey22grey
(
PyObject
*
self
,
PyObject
*
args
)
{
int
x
,
y
,
len
,
nlen
;
unsigned
char
*
cp
,
*
ncp
;
...
...
@@ -488,9 +468,7 @@ PyObject *args;
}
static
PyObject
*
imageop_grey42grey
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
imageop_grey42grey
(
PyObject
*
self
,
PyObject
*
args
)
{
int
x
,
y
,
len
,
nlen
;
unsigned
char
*
cp
,
*
ncp
;
...
...
@@ -525,9 +503,7 @@ PyObject *args;
}
static
PyObject
*
imageop_rgb2rgb8
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
imageop_rgb2rgb8
(
PyObject
*
self
,
PyObject
*
args
)
{
int
x
,
y
,
len
,
nlen
;
Py_UInt32
*
cp
;
...
...
@@ -569,9 +545,7 @@ PyObject *args;
}
static
PyObject
*
imageop_rgb82rgb
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
imageop_rgb82rgb
(
PyObject
*
self
,
PyObject
*
args
)
{
int
x
,
y
,
len
,
nlen
;
unsigned
char
*
cp
;
...
...
@@ -612,9 +586,7 @@ PyObject *args;
}
static
PyObject
*
imageop_rgb2grey
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
imageop_rgb2grey
(
PyObject
*
self
,
PyObject
*
args
)
{
int
x
,
y
,
len
,
nlen
;
Py_UInt32
*
cp
;
...
...
@@ -650,9 +622,7 @@ PyObject *args;
}
static
PyObject
*
imageop_grey2rgb
(
self
,
args
)
PyObject
*
self
;
PyObject
*
args
;
imageop_grey2rgb
(
PyObject
*
self
,
PyObject
*
args
)
{
int
x
,
y
,
len
,
nlen
;
unsigned
char
*
cp
;
...
...
@@ -684,9 +654,7 @@ PyObject *args;
/*
static object *
imageop_mul(self, args)
object *self;
object *args;
imageop_mul(object *self, object *args)
{
char *cp, *ncp;
int len, size, x, y;
...
...
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