struct transition_producer : public frame_producer\r
{ \r
const video_mode::type mode_;\r
- uint32_t current_frame_;\r
+ unsigned int current_frame_;\r
\r
const transition_info info_;\r
\r
if(info_.type == transition::cut) \r
return src_frame;\r
\r
- double delta1 = info_.tweener(current_frame_*2-1, 0.0, 1.0, info_.duration*2);\r
- double delta2 = info_.tweener(current_frame_*2, 0.0, 1.0, info_.duration*2); \r
+ const double delta1 = info_.tweener(current_frame_*2-1, 0.0, 1.0, info_.duration*2);\r
+ const double delta2 = info_.tweener(current_frame_*2, 0.0, 1.0, info_.duration*2); \r
\r
- double dir = info_.direction == transition_direction::from_left ? 1.0 : -1.0; \r
+ const double dir = info_.direction == transition_direction::from_left ? 1.0 : -1.0; \r
\r
// For interlaced transitions. Seperate fields into seperate frames which are transitioned accordingly.\r
\r
d_frame2->get_image_transform().set_clip_scale(delta2, 1.0); \r
}\r
\r
- auto s_frame = s_frame1->get_image_transform() == s_frame2->get_image_transform() ? s_frame2 : basic_frame::interlace(s_frame1, s_frame2, mode_);\r
- auto d_frame = d_frame1->get_image_transform() == d_frame2->get_image_transform() ? d_frame2 : basic_frame::interlace(d_frame1, d_frame2, mode_);\r
+ const auto s_frame = s_frame1->get_image_transform() == s_frame2->get_image_transform() ? s_frame2 : basic_frame::interlace(s_frame1, s_frame2, mode_);\r
+ const auto d_frame = d_frame1->get_image_transform() == d_frame2->get_image_transform() ? d_frame2 : basic_frame::interlace(d_frame1, d_frame2, mode_);\r
\r
return basic_frame::combine(s_frame, d_frame);\r
}\r