diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-14 00:24:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-14 00:24:26 +0100 |
| commit | 01f91d3d743b1d9c5306e8817cfd926eddc61736 (patch) | |
| tree | 849b17a202e81ed40f4016c3361aa5d35facab04 /src/lib/subtitle.h | |
| parent | 5ec4cafd9ed9966c0af6b3f33f78cc833950ee0c (diff) | |
Fix up tests; possibly working subtitle transforms.
Diffstat (limited to 'src/lib/subtitle.h')
| -rw-r--r-- | src/lib/subtitle.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/subtitle.h b/src/lib/subtitle.h index 18d2590eb..fcb6bc70c 100644 --- a/src/lib/subtitle.h +++ b/src/lib/subtitle.h @@ -24,6 +24,7 @@ struct AVSubtitle; class SubtitleImage; class SimpleImage; +class FilmState; class Subtitle { @@ -44,6 +45,20 @@ 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, + float target_x_scale, float target_y_scale, + Position sub_pos, int sub_width, int sub_height, + boost::shared_ptr<FilmState> fs + ); + class SubtitleImage { public: |
