* library.c: bug in compressed photo routine fixed, found by Cedric Cell
ier. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8009 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2005-05-18 Theodore Kilgore <kilgota@auburn.edu>
|
||||
|
||||
* library.c: bug in compressed photo routine fixed, found by Cedric Cellier.
|
||||
|
||||
|
||||
|
||||
2005-04-17 Theodore Kilgore <kilgota@auburn.edu>
|
||||
|
||||
* ChangeLog: Fixed some typos.
|
||||
|
||||
@@ -356,12 +356,13 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename,
|
||||
"# CREATOR: gphoto2, SQ905 library\n"
|
||||
"%d %d\n"
|
||||
"255\n", w, h);
|
||||
ptr = ppm + strlen (ppm);
|
||||
size = strlen (ppm);
|
||||
ptr = ppm + size;
|
||||
if (comp_ratio>1) {
|
||||
sq_decompress (camera->pl->model, ptr, frame_data, w, h, entry);
|
||||
sq_postprocess(camera->pl,w, h, ptr, entry);
|
||||
}
|
||||
size = strlen (ppm) + (w * h * 3);
|
||||
size = size + (w * h * 3);
|
||||
GP_DEBUG ("size = %i\n", size);
|
||||
|
||||
if ( comp_ratio == 1) {
|
||||
|
||||
Reference in New Issue
Block a user