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
be0cba4d
Kaydet (Commit)
be0cba4d
authored
Eyl 03, 1992
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Made it work with the sub-spec burst capture interface
(no bit vector)
üst
44c1f698
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
burstcapt.py
Demo/sgi/sv/burstcapt.py
+12
-3
No files found.
Demo/sgi/sv/burstcapt.py
Dosyayı görüntüle @
be0cba4d
import
sys
import
sv
,
SV
import
gl
,
GL
,
DEVICE
def
main
():
format
=
SV
.
RGB8_FRAMES
requestedwidth
=
SV
.
PAL_XMAX
queuesize
=
2
queuesize
=
30
if
sys
.
argv
[
1
:]:
queuesize
=
eval
(
sys
.
argv
[
1
])
v
=
sv
.
OpenVideo
()
svci
=
(
format
,
requestedwidth
,
0
,
queuesize
,
0
)
svci
,
buffer
,
bitvec
=
v
.
CaptureBurst
(
svci
)
[
bitvec
]
go
=
raw_input
(
'Press return to capture '
+
`queuesize`
+
' frames: '
)
result
=
v
.
CaptureBurst
(
svci
)
## svci, buffer, bitvec = result # XXX Bit vector not yet implemented
svci
,
buffer
=
result
print
'Captured'
,
svci
[
3
],
'frames, i.e.'
,
len
(
buffer
)
/
1024
,
'K bytes'
w
,
h
=
svci
[
1
:
3
]
framesize
=
w
*
h
...
...
@@ -23,6 +30,8 @@ def main():
gl
.
qdevice
(
DEVICE
.
LEFTMOUSE
)
gl
.
qdevice
(
DEVICE
.
ESCKEY
)
print
'Click left mouse for next frame'
for
i
in
range
(
svci
[
3
]):
inverted_frame
=
sv
.
RGB8toRGB32
(
1
,
\
buffer
[
i
*
framesize
:(
i
+
1
)
*
framesize
],
w
,
h
)
...
...
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