libdcp
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
dcp::MonoMPEG2PictureFrame Class Reference
Inheritance diagram for dcp::MonoMPEG2PictureFrame:
dcp::Data

Public Member Functions

 MonoMPEG2PictureFrame (uint8_t const *data, int size)
 
 MonoMPEG2PictureFrame (MonoMPEG2PictureFrame const &)=delete
 
MonoMPEG2PictureFrameoperator= (MonoMPEG2PictureFrame const &)=delete
 
uint8_t const * data () const override
 
uint8_t * data () override
 
int size () const override
 
- Public Member Functions inherited from dcp::Data
void write (boost::filesystem::path file) const
 
void write_via_temp (boost::filesystem::path temp, boost::filesystem::path final) const
 

Private Member Functions

 MonoMPEG2PictureFrame (ASDCP::MPEG2::MXFReader *reader, int n, std::shared_ptr< DecryptionContext >, bool check_hmac)
 

Private Attributes

std::shared_ptr< ASDCP::MPEG2::FrameBuffer > _buffer
 

Friends

class AssetReader< ASDCP::MPEG2::MXFReader, MonoMPEG2PictureFrame >
 

Detailed Description

Definition at line 46 of file mono_mpeg2_picture_frame.h.

Constructor & Destructor Documentation

◆ MonoMPEG2PictureFrame()

MonoMPEG2PictureFrame::MonoMPEG2PictureFrame ( ASDCP::MPEG2::MXFReader *  reader,
int  n,
std::shared_ptr< DecryptionContext context,
bool  check_hmac 
)
private

Make a picture frame from a 2D (monoscopic) asset.

Parameters
readerReader for the asset's MXF file.
nFrame within the asset, not taking EntryPoint into account.
cContext for decryption, or 0.
check_hmactrue to check the HMAC and give an error if it is not as expected.

Definition at line 59 of file mono_mpeg2_picture_frame.cc.

Member Function Documentation

◆ data() [1/2]

uint8_t const * MonoMPEG2PictureFrame::data ( ) const
overridevirtual
Returns
Pointer to MPEG2 data

Implements dcp::Data.

Definition at line 73 of file mono_mpeg2_picture_frame.cc.

◆ data() [2/2]

uint8_t * MonoMPEG2PictureFrame::data ( )
overridevirtual
Returns
Pointer to MPEG2 data

Implements dcp::Data.

Definition at line 80 of file mono_mpeg2_picture_frame.cc.

◆ size()

int MonoMPEG2PictureFrame::size ( ) const
overridevirtual
Returns
Size of MPEG2 data in bytes

Implements dcp::Data.

Definition at line 87 of file mono_mpeg2_picture_frame.cc.


The documentation for this class was generated from the following files: