auto sc = load (path(0));
- auto iop = dynamic_pointer_cast<dcp::InteropSubtitleAsset>(sc);
auto smpte = dynamic_pointer_cast<dcp::SMPTESubtitleAsset>(sc);
if (smpte) {
set_video_frame_rate (smpte->edit_rate().numerator);
*/
list<dcp::SubtitleString> s;
- list<dcp::SubtitleImage> i;
auto const p = content_time_period (*_next);
while (_next != _subtitles.end () && content_time_period (*_next) == p) {
Film::write_template (boost::filesystem::path path) const
{
boost::filesystem::create_directories (path.parent_path());
- shared_ptr<xmlpp::Document> doc = metadata (false);
metadata(false)->write_to_file_formatted(path.string());
}
string
Film::dcp_name (bool if_created_now) const
{
- string unfiltered;
if (use_isdcf_name()) {
return careful_string_filter (isdcf_name (if_created_now));
}
void
Image::fade (float f)
{
- /* U/V black value for 8-bit colour */
- static int const eight_bit_uv = (1 << 7) - 1;
- /* U/V black value for 10-bit colour */
- static uint16_t const ten_bit_uv = (1 << 9) - 1;
-
switch (_pixel_format) {
case AV_PIX_FMT_YUV420P:
{
time_t const sec = _time.tv_sec;
struct tm* t = localtime (&sec);
strftime (buffer, 64, "%c", t);
- string a (buffer);
s += string(buffer) + N_(": ");
}
void
SubtitleAppearanceDialog::add_colours ()
{
- auto colours = _stream->colours ();
for (auto const& i: _stream->colours()) {
auto from = new wxPanel(_colours_panel, wxID_ANY);
from->SetBackgroundColour(wxColour(i.first.r, i.first.g, i.first.b, i.first.a));