Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Albert Gräf
Gem
Commits
f109d459
Commit
f109d459
authored
Apr 04, 2012
by
IOhannes m zmoelnig
Browse files
"reset" message for [pix_video]
parent
1a77d11e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Pixes/pix_video.cpp
View file @
f109d459
...
@@ -766,6 +766,14 @@ void pix_video :: qualityMess(int q) {
...
@@ -766,6 +766,14 @@ void pix_video :: qualityMess(int q) {
}
}
void
pix_video
::
resetMess
(
void
)
{
if
(
m_videoHandle
)
m_videoHandle
->
reset
();
else
WITH_VIDEOHANDLES_DO
(
reset
());
}
/////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
// transferMess
// transferMess
//
//
...
@@ -835,6 +843,8 @@ void pix_video :: obj_setupCallback(t_class *classPtr)
...
@@ -835,6 +843,8 @@ void pix_video :: obj_setupCallback(t_class *classPtr)
gensym
(
"color"
),
A_GIMME
,
A_NULL
);
gensym
(
"color"
),
A_GIMME
,
A_NULL
);
CPPEXTERN_MSG1
(
classPtr
,
"quality"
,
qualityMess
,
int
);
CPPEXTERN_MSG1
(
classPtr
,
"quality"
,
qualityMess
,
int
);
CPPEXTERN_MSG0
(
classPtr
,
"reset"
,
resetMess
);
}
}
void
pix_video
::
dimenMessCallback
(
void
*
data
,
t_symbol
*
s
,
int
ac
,
t_atom
*
av
)
void
pix_video
::
dimenMessCallback
(
void
*
data
,
t_symbol
*
s
,
int
ac
,
t_atom
*
av
)
{
{
...
...
src/Pixes/pix_video.h
View file @
f109d459
...
@@ -79,7 +79,7 @@ class GEM_EXTERN pix_video : public GemBase
...
@@ -79,7 +79,7 @@ class GEM_EXTERN pix_video : public GemBase
virtual
void
deviceMess
(
int
dev
);
virtual
void
deviceMess
(
int
dev
);
virtual
void
closeMess
(
void
);
virtual
void
closeMess
(
void
);
virtual
void
resetMess
(
void
);
// Set the driver architecture; (probably this makes only sense under linux right now: you can choose between video4linux(0) and video1394(1))
// Set the driver architecture; (probably this makes only sense under linux right now: you can choose between video4linux(0) and video1394(1))
virtual
void
driverMess
(
int
dev
);
virtual
void
driverMess
(
int
dev
);
...
...
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