Parent Directory | Revision Log
Revision 921 - (view) (download)
1 : | suxen_drol | 921 | #include "../xvid.h" |
2 : | #include "../image/image.h" | ||
3 : | |||
4 : | |||
5 : | int xvid_plugin_dump(void * handle, int opt, void * param1, void * param2) | ||
6 : | { | ||
7 : | switch(opt) | ||
8 : | { | ||
9 : | case XVID_PLG_INFO : | ||
10 : | { | ||
11 : | xvid_plg_info_t * info = (xvid_plg_info_t*)param1; | ||
12 : | info->flags = XVID_REQORIGINAL; | ||
13 : | return 0; | ||
14 : | } | ||
15 : | |||
16 : | case XVID_PLG_CREATE : | ||
17 : | case XVID_PLG_DESTROY : | ||
18 : | case XVID_PLG_BEFORE : | ||
19 : | return 0; | ||
20 : | |||
21 : | case XVID_PLG_AFTER : | ||
22 : | { | ||
23 : | xvid_plg_data_t * data = (xvid_plg_data_t*)param1; | ||
24 : | IMAGE img; | ||
25 : | char tmp[100]; | ||
26 : | img.y = data->original.plane[0]; | ||
27 : | img.u = data->original.plane[1]; | ||
28 : | img.v = data->original.plane[2]; | ||
29 : | sprintf(tmp, "ori-%03i.pgm", data->frame_num); | ||
30 : | image_dump_yuvpgm(&img, data->original.stride[0], data->width, data->height, tmp); | ||
31 : | |||
32 : | img.y = data->current.plane[0]; | ||
33 : | img.u = data->current.plane[1]; | ||
34 : | img.v = data->current.plane[2]; | ||
35 : | sprintf(tmp, "enc-%03i.pgm", data->frame_num); | ||
36 : | image_dump_yuvpgm(&img, data->reference.stride[0], data->width, data->height, tmp); | ||
37 : | } | ||
38 : | |||
39 : | return 0; | ||
40 : | } | ||
41 : | |||
42 : | return XVID_ERR_FAIL; | ||
43 : | } |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |