diff options
author | wm4 <wm4@nowhere> | 2016-04-08 22:21:31 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-04-08 22:21:38 +0200 |
commit | 87cb2339a6870e04a05d54b4e297168fb2bf5e34 (patch) | |
tree | 79c7301509e6a0dca70c0e00029e2fc4585ac7d0 /video/out/opengl/video.h | |
parent | a2db0105abbfe447b032dc89f3b57abe4585db18 (diff) | |
download | mpv-87cb2339a6870e04a05d54b4e297168fb2bf5e34.tar.bz2 mpv-87cb2339a6870e04a05d54b4e297168fb2bf5e34.tar.xz |
vo_opengl: improve rotation handling (again)
Apply basic transformations like rotation by 90° and mirroring when
sampling from the source textures. The original idea was making this
part of img_tex.transform, but this didn't work: lots of code plays
tricks on the transform, so manipulating it is not necessarily
transparent, especially when width/height are switched. So add a new
pre_transform field, which is strictly applied before the normal
transform.
This fixes most glitches involved with rotating the image.
Cropping and rotation are now weirdly separated, even though they could
be done in the same step. I think this is not much of a problem, and
has the advantage that changing panscan does not trigger FBO
reallocations (I think...).
Diffstat (limited to 'video/out/opengl/video.h')
-rw-r--r-- | video/out/opengl/video.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/video/out/opengl/video.h b/video/out/opengl/video.h index 4f9d497997..4702f8cc79 100644 --- a/video/out/opengl/video.h +++ b/video/out/opengl/video.h @@ -63,7 +63,6 @@ struct scaler { GLuint gl_lut; GLenum gl_target; struct fbotex sep_fbo; - struct fbotex sep_rot_fbo; bool insufficient; int lut_size; |