gstreamer/gst/vaapi
U. Artie Eoff 9fd020a117 vaapipostproc: handle size and direction together in src events
Mapping a pointer event needs to consider both size and
video-direction operations together, not just one or the other.

This fixes an issue where x,y were not being mapped correctly
for 90r, 90l, ur-ll and ul-lr video-direction. In these directions,
the WxH are swapped and GST_VAAPI_POSTPROC_FLAG_SIZE is set.  Thus,
the first condition in the pointer event handling was entered and
x,y scale factor were incorrectly computed due to srcpad WxH
swap.

This also fixes all cases where both video-direction and scaling
are enabled at the same time.

Test that all pointer events map appropriately:

for i in `seq 0 7`
do
 GST_DEBUG=vaapipostproc:5 gst-launch-1.0 -vf videotestsrc \
  ! vaapipostproc video-direction=${i} width=300 \
  ! vaapisink
 GST_DEBUG=vaapipostproc:5 gst-launch-1.0 -vf videotestsrc \
  ! vaapipostproc video-direction=${i} width=300 height=200 \
  ! vaapisink
 GST_DEBUG=vaapipostproc:5 gst-launch-1.0 -vf videotestsrc \
  ! vaapipostproc video-direction=${i} height=200 \
  ! vaapisink
 GST_DEBUG=vaapipostproc:5 gst-launch-1.0 -vf videotestsrc \
  ! vaapipostproc video-direction=${i} \
  ! vaapisink
done
2019-09-04 16:03:24 -07:00
..
gstcompat.h Remove old gst version guards 2016-01-25 12:09:40 +00:00
gstvaapi.c vaapi: bump the minimum vaapi version requirement to 0.39.0 2019-01-07 17:46:42 +00:00
gstvaapi.h vaapidecodebin: Register element if no VPP support is available too 2017-10-20 12:59:10 +02:00
gstvaapidecode.c vaapidecode: support transform ROI meta 2019-08-26 09:36:54 +00:00
gstvaapidecode.h vaapidecode: update internal decoder sink caps 2017-01-18 11:30:49 +01:00
gstvaapidecode_props.c vaapidecode: set h264 base-only to decoder 2017-08-03 17:07:14 +02:00
gstvaapidecode_props.h vaapidecode_props: h264: add base-only property 2017-08-03 17:07:01 +02:00
gstvaapidecodebin.c Classify vaapidecodebin as a hardware decoder 2019-08-28 12:49:03 -04:00
gstvaapidecodebin.h vaapidecodebin: skips configuration once it's done 2017-04-21 11:48:16 +02:00
gstvaapidecodedoc.c docstrings: port ulinks to markdown links 2019-08-23 19:10:15 +02:00
gstvaapiencode.c plugin: encode: delete useless init_properties. 2019-08-30 21:21:04 +08:00
gstvaapiencode.h plugin: encode: delete useless init_properties. 2019-08-30 21:21:04 +08:00
gstvaapiencode_h264.c gst: encode: enable new type of property mechanism. 2019-08-30 21:19:14 +08:00
gstvaapiencode_h264.h vaapiencode: h264: verify if requested profile is supported 2017-07-03 15:33:20 +02:00
gstvaapiencode_h264_fei.c gst: encode: enable new type of property mechanism. 2019-08-30 21:19:14 +08:00
gstvaapiencode_h264_fei.h FEI: plugin: Add vaapih264feienc element 2017-09-01 13:15:05 +02:00
gstvaapiencode_h265.c gst: encode: enable new type of property mechanism. 2019-08-30 21:19:14 +08:00
gstvaapiencode_h265.h HEVC_Encode: Add HEVC(h265) Encoder plugin 2015-05-25 11:58:20 +03:00
gstvaapiencode_jpeg.c gst: encode: enable new type of property mechanism. 2019-08-30 21:19:14 +08:00
gstvaapiencode_jpeg.h plugins: Add JPEG encoder element 2015-02-04 11:18:29 +02:00
gstvaapiencode_mpeg2.c gst: encode: enable new type of property mechanism. 2019-08-30 21:19:14 +08:00
gstvaapiencode_mpeg2.h legal: update copyright notice dates. 2014-01-22 19:02:35 +01:00
gstvaapiencode_vp8.c gst: encode: enable new type of property mechanism. 2019-08-30 21:19:14 +08:00
gstvaapiencode_vp8.h plugins: Add VP8 Encoder 2015-02-13 13:45:32 +02:00
gstvaapiencode_vp9.c gst: encode: enable new type of property mechanism. 2019-08-30 21:19:14 +08:00
gstvaapiencode_vp9.h Add vp9 encode element to "vaapi" plugin 2016-05-30 11:24:14 +03:00
gstvaapifeivideometa.c FEI: plugin: Add fei specific video meta 2017-09-01 11:36:49 +02:00
gstvaapifeivideometa.h FEI: plugin: Add fei specific video meta 2017-09-01 11:36:49 +02:00
gstvaapipluginbase.c plugins: remove last negotiated video info if caps are same 2019-06-10 21:28:13 -07:00
gstvaapipluginbase.h plugins: Add more check for allowed raw caps. 2018-12-24 10:46:23 +00:00
gstvaapipluginutil.c libs: remove surface's parent context 2019-08-20 17:11:23 +02:00
gstvaapipluginutil.h libs: decoder: jpeg: add support 400/411/422/444 chroma type 2019-06-26 10:36:56 +00:00
gstvaapipostproc.c vaapipostproc: handle size and direction together in src events 2019-09-04 16:03:24 -07:00
gstvaapipostproc.h vaapipostproc: advertise crop meta is handled 2019-08-30 17:01:55 +00:00
gstvaapipostprocutil.c vaapipostproc: handle image-orientation upstream event 2019-08-19 16:48:50 +00:00
gstvaapipostprocutil.h vaapipostproc: move gst_vaapipostproc_fixate_srccaps() 2016-05-09 16:56:10 +02:00
gstvaapisink.c doc: remove xml from comments 2019-05-29 23:08:22 +02:00
gstvaapisink.h vaapisink: add support for GST_TAG_IMAGE_ORIENTATION 2016-07-05 20:17:12 +02:00
gstvaapivideobuffer.c remove the video converter from vaapi buffer meta 2016-11-24 18:32:34 +01:00
gstvaapivideobuffer.h plugins: re-indent all GstVaapiVideo* related source code. 2014-08-22 15:54:32 +02:00
gstvaapivideobufferpool.c Update for g_type_class_add_private() deprecation in recent GLib 2018-06-24 13:07:20 +02:00
gstvaapivideobufferpool.h vaapibufferpool: add gst_vaapi_video_buffer_pool_copy_buffer() 2018-02-20 10:57:12 -06:00
gstvaapivideocontext.c plugin: remove custom GstGL context handling 2018-04-26 19:37:54 +02:00
gstvaapivideocontext.h plugin: remove custom GstGL context handling 2018-04-26 19:37:54 +02:00
gstvaapivideomemory.c vaapivideomemory: demote error message to info 2019-08-15 12:58:44 +02:00
gstvaapivideomemory.h vaapivideomemory: remove unused macro 2018-02-07 09:22:29 +01:00
gstvaapivideometa.c libs: display: remove gst_vaapi_display_ref() 2018-06-14 16:41:00 +02:00
gstvaapivideometa.h remove the video converter from vaapi buffer meta 2016-11-24 18:32:34 +01:00
gstvaapivideometa_texture.c libs: object: separation of internal API and plugins 2018-09-25 17:41:55 +02:00
gstvaapivideometa_texture.h plugins: re-indent all GstVaapiVideo* related source code. 2014-08-22 15:54:32 +02:00
Makefile.am vaapi: bump the minimum vaapi version requirement to 0.39.0 2019-01-07 17:46:42 +00:00
meson.build docs: Port to hotdoc 2019-05-13 17:00:00 -04:00