如何为 OS X 创建显示?
我需要编写一个我认为适用于 OS X 的显示驱动程序。就像那些“使用你的 iPad 作为第二个显示器!”应用程序,但我需要编写 OS X 软件,该软件将在 OS X 中注册另一个显示器,并为我提供像素数据,以便我可以使用它来满足我的各种需求。
我从哪里开始?我读过有关 IOKit 的内容,但我不太明白我需要做什么才能告诉 OS X 我是一个显示器,然后像素数据会是什么样子。
我将不得不阅读的一些类/标题/等的链接也很好,但如果有人已经这样做并且知道细节,那将非常有帮助。
另外,这是否必须是一个内核扩展,或者是否可以编写一个用户空间 IOKit 驱动程序来为 OS X 提供第二个监视器?
最后,要明确的是,我只想将像素数据发送到第二个显示器(镜像或扩展) - 我实际上并没有连接显示器或 I/O 设备。
I need to write what I think is a display driver for OS X. It's like those "Use your iPad as a second monitor!" apps, but I need to write the OS X software that will register another display with OS X, and give me the pixel data so I can use it for my various needs.
Where do I get started? I've read about IOKit, but I don't quite understand what I need to do to tell OS X that I'm a monitor, and then what the pixel data is going to look like.
A few links to the classes/headers/etc that I'm going to have to read through would be fine as well, but if anyone has done this and knows the particulars it would be very helpful.
Also, will this have to be a kernel extension, or is it possible to write a userspace IOKit driver that gives a second monitor to OS X?
Lastly, to be clear, I just want the pixel data that would be sent to a second monitor (either mirrored or extended) - I'm not actually attaching a monitor on, or an I/O device.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
核心图形。 显示服务
,您可能想要查看 石英显示服务参考
CoreGraphics. Display Services
and you probably want to look at the Quartz Display Services Reference
你可以看一下:
http://code.google.com/p/ioproxyvideofamily/
或许可以作为起点。
you could take a look at:
http://code.google.com/p/ioproxyvideofamily/
maybe as a starting point.