2 * Copyright (c) 2011 Sveriges Television AB <info@casparcg.com>
4 * This file is part of CasparCG (www.casparcg.com).
6 * CasparCG is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * CasparCG is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with CasparCG. If not, see <http://www.gnu.org/licenses/>.
19 * Author: Robert Nagy, ronag89@gmail.com
24 #include "frame_visitor.h"
27 #include <common/memory.h>
31 namespace caspar { namespace core {
33 class draw_frame final
38 static draw_frame interlace(draw_frame frame1, draw_frame frame2, core::field_mode mode);
39 static draw_frame over(draw_frame frame1, draw_frame frame2);
40 static draw_frame mask(draw_frame fill, draw_frame key);
41 static draw_frame still(draw_frame frame);
42 static draw_frame push(draw_frame frame);
44 static const draw_frame& empty();
45 static const draw_frame& late();
50 draw_frame(const draw_frame& other);
51 draw_frame(draw_frame&& other);
52 explicit draw_frame(const_frame&& frame);
53 explicit draw_frame(mutable_frame&& frame);
54 explicit draw_frame(std::vector<draw_frame> frames);
60 draw_frame& operator=(draw_frame other);
62 void swap(draw_frame& other);
64 void accept(frame_visitor& visitor) const;
66 int64_t get_and_record_age_millis();
68 bool operator==(const draw_frame& other) const;
69 bool operator!=(const draw_frame& other) const;
73 const core::frame_transform& transform() const;
74 core::frame_transform& transform();
78 spl::unique_ptr<impl> impl_;