C
cazzaran
I'm displaying a video stream from a capture card onto a JPanel, and I
have another JPanel under it that displays a message. My problem is
that I need to be able to resize these dynamically since the message
can be different sizes. I can do this, but when I do, the video stream
skips a few frames, which is very annoying.
Right now, everything is in Swing, but I was considering moving to SWT
since this is running on a Windows env. I'm not sure if that will help
though, since the video stream will still be a Swing component, and I
think it's the over head that is causing it. But maybe the SWT resizes
are faster.
Any one have any idea how to speed this up? I'm not against using
native stuff in my Java app, since cross platform isn't an issue, I'm
just not sure how to go from here.
have another JPanel under it that displays a message. My problem is
that I need to be able to resize these dynamically since the message
can be different sizes. I can do this, but when I do, the video stream
skips a few frames, which is very annoying.
Right now, everything is in Swing, but I was considering moving to SWT
since this is running on a Windows env. I'm not sure if that will help
though, since the video stream will still be a Swing component, and I
think it's the over head that is causing it. But maybe the SWT resizes
are faster.
Any one have any idea how to speed this up? I'm not against using
native stuff in my Java app, since cross platform isn't an issue, I'm
just not sure how to go from here.