This bug happens when media size doesn't match scene size and proxies
are enabled.
Issue is resolved mainly by passing is_proxy_image to
input_preprocess() function and calculating scale correction for
transorm and scale.
Problem was introduced in 571362642201. Previously all images were
scaled to fit into preview, so no special scaling for proxies was
necessary.
text strips scaling was also incorrect - set is_proxy_image when text
is generated with reduced resolution. When proxies are used for
preview, text strips will generate reduced resolustion image, that is
effectively a proxy. With current design we can transform this image
further, but information that this image is proxy wasn't set.
Correction factors are explained by comment, but in case of transform
feature functionality may be clearer if this functionality is split
in a way that transformation matrix is calculated first for preview size
scale and this matrix is passed to sequencer_image_transform_do_thread()
function.