After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 758007 - vaapipostproc: don't set caps change at first set
vaapipostproc: don't set caps change at first set
Status: RESOLVED FIXED
Product: gstreamer-vaapi
Classification: Other
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gstreamer-vaapi maintainer(s)
gstreamer-vaapi maintainer(s)
Depends on:
Blocks: 750547
 
 
Reported: 2015-11-12 15:24 UTC by Víctor Manuel Jáquez Leal
Modified: 2015-11-19 11:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
vaapipostproc: don't set caps change at first set (2.45 KB, patch)
2015-11-12 15:24 UTC, Víctor Manuel Jáquez Leal
none Details | Review
vaapipostproc: params video_info_changed() callers (1.81 KB, patch)
2015-11-16 16:58 UTC, Víctor Manuel Jáquez Leal
none Details | Review
vaapipostproc: don't set caps change at first set (2.72 KB, patch)
2015-11-16 16:58 UTC, Víctor Manuel Jáquez Leal
none Details | Review
vaapipostproc: params video_info_changed() callers (2.19 KB, patch)
2015-11-17 12:19 UTC, Víctor Manuel Jáquez Leal
committed Details | Review
vaapipostproc: don't set caps change at first set (3.34 KB, patch)
2015-11-17 12:19 UTC, Víctor Manuel Jáquez Leal
committed Details | Review

Description Víctor Manuel Jáquez Leal 2015-11-12 15:24:47 UTC
When the source caps change, the filter is destroyed and
recreated. Nonetheless, this happens every time the vaapipostproc starts,
since the caps change algorithm does not take in consideration the first caps
set.

This patch intents to be an optimization, to avoid the destroy-creation cycle
of the filter when the sources caps are set for the first time.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Comment 1 Víctor Manuel Jáquez Leal 2015-11-12 15:24:51 UTC
Created attachment 315345 [details] [review]
vaapipostproc: don't set caps change at first set
Comment 2 Víctor Manuel Jáquez Leal 2015-11-16 16:58:00 UTC
Created attachment 315693 [details] [review]
vaapipostproc: params video_info_changed() callers

The signature is video_info_changed(old_vip, new_vip). Nonetheless the callers
swapped the the order. This didn't raise problems since the comparison of both
structures were not affected by its semantics.

But still it would be better to fix this to keep the coherence of the code.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Comment 3 Víctor Manuel Jáquez Leal 2015-11-16 16:58:05 UTC
Created attachment 315694 [details] [review]
vaapipostproc: don't set caps change at first set

When the source caps change, the filter is destroyed and recreated.
Nonetheless, this happens every time the vaapipostproc starts, since the caps
change detection algorithm does not take in consideration when the caps are
set by first time.

This patch intents to be an optimization, to avoid a useless filter
destroy-creation cycle when the sources caps are set for first time.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Comment 4 Víctor Manuel Jáquez Leal 2015-11-17 12:19:52 UTC
Created attachment 315743 [details] [review]
vaapipostproc: params video_info_changed() callers

The signature is video_info_changed(old_vip, new_vip). Nonetheless the callers
swapped the the order. This didn't raise problems since the comparison of both
structures were not affected by its semantics.

But still it would be better to fix this to keep the coherence of the code.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Comment 5 Víctor Manuel Jáquez Leal 2015-11-17 12:19:58 UTC
Created attachment 315744 [details] [review]
vaapipostproc: don't set caps change at first set

When the source caps change, the filter is destroyed and recreated.
Nonetheless, this happens every time the vaapipostproc starts, since the caps
change detection algorithm does not take in consideration when the caps are
set by first time.

This patch intents to be an optimization, to avoid a useless filter
destroy-creation cycle when the sources caps are set for first time.

The new helper function video_info_update() is a refactorization to avoid
duplicated code.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Comment 6 Víctor Manuel Jáquez Leal 2015-11-19 11:28:38 UTC
Attachment 315743 [details] pushed as fc95852 - vaapipostproc: params video_info_changed() callers
Attachment 315744 [details] pushed as 7578332 - vaapipostproc: don't set caps change at first set