Results 1 to 6 of 6

Thread: Screen capture with openCL?

  1. #1
    Newbie
    Join Date
    Dec 2013
    Posts
    5

    Screen capture with openCL?

    There is a method for capture a screen image or a sequence of creen images (like camstudio) directly with openCL and after make some calculations with it?
    thanks in advance.

  2. #2
    Senior Member
    Join Date
    Dec 2011
    Posts
    152
    No, there isn't.

  3. #3
    Newbie
    Join Date
    Dec 2013
    Posts
    5
    Thanks for reply.
    Intenad of do it directly with openCL, is possible to capture the screen with openGL and suddenly elaborate it in opencl with GL/CL interop, without passing through the cpu?

  4. #4
    Senior Member
    Join Date
    Dec 2011
    Posts
    152
    From your own OpenGL application, yes. Just render to a texture and then use the texture. If you create a CL image from the GL texture you can operate on it with CL without copying back to CPU.

    For whole screen or other applications, I don't think so. Screen capture is something managed by the OS. Check with your OS documentation.

  5. #5
    Newbie
    Join Date
    Dec 2013
    Posts
    5
    There isn't a method for pass the framebuffer pointer?
    Render to texture methond isn't more efficent right?

  6. #6
    Senior Member
    Join Date
    Dec 2011
    Posts
    152
    For a single frame, efficiency is moot, but becomes important if you have a number of frames to capture.

    This is no longer an OpenCL topic, so should migrate from this board.

    Capturing from the screen is an OS-dependent thing, and you haven't mentioned your OS.

    Some resources for you to research:

    http://www.fraps.com/

    http://stackoverflow.com/questions/5...reen-capturing

    http://www.codeproject.com/Articles/...ing-the-screen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •