Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making use of EglSurfaceBase's saveFrame method #10

Open
lgorse opened this issue Feb 2, 2015 · 2 comments
Open

Making use of EglSurfaceBase's saveFrame method #10

lgorse opened this issue Feb 2, 2015 · 2 comments

Comments

@lgorse
Copy link
Contributor

lgorse commented Feb 2, 2015

I'm trying to implement frame capture on the CineIO API, so users can creat thumbnails on the fly. EglSurfaceBase's saveFrame method works really well BUT I'm not sure how to access it properly.

The method works great when I set it up from within TextureMovieEncoder's handleFrameAvailable method (it generates multiple frames very quickly if I just dump the code there).

But of course I want the code to fire upon the user clicking on a button and for now every implementation I attempt returns the error:

"Expected EGL context/surface is not current"

I was wondering if you guys had a recommended route for using the saveFrame method from EglSurfaceBase, and if you had any advice on how I can approach this problem.

Thanks!

@trshafer
Copy link
Member

trshafer commented Feb 2, 2015

Hey @lgorse that's a great idea. I don't have any immediate advice for approaching the problem. If you are able to make it work, we'll gladly accept a PR.

@lgorse
Copy link
Contributor Author

lgorse commented Feb 2, 2015

OK I'm going to start on this tonight. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants