Commit graph

41 commits

Author SHA1 Message Date
Ivailo Monev
8c29c9dd72 replace supposedly invalid case with assert
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-03 14:27:27 +00:00
Ivailo Monev
f7ebe60846 use QImage::constBits() and correct casts
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-03 14:04:02 +00:00
Ivailo Monev
e939427b1e optimize QImage comparison
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-03 02:11:00 +00:00
Ivailo Monev
0d4e187cdc use QImage::constBits() where apropriate
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-02 12:01:26 +00:00
Ivailo Monev
9e2f2a5f72 use QImage::constScanLine() where appropriate
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-02 02:31:01 +00:00
Ivailo Monev
e6d2f453c7 do not detach from QImage::setColorCount() if color count is not different
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-30 22:46:37 +00:00
Ivailo Monev
09dddc3258 do not detach from QImage::setColorTable() if colors are not different
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-30 22:45:17 +00:00
Ivailo Monev
0bad599825 various cleanups
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-26 23:22:14 +00:00
Ivailo Monev
74b6bb7350 images are never mirrored in place
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-20 15:57:53 +00:00
Ivailo Monev
79c21f1245 QImage cleanup
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-14 18:07:05 +00:00
Ivailo Monev
b7bc2381b4 various cleanups
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-11 21:01:04 +00:00
Ivailo Monev
4ceec645d8 various cleanups
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-07 14:08:14 +00:00
Ivailo Monev
91caea0b81 mark some cases as unlikely
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-07 13:49:51 +00:00
Ivailo Monev
b6fde31421 QImage cleanup
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-07 13:49:36 +00:00
Ivailo Monev
80d4bc168e more copyright changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-03 14:21:30 +00:00
Ivailo Monev
74bb412630 copyright changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-03 13:38:02 +00:00
Ivailo Monev
b7d6018d4c do not use intermediate QByteArray in QImage::fromData()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-30 21:46:56 +00:00
Ivailo Monev
54ea9176aa pass arguments by const-ref
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-28 00:34:54 +00:00
Ivailo Monev
fad79f29d9 private structures cleanup
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-07 23:00:31 +00:00
Ivailo Monev
2832fd08d0 no image text
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-07 15:47:48 +00:00
Ivailo Monev
f2068eb81d global cleanup
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-04 16:51:14 +00:00
Ivailo Monev
71ffb62f31 remove the opengl component
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-11-16 13:53:20 +00:00
Ivailo Monev
deff95c0f9 get rid of QPicture
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-11-11 01:10:39 +00:00
Ivailo Monev
45ecee79de mostly mac/win cruft removal
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-10-05 03:54:38 +00:00
Ivailo Monev
4a5bcff7ec embracing the STL
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-10-04 16:33:26 +00:00
Ivailo Monev
1444d03d6e getting rid of QNativeImage, Mac and Windows not tested
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-09-08 22:02:36 +00:00
Ivailo Monev
851374453a the in-place image convertor has pretty much no use
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-08-13 17:31:45 +00:00
Ivailo Monev
a013029c5c do not force rendering hints
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-08-13 01:42:16 +00:00
Ivailo Monev
91f2876f14 get rid of some SIMD remains
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-08-09 20:19:41 +00:00
Ivailo Monev
3b3e79adb1 no need for SIMD in imageconversions and drawing now
now that image format is not changed when scaling the performance
impact with this change is almost none, in most cases you will
(should) not notice a difference. if you care about performance
you most likely build with -mtune=native anyway so that the
compiler can better optimize things for the hardware.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-08-09 19:58:14 +00:00
Ivailo Monev
8042c6793f do not change the format on QImage transformation and set render hits via one call
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-07-31 13:52:27 +00:00
Ivailo Monev
5f012948ce various cleanups
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-07-31 12:40:31 +00:00
Ivailo Monev
efa33d4396 various cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-07-17 23:58:13 +00:00
Ivailo Monev
81c6f05fe4 change some QImage methods to take char* to avoid reinterpret_cast
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-07-15 16:04:36 +00:00
Ivailo Monev
5c0399c76b various cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-06-27 08:28:47 +00:00
Ivailo Monev
36696b61fd QWS and QPA cleanups (incomplete)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-06-21 16:52:02 +00:00
Ivailo Monev
9aa06d45d9 remove pointless check in QImageData::create()
upstream commits:
1394962ceb

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-05-08 16:12:43 +00:00
Ivailo Monev
a9fa850cf6 remove obsolete qt_image_id() and qt_pixmap_id()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-05-07 17:13:32 +00:00
Ivailo Monev
62c983032b use d->height directly in QImage when d is already checked
some of the changes are my own

upstream commits:
2e8bec9e4b

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-05-07 05:34:08 +00:00
Ivailo Monev
165b738265 remove support for old data streams
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-24 21:53:43 +02:00
Ivailo Monev
bfbc380756 initial import
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-12-10 05:06:13 +02:00