1 |
/***************************************************************************** |
/***************************************************************************** |
2 |
* |
* |
3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - XviD plugin: dump pgm files of original and encoded frames - |
* - Xvid plugin: dump pgm files of original and encoded frames - |
5 |
* |
* |
6 |
* Copyright(C) 2003 Peter Ross <pross@xvid.org> |
* Copyright(C) 2003 Peter Ross <pross@xvid.org> |
7 |
* |
* |
19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: plugin_dump.c,v 1.2 2004-03-22 22:36:24 edgomez Exp $ |
* $Id: plugin_dump.c,v 1.4 2010-03-09 10:00:14 Isibaar Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
61 |
img.u = data->current.plane[1]; |
img.u = data->current.plane[1]; |
62 |
img.v = data->current.plane[2]; |
img.v = data->current.plane[2]; |
63 |
sprintf(tmp, "enc-%03i.pgm", data->frame_num); |
sprintf(tmp, "enc-%03i.pgm", data->frame_num); |
64 |
image_dump_yuvpgm(&img, data->reference.stride[0], data->width, data->height, tmp); |
image_dump_yuvpgm(&img, data->current.stride[0], data->width, data->height, tmp); |
65 |
} |
} |
66 |
|
|
67 |
return(0); |
return(0); |