projects
/
my-code
/
ivac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c05d446
)
playto works
author
hackbard
<hackbard>
Thu, 28 Aug 2003 23:53:07 +0000
(23:53 +0000)
committer
hackbard
<hackbard>
Thu, 28 Aug 2003 23:53:07 +0000
(23:53 +0000)
dfbapi.c
patch
|
blob
|
history
dfbapi.h
patch
|
blob
|
history
ivac.c
patch
|
blob
|
history
diff --git
a/dfbapi.c
b/dfbapi.c
index
cabc5a7
..
f1444e1
100644
(file)
--- a/
dfbapi.c
+++ b/
dfbapi.c
@@
-8,11
+8,6
@@
#include <directfb.h>
#include "ivac.h"
#include <directfb.h>
#include "ivac.h"
-// do
-// int flip_blit_callback()
-// int dfb_play_video()
-// int dfb_stop_video()
-
int flip_blit_callback(void *ctx) {
struct ivac *ivac=ctx;
int flip_blit_callback(void *ctx) {
struct ivac *ivac=ctx;
diff --git
a/dfbapi.h
b/dfbapi.h
index
e1f4a20
..
8f6f41b
100644
(file)
--- a/
dfbapi.h
+++ b/
dfbapi.h
@@
-7,4
+7,5
@@
/* function prototypes */
int dfb_init(int arg_c,char **arg_v,struct ivac *ivac);
int dfb_tini(struct ivac *ivac);
/* function prototypes */
int dfb_init(int arg_c,char **arg_v,struct ivac *ivac);
int dfb_tini(struct ivac *ivac);
-
+int dfb_play_video(struct ivac *ivac);
+int dfb_stop_video(struct ivac *ivac);
diff --git
a/ivac.c
b/ivac.c
index
a9f270e
..
05ea6f6
100644
(file)
--- a/
ivac.c
+++ b/
ivac.c
@@
-60,6
+60,12
@@
int main(int argc, char **argv) {
return -1;
}
return -1;
}
+ if(dfb_play_video(&ivac)<0) {
+ puts("dfb play video failed");
+ return -1;
+ };
+
+ puts("pess button ...");
getchar();
dfb_tini(&ivac);
getchar();
dfb_tini(&ivac);