Skip to content

Commit f4f62e3

Browse files
committed
wip: fix build
1 parent eacf7c5 commit f4f62e3

File tree

6 files changed

+19
-20
lines changed

6 files changed

+19
-20
lines changed

src/accelerator/ogl/image/frame_converter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ ogl_frame_converter::convert_from_rgba(const core::const_frame& frame,
107107
CASPAR_THROW_EXCEPTION(not_supported() << msg_info("Unknown encoded frame format"));
108108
}
109109

110-
auto texture_ptr = boost::any_cast<std::shared_ptr<texture>>(frame.opaque());
110+
auto texture_ptr = std::any_cast<std::shared_ptr<texture>>(frame.opaque());
111111
if (!texture_ptr) {
112112
CASPAR_THROW_EXCEPTION(not_supported() << msg_info("No texture inside frame!"));
113113
}
@@ -126,7 +126,7 @@ ogl_frame_converter::convert_from_rgba(const core::const_frame& frame,
126126

127127
common::bit_depth ogl_frame_converter::get_frame_bitdepth(const core::const_frame& frame)
128128
{
129-
auto texture_ptr = boost::any_cast<std::shared_ptr<texture>>(frame.opaque());
129+
auto texture_ptr = std::any_cast<std::shared_ptr<texture>>(frame.opaque());
130130
if (!texture_ptr) {
131131
CASPAR_THROW_EXCEPTION(not_supported() << msg_info("No texture inside frame!"));
132132
}

src/accelerator/ogl/image/image_mixer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ class image_renderer
8282
core::color_space color_space)
8383
: ogl_(ogl)
8484
, kernel_(ogl_)
85-
, depth_(depth)
8685
, max_frame_size_(max_frame_size)
8786
, depth_(depth)
8887
, color_space_(color_space)
@@ -98,7 +97,7 @@ class image_renderer
9897
// }
9998

10099
return flatten(ogl_->dispatch_async(
101-
[=, layers = std::move(layers)]() mutable -> std::shared_future<array<const std::uint8_t>> {
100+
[=, layers = std::move(layers)]() mutable -> std::shared_future<core::mixed_image> {
102101
auto target_texture = ogl_->create_texture(format_desc.width, format_desc.height, 4, depth_);
103102

104103
draw(target_texture, std::move(layers), format_desc);

src/accelerator/ogl/image/image_mixer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class image_mixer final : public core::image_mixer
4848

4949
image_mixer& operator=(const image_mixer&) = delete;
5050

51-
std::future<array<const std::uint8_t>> operator()(const core::video_format_desc& format_desc) override;
51+
std::future<core::mixed_image> operator()(const core::video_format_desc& format_desc) override;
5252
core::mutable_frame create_frame(const void* tag, const core::pixel_format_desc& desc) override;
5353
core::mutable_frame
5454
create_frame(const void* video_stream_tag, const core::pixel_format_desc& desc, common::bit_depth depth) override;

src/core/frame/frame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const_frame::const_frame(std::vector<array<const std::uint8_t>> image_data,
155155
const_frame::const_frame(std::vector<array<const std::uint8_t>> image_data,
156156
array<const std::int32_t> audio_data,
157157
const struct pixel_format_desc& desc,
158-
boost::any opaque)
158+
std::any opaque)
159159
: impl_(new impl(std::move(image_data), std::move(audio_data), desc, opaque))
160160
{
161161
}

src/core/mixer/image/image_mixer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ namespace caspar { namespace core {
3434
struct mixed_image
3535
{
3636
array<const uint8_t> rgba8;
37-
boost::any texture;
37+
std::any texture;
3838

39-
mixed_image(array<const uint8_t> rgba8, boost::any texture)
39+
mixed_image(array<const uint8_t> rgba8, std::any texture)
4040
: rgba8(rgba8)
4141
, texture(texture)
4242
{

src/modules/decklink/consumer/decklink_consumer.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ struct decklink_consumer final : public IDeckLinkVideoOutputCallback
966966
// // frame2,
967967
// // mode_->GetFieldDominance());
968968

969-
// auto buffer = frame1.value().frame.get();
969+
auto buffer = frame1.value().frame.get();
970970

971971
// // rgb12:
972972
// // std::shared_ptr<void> image_data =
@@ -978,20 +978,20 @@ struct decklink_consumer final : public IDeckLinkVideoOutputCallback
978978
// // video_display_time);
979979

980980
// // yuv10:
981-
// std::shared_ptr<void> image_data = create_aligned_buffer(buffer.size(), 128);
982-
// std::memcpy(image_data.get(), buffer.data(), buffer.size());
981+
std::shared_ptr<void> image_data = create_aligned_buffer(buffer.size(), 128);
982+
std::memcpy(image_data.get(), buffer.data(), buffer.size());
983983

984984
// schedule_next_video(image_data, bmdFormat10BitYUV, nb_samples, video_display_time);
985-
std::shared_ptr<void> image_data = convert_frame_for_port(channel_format_desc_,
986-
decklink_format_desc_,
987-
config_.primary,
988-
frame1,
989-
frame2,
990-
mode_->GetFieldDominance(),
991-
config_.hdr);
985+
// std::shared_ptr<void> image_data = convert_frame_for_port(channel_format_desc_,
986+
// decklink_format_desc_,
987+
// config_.primary,
988+
// frame1,
989+
// frame2,
990+
// mode_->GetFieldDominance(),
991+
// config_.hdr);
992992

993993
schedule_next_video(
994-
image_data, nb_samples, video_display_time, frame1.pixel_format_desc().color_space);
994+
image_data, nb_samples, video_display_time, frame1.value().raw_frame.pixel_format_desc().color_space);
995995

996996
if (config_.embedded_audio) {
997997
schedule_next_audio(std::move(audio_data), nb_samples);
@@ -1180,7 +1180,7 @@ spl::shared_ptr<core::frame_consumer> create_consumer(const std::vector<std::wst
11801180
<< msg_info("Decklink consumer does not support hdr in combination with key only"));
11811181
}
11821182

1183-
return spl::make_shared<decklink_consumer_proxy>(config);
1183+
return spl::make_shared<decklink_consumer_proxy>(frame_converter, config);
11841184
}
11851185

11861186
spl::shared_ptr<core::frame_consumer>

0 commit comments

Comments
 (0)