diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-14 13:02:57 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-14 13:02:57 +0100 |
| commit | 48c8f23660184486efbb34df9d677108b0eab204 (patch) | |
| tree | ac1a4ea6aa23ed159bbcf8d10d1000739b5ad252 /src/lib/subtitle.h | |
| parent | b1fc0de953b1c2fce8a31b267b63dfcaf67830c7 (diff) | |
Try moving subtitle adjustment for crop into the decoder.
Diffstat (limited to 'src/lib/subtitle.h')
| -rw-r--r-- | src/lib/subtitle.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/lib/subtitle.h b/src/lib/subtitle.h index fcb6bc70c..0b82320a1 100644 --- a/src/lib/subtitle.h +++ b/src/lib/subtitle.h @@ -45,17 +45,9 @@ private: std::list<boost::shared_ptr<SubtitleImage> > _images; }; -struct SubtitleTransform -{ -public: - Rectangle crop; - Rectangle transformed; -}; - -extern SubtitleTransform subtitle_transform ( - int target_base_width, int target_base_height, +extern Rectangle transformed_subtitle_area ( float target_x_scale, float target_y_scale, - Position sub_pos, int sub_width, int sub_height, + Rectangle sub_area, boost::shared_ptr<FilmState> fs ); @@ -64,6 +56,10 @@ class SubtitleImage public: SubtitleImage (AVSubtitleRect const *); + void set_position (Position p) { + _position = p; + } + Position position () const { return _position; } |
