-
Notifications
You must be signed in to change notification settings - Fork 25
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
[video_player] Add support GstEGLImage to improve playback performance #67
[video_player] Add support GstEGLImage to improve playback performance #67
Conversation
0def421
to
ae6f049
Compare
I agree to delegate all rights related to this PR to Sony. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the following files, too:
- AUTHORS
- CHANGELOG.md
- README.md if needed
- pubspec.yaml
#ifdef USE_EGL_IMAGE_DMABUF | ||
gboolean res = gst_video_info_from_caps(&gstVideoInfo_, caps); | ||
if (!res) { | ||
std::cerr << "Failed to get a gst_video_info"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add std::endl
GstVideoInfo gstVideoInfo_; | ||
GstEGLImage* gsteglimage_ = NULL; | ||
GstGLContext* gstglctx_ = NULL; | ||
GstGLDisplayEGL* gldisplayegl_ = NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow Google's coding style.
e.g.
gstVideoInfo_ -> gst_video_info_
|
||
gint fd = gst_dmabuf_memory_get_fd(memory); | ||
gldisplayegl_ = | ||
gst_gl_display_egl_new_with_egl_display((gpointer)egl_display); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use static_cast
gldisplayegl_ = | ||
gst_gl_display_egl_new_with_egl_display((gpointer)egl_display); | ||
gstglctx_ = gst_gl_context_new_wrapped( | ||
GST_GL_DISPLAY_CAST(gldisplayegl_), (guintptr)egl_context, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
Signed-off-by: Makoto Sato <[email protected]>
ae6f049
to
761c957
Compare
I fixed code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks a lot.
Hello.
I added
GstEGLImage
support to improve video_player playback performance.If gst_is_
dmabuf_memory()
isTRUE
,GstEGLImage
can be used to improve performance withoutgst_buffer_extract()
.Relevant issue: #64
This requires the following PR:
sony/flutter-embedded-linux#327
and the option -DUSE_EGL_IMAGE_DMABUF is required at build time.