mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
gltransformation: implement passthrough handling
This commit is contained in:
parent
1fe2996b01
commit
d05bd79042
1 changed files with 14 additions and 0 deletions
|
@ -327,6 +327,20 @@ gst_gl_transformation_build_mvp (GstGLTransformation * transformation)
|
|||
&transformation->view_matrix, &modelview_matrix);
|
||||
graphene_matrix_multiply (&modelview_matrix,
|
||||
&transformation->projection_matrix, &transformation->mvp_matrix);
|
||||
|
||||
if (filter->in_info.finfo) {
|
||||
gboolean passthrough = transformation->xtranslation == 0.
|
||||
&& transformation->ytranslation == 0.
|
||||
&& transformation->ztranslation == 0.
|
||||
&& transformation->xrotation == 0.
|
||||
&& transformation->yrotation == 0.
|
||||
&& transformation->zrotation == 0.
|
||||
&& transformation->xscale == 1.
|
||||
&& transformation->yscale == 1.
|
||||
&& gst_video_info_is_equal (&filter->in_info, &filter->out_info);
|
||||
gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (transformation),
|
||||
passthrough);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue