d3d11h264dec,d3d11h265dec: Add support for non-zero cropping window offset
Decoder should be able to convey expected display area
information which is signalled via SPS.
To support non-zero cropping window offset (i.e., conf_win_left_offset
and/or conf_win_top_offset is not zero), we need to attach
GstVideoCropMeta if it's supported by downstream.
Or, only display area needs to be outputted if downstream doesn't
support GstVideoCropMeta.
Implementation-wise, in case that downstream is d3d11 element
and also supports GstVideoCropMeta
(currently none of d3d11 elements support it), d3d11 decoder will output
buffers without copying but GstVideoCropMeta will be attached instead.
Otherwise, decoded texture will be copied into downstream
buffer even if downstream is d3d11 element.
Edited by Seungha Yang