Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c82cfc86
Commit
c82cfc86
authored
Feb 19, 1993
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to allow tightly packed films to be converted
parent
245be3a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
Demo/sgi/video/video2rgb.py
Demo/sgi/video/video2rgb.py
+8
-1
No files found.
Demo/sgi/video/video2rgb.py
View file @
c82cfc86
...
...
@@ -18,7 +18,7 @@ def help():
# Imported modules
import
sys
sys
.
path
.
append
(
'/ufs/
guido/src
/video'
)
# Increase chance of finding VFile
sys
.
path
.
append
(
'/ufs/
jack/src/av
/video'
)
# Increase chance of finding VFile
import
VFile
import
time
import
getopt
...
...
@@ -112,6 +112,12 @@ def process(filename):
def
convert
(
vin
,
cf
,
width
,
height
,
depth
,
pf
):
global
seqno
if
type
(
pf
)
==
type
(()):
xpf
,
ypf
=
pf
elif
pf
==
0
:
xpf
=
ypf
=
1
else
:
xpf
=
ypf
=
pf
while
1
:
try
:
time
,
data
,
cdata
=
vin
.
getnextframe
()
...
...
@@ -120,6 +126,7 @@ def convert(vin, cf, width, height, depth, pf):
if
cdata
:
print
'Film contains chromdata!'
return
data
=
cf
(
data
,
width
/
xpf
,
height
/
abs
(
ypf
))
if
pf
:
data
=
applypackfactor
(
data
,
width
,
height
,
pf
)
s
=
`seqno`
...
...
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