X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplayer_video.h;h=60c9224b0e5254978397e271fb1206584c970c68;hb=a78b741c43830c84bcb4d18e3147746f13a668e5;hp=01b1c74f53e29e4878673759f2f73d3fb78031c1;hpb=6c19b21e12f73ce63edd406ea617ff25bcc9bfea;p=dcpomatic.git diff --git a/src/lib/player_video.h b/src/lib/player_video.h index 01b1c74f5..60c9224b0 100644 --- a/src/lib/player_video.h +++ b/src/lib/player_video.h @@ -1,19 +1,20 @@ /* Copyright (C) 2013-2015 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ @@ -40,7 +41,6 @@ class PlayerVideo public: PlayerVideo ( boost::shared_ptr, - DCPTime, Crop, boost::optional, dcp::Size, @@ -54,7 +54,10 @@ public: void set_subtitle (PositionImage); - boost::shared_ptr image (dcp::NoteHandler note) const; + boost::shared_ptr image (dcp::NoteHandler note, boost::function pixel_format, bool aligned, bool fast) const; + + static AVPixelFormat always_rgb (AVPixelFormat); + static AVPixelFormat keep_xyz_or_rgb (AVPixelFormat); void add_metadata (xmlpp::Node* node) const; void send_binary (boost::shared_ptr socket) const; @@ -62,14 +65,14 @@ public: bool has_j2k () const; dcp::Data j2k () const; - DCPTime time () const { - return _time; - } - Eyes eyes () const { return _eyes; } + void set_eyes (Eyes e) { + _eyes = e; + } + boost::optional colour_conversion () const { return _colour_conversion; } @@ -86,7 +89,6 @@ public: private: boost::shared_ptr _in; - DCPTime _time; Crop _crop; boost::optional _fade; dcp::Size _inter_size;