diff options
Diffstat (limited to 'src/mono_mpeg2_picture_frame.cc')
| -rw-r--r-- | src/mono_mpeg2_picture_frame.cc | 8 |
1 files changed, 8 insertions, 0 deletions
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<ASDCP::MPEG2::FrameBuffer>(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. |
