aliakseis / FFmpegPlayer

Simple FFmpeg video player
MIT License
151 stars 44 forks source link

refresh window flashing issues #15

Open w136111526 opened 5 years ago

w136111526 commented 5 years ago

Hello, may I use m_frameListener->DrawFrame(this, m_feature) data refresh the desktop child window, other process also refresh the desktop child window, what is the reason for the obvious flashing, can not refresh the Desttop child window through thread callbacks?

aliakseis commented 5 years ago

Considering virtual void drawFrame(IFrameDecoder* decoder, unsigned int generation) - probably its name is not quite appropriate. It is about client notification for using the current frame (obtained through getFrameRenderingData) for drawing. It is the client's responsibility to save frame data for redraw. Usually it is done with some internal buffer. CPlayerViewD2D can be considered as an alternative usage example. Another rendering idea can be taken from here: https://github.com/mozilla/positron/blob/master/media/webrtc/trunk/webrtc/modules/video_render/android/video_render_opengles20.cc

w136111526 commented 5 years ago

Hello, I found that your player's PlayView 2D can not be used to display hard decoded data. I wrote a small desktop video wallpaper program that runs two programs that will always flashing. Can you tell me about your Email, and I 'll send it to you, and you can look at the vide.lib and d3d rendering sections for what's wrong?

aliakseis commented 5 years ago

Just sent you an email.

w136111526 commented 5 years ago

Hello, did you get the email I sent? Is there a problem with my creating a subwindow for the desktop?

aliakseis commented 5 years ago

Sorry, no, I haven't got your email.

w136111526 commented 5 years ago

I can't send the code directly to your GitHub mailbox. The attachment is too large. Could you tell me about another one?

aliakseis commented 5 years ago

Please try razawu@key-mail.net