extragear/graphics/digikam/libs/dimg

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

extragear/graphics/digikam/libs/dimg

Marcel Wiesweg
SVN commit 508640 by mwiesweg:

digikam from trunk: DImg: always preserve metadata, better bitBlt support

- group data members of a DImg object:
    - metadata
    - image data (null, width, height, alpha, sixteenbit)
    - data pointer
  With imaging operations, the first group is always preserved, the latter two may change
- add a few private methods for often reused code
- add a private constructor which copies metadata, but creates a new data buffer with a new size,
  used by copy and scale
- add a putImage method which replaces the data pointer and the image data,
  used by DImgInterface and thus the image plugins
- add a stripImageData method which allows to "strip" the data off, take
  ownership of the buffer, and leave the image as null. Useful for temporary images.
- extend bitBlt to support source coordinates, width and height parameters.
- add some flavors of the bitBltImage method, all using bitBlt in the end
- use bitBlt for copy and crop to eliminate all the code doing simple blitting operations
- add some comments in dimg files
- add a method metadata(DImg::METADATA) in analogy to attribute() and embeddedText().
  Is a method setMetadata necessary?

CCMAIL: [hidden email]


 M  +260 -147  dimg.cpp  
 M  +47 -9     dimg.h  
 M  +3 -5      dimgscale.cpp  


_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel