mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	Fixed the grabber to produce a limited number of flag based png-files with unique names,
Former-commit-id: dd37349042efa4642761b63d9e57ae39986a8386
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| @@ -111,7 +111,7 @@ int main(int argc, char** argv) | ||||
| 	QImage qImage(64, 64, QImage::Format_ARGB32); | ||||
| 	Image<ColorRgba> imageRgba(64, 64); | ||||
|  | ||||
| 	for (int i=0; i<grabCount || grabCount < 0; ++i) { | ||||
| 	for (int i=0; i<grabCount || grabCount < 0; ++i) | ||||
| 	{ | ||||
| 		frameGrabber.grabFrame(imageRgba); | ||||
|  | ||||
| @@ -122,7 +122,7 @@ int main(int argc, char** argv) | ||||
| 		} | ||||
|  | ||||
| 		const QImage qImageSwp = qImage.rgbSwapped(); | ||||
| 		qImageSwp.save(QString("HYPERION_f0x%1_%2.png").arg(grabFlags, 2, 16).arg(iFrame)); | ||||
| 		qImageSwp.save(QString("HYPERION_f0x%1_%2.png").arg(grabFlags, 8, 16, QChar('0')).arg(iFrame)); | ||||
| 		++iFrame; | ||||
|  | ||||
| 		timespec sleepTime; | ||||
| @@ -133,3 +133,4 @@ int main(int argc, char** argv) | ||||
|  | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user