diff options
author | deva <deva> | 2005-05-26 12:48:36 +0000 |
---|---|---|
committer | deva <deva> | 2005-05-26 12:48:36 +0000 |
commit | f4dc6f65497a805dad971feac1bce0f36ddd4ce5 (patch) | |
tree | 60348c5de5a3efb71c43ff0142f58e9bb7e82ae4 /src/img_encoder.cc | |
parent | d4017394ba8868e5d44b5cc01a59c100cbaf953f (diff) |
*** empty log message ***
Diffstat (limited to 'src/img_encoder.cc')
-rw-r--r-- | src/img_encoder.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/img_encoder.cc b/src/img_encoder.cc index 7aca367..c5cc58b 100644 --- a/src/img_encoder.cc +++ b/src/img_encoder.cc @@ -39,6 +39,9 @@ /* * $Log$ + * Revision 1.9 2005/05/26 12:48:36 deva + * *** empty log message *** + * * Revision 1.8 2005/05/07 10:25:34 deva * * Removed ffmpeg code from img_encoder and corrected decoding errors in mov_encoder @@ -71,10 +74,14 @@ void ImgEncoder::encode(Frame *dvframe, char *filename, int quality) { + // Append suffix.. + char fname[256]; + sprintf(fname, "%s.jpg", filename); + unsigned char rgb[720*576*4]; getRGB(dvframe, rgb); - writeJPEGFile(filename, quality, (JSAMPLE*)rgb, 720, 576); + writeJPEGFile(fname, quality, (JSAMPLE*)rgb, 720, 576); } /////////////////////////////////////////////////////////////////////////////////////////// |