{
guint tmp;
+ g_return_if_fail (postproc->has_vpp);
+
/* The video meta is required since the caps width/height are smaller,
* which would not result in a usable GstVideoInfo for mapping the
* buffer. */
info.width = video_meta->width;
info.height = video_meta->height;
- /* compensate for rotation if needed */
- switch (gst_vaapi_filter_get_video_direction (postproc->filter)) {
- case GST_VIDEO_ORIENTATION_90R:
- case GST_VIDEO_ORIENTATION_UL_LR:
- case GST_VIDEO_ORIENTATION_90L:
- case GST_VIDEO_ORIENTATION_UR_LL:
- G_PRIMITIVE_SWAP (guint, info.width, info.height);
- default:
- break;
+ if (postproc->has_vpp) {
+ /* compensate for rotation if needed */
+ switch (gst_vaapi_filter_get_video_direction (postproc->filter)) {
+ case GST_VIDEO_ORIENTATION_90R:
+ case GST_VIDEO_ORIENTATION_UL_LR:
+ case GST_VIDEO_ORIENTATION_90L:
+ case GST_VIDEO_ORIENTATION_UR_LL:
+ G_PRIMITIVE_SWAP (guint, info.width, info.height);
+ default:
+ break;
+ }
}
ensure_buffer_pool (postproc, &info);
gdouble wd = GST_VIDEO_INFO_WIDTH (&postproc->srcpad_info);
gdouble hd = GST_VIDEO_INFO_HEIGHT (&postproc->srcpad_info);
+ g_return_if_fail (postproc->has_vpp);
+
switch (gst_vaapi_filter_get_video_direction (postproc->filter)) {
case GST_VIDEO_ORIENTATION_90R:
case GST_VIDEO_ORIENTATION_90L:
GST_EVENT (gst_mini_object_make_writable (GST_MINI_OBJECT (event)));
structure = (GstStructure *) gst_event_get_structure (event);
- if (gst_structure_get_double (structure, "pointer_x", &x) &&
- gst_structure_get_double (structure, "pointer_y", &y)) {
+ if (postproc->has_vpp
+ && gst_structure_get_double (structure, "pointer_x", &x)
+ && gst_structure_get_double (structure, "pointer_y", &y)) {
GST_DEBUG_OBJECT (postproc, "converting %fx%f", x, y);
/* video-direction compensation */
from_w = GST_VIDEO_INFO_WIDTH (vinfo);
from_h = GST_VIDEO_INFO_HEIGHT (vinfo);
- /* adjust for crop settings */
- from_w -= postproc->crop_left + postproc->crop_right;
- from_h -= postproc->crop_top + postproc->crop_bottom;
-
- /* compensate for rotation if needed */
- switch (gst_vaapi_filter_get_video_direction (postproc->filter)) {
- case GST_VIDEO_ORIENTATION_90R:
- case GST_VIDEO_ORIENTATION_90L:
- case GST_VIDEO_ORIENTATION_UL_LR:
- case GST_VIDEO_ORIENTATION_UR_LL:
- G_PRIMITIVE_SWAP (gint, from_w, from_h);
- G_PRIMITIVE_SWAP (gint, from_par_n, from_par_d);
- default:
- break;
+ if (postproc->has_vpp) {
+ /* adjust for crop settings */
+ from_w -= postproc->crop_left + postproc->crop_right;
+ from_h -= postproc->crop_top + postproc->crop_bottom;
+
+ /* compensate for rotation if needed */
+ switch (gst_vaapi_filter_get_video_direction (postproc->filter)) {
+ case GST_VIDEO_ORIENTATION_90R:
+ case GST_VIDEO_ORIENTATION_90L:
+ case GST_VIDEO_ORIENTATION_UL_LR:
+ case GST_VIDEO_ORIENTATION_UR_LL:
+ G_PRIMITIVE_SWAP (gint, from_w, from_h);
+ G_PRIMITIVE_SWAP (gint, from_par_n, from_par_d);
+ default:
+ break;
+ }
}
gst_structure_get_int (outs, "width", &w);