From cca70e0824e6883f50838578897792476953ea24 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 19 Mar 2024 17:44:10 +0100 Subject: Support MPEG2 compression. --- src/mono_mpeg2_picture_frame.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mono_mpeg2_picture_frame.cc') diff --git a/src/mono_mpeg2_picture_frame.cc b/src/mono_mpeg2_picture_frame.cc index 3da67212..3c79a94c 100644 --- a/src/mono_mpeg2_picture_frame.cc +++ b/src/mono_mpeg2_picture_frame.cc @@ -42,6 +42,14 @@ using namespace dcp; +MonoMPEG2PictureFrame::MonoMPEG2PictureFrame(uint8_t const* data, int size) +{ + _buffer = make_shared(size); + memcpy(_buffer->Data(), data, size); + _buffer->Size(size); +} + + /** Make a picture frame from a 2D (monoscopic) asset. * @param reader Reader for the asset's MXF file. * @param n Frame within the asset, not taking EntryPoint into account. -- cgit v1.2.3