mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Logging for dispmanx, framebuffer, x11, v4l2, osx (#103)
* dispmanx * typi * Framebuffer * fix attempt * x11 * osx * V4L2
This commit is contained in:
@@ -177,7 +177,7 @@ int X11Grabber::updateScreenDimensions()
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::cout << "X11GRABBER INFO: Update of screen resolution: [" << _screenWidth << "x" << _screenHeight <<"] => ";
|
||||
Info(_log, "Update of screen resolution: [%dx%d]", _screenWidth, _screenHeight);
|
||||
|
||||
if (_screenWidth || _screenHeight) {
|
||||
freeResources();
|
||||
@@ -186,7 +186,7 @@ int X11Grabber::updateScreenDimensions()
|
||||
_screenWidth = _windowAttr.width;
|
||||
_screenHeight = _windowAttr.height;
|
||||
|
||||
std::cout << "[" << _screenWidth << "x" << _screenHeight <<"]" << std::endl;
|
||||
Info(_log, " to [%dx%d]", _screenWidth, _screenHeight);
|
||||
|
||||
_croppedWidth = (_screenWidth > unsigned(_cropLeft + _cropRight))
|
||||
? (_screenWidth - _cropLeft - _cropRight)
|
||||
@@ -196,12 +196,10 @@ int X11Grabber::updateScreenDimensions()
|
||||
? (_screenHeight - _cropTop - _cropBottom)
|
||||
: _screenHeight;
|
||||
|
||||
std::cout << "X11GRABBER INFO: Using ";
|
||||
|
||||
if (_XRenderAvailable && !_useXGetImage) {
|
||||
std::cout << "XRender for grabbing" << std::endl;
|
||||
Info(_log, "Using XRender for grabbing");
|
||||
} else {
|
||||
std::cout << "XGetImage for grabbing" << std::endl;
|
||||
Info(_log, "Using XGetImage for grabbing");
|
||||
}
|
||||
|
||||
setupResources();
|
||||
|
Reference in New Issue
Block a user