Mercurial > mplayer.hg
annotate libvo/vo_md5.c @ 1673:c8bb10eccf83
works now (two typing mistakes caused compilation errors)
author | folke |
---|---|
date | Thu, 23 Aug 2001 22:54:18 +0000 |
parents | d40f2b686846 |
children | ed5b85b713a3 |
rev | line source |
---|---|
1 | 1 /* |
2 * video_out_pgm.c, pgm interface | |
3 * | |
4 * | |
5 * Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. | |
6 * | |
7 * Hacked into mpeg2dec by | |
8 * | |
9 * Aaron Holtzman <aholtzma@ess.engr.uvic.ca> | |
10 * | |
11 * 15 & 16 bpp support added by Franck Sicard <Franck.Sicard@solsoft.fr> | |
12 * | |
13 * Xv image suuport by Gerd Knorr <kraxel@goldbach.in-berlin.de> | |
14 */ | |
15 | |
16 #include <stdio.h> | |
17 #include <stdlib.h> | |
18 #include <string.h> | |
19 | |
20 #include "config.h" | |
21 #include "video_out.h" | |
22 #include "video_out_internal.h" | |
23 | |
24 LIBVO_EXTERN (md5) | |
25 | |
26 static vo_info_t vo_info = | |
27 { | |
28 "MD5 sum", | |
29 "md5", | |
30 "walken", | |
31 "" | |
32 }; | |
33 | |
34 extern vo_functions_t video_out_pgm; | |
491 | 35 extern char vo_pgm_filename[24]; |
1 | 36 |
37 static FILE * md5_file; | |
38 | |
39 static uint32_t | |
40 init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t fullscreen, char *title, uint32_t format) | |
41 { | |
42 md5_file = fopen ("md5", "w"); | |
43 return video_out_pgm.init (width, height, d_width,d_height,fullscreen, title, format); | |
44 } | |
45 | |
46 static const vo_info_t* | |
47 get_info(void) | |
48 { | |
49 return &vo_info; | |
50 } | |
51 | |
1501
d40f2b686846
changes according to -utf8 option, draw_osd() function added
atlka
parents:
1095
diff
changeset
|
52 static void draw_osd(void) |
d40f2b686846
changes according to -utf8 option, draw_osd() function added
atlka
parents:
1095
diff
changeset
|
53 { |
d40f2b686846
changes according to -utf8 option, draw_osd() function added
atlka
parents:
1095
diff
changeset
|
54 } |
d40f2b686846
changes according to -utf8 option, draw_osd() function added
atlka
parents:
1095
diff
changeset
|
55 |
1 | 56 static void flip_page (void) |
57 { | |
491 | 58 char buf2[100]; |
59 FILE * f; | |
60 int i; | |
61 | |
62 video_out_pgm.flip_page(); | |
63 | |
1095 | 64 snprintf (buf2, 100, "md5sum %s", vo_pgm_filename); |
491 | 65 f = popen (buf2, "r"); |
66 i = fread (buf2, 1, sizeof(buf2), f); | |
67 pclose (f); | |
68 fwrite (buf2, 1, i, md5_file); | |
69 | |
70 remove (vo_pgm_filename); | |
71 | |
1 | 72 } |
73 | |
74 //static uint32_t draw_slice(uint8_t * src[], uint32_t slice_num) | |
75 static uint32_t draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y) | |
76 { | |
491 | 77 return video_out_pgm.draw_slice(image,stride,w,h,x,y); |
1 | 78 } |
79 | |
491 | 80 //extern uint32_t output_pgm_frame (char * fname, uint8_t * src[]); |
1 | 81 |
82 static uint32_t draw_frame(uint8_t * src[]) | |
83 { | |
84 return 0; | |
85 } | |
86 | |
87 static uint32_t | |
88 query_format(uint32_t format) | |
89 { | |
491 | 90 return video_out_pgm.query_format(format); |
1 | 91 } |
92 | |
93 | |
94 static void | |
95 uninit(void) | |
96 { | |
491 | 97 video_out_pgm.uninit(); |
98 fclose(md5_file); | |
1 | 99 } |
100 | |
101 | |
31 | 102 static void check_events(void) |
103 { | |
104 } | |
105 | |
106 |