diff options
| author | jhurst <jhurst@cinecert.com> | 2005-12-21 09:16:32 +0000 |
|---|---|---|
| committer | jhurst <> | 2005-12-21 09:16:32 +0000 |
| commit | a526fabf937848823b02d5486a6ec38f8442bb1c (patch) | |
| tree | 7babb27134c92535691d2aba06a7d0b6a542152b /src/AS_DCP_MPEG2.cpp | |
| parent | c6900386fb66832781456838804ed7e28c535d63 (diff) | |
code-generated metadata!
Diffstat (limited to 'src/AS_DCP_MPEG2.cpp')
| -rwxr-xr-x | src/AS_DCP_MPEG2.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/AS_DCP_MPEG2.cpp b/src/AS_DCP_MPEG2.cpp index a126583..103cd44 100755 --- a/src/AS_DCP_MPEG2.cpp +++ b/src/AS_DCP_MPEG2.cpp @@ -40,8 +40,26 @@ ASDCP::Result_t ASDCP::MD_to_MPEG2_VDesc(MXF::MPEG2VideoDescriptor* VDescObj, MPEG2::VideoDescriptor& VDesc) { ASDCP_TEST_NULL(VDescObj); - VDesc = *((MPEG2::VideoDescriptor*)VDescObj); - VDesc.FrameRate = 0; + + VDesc.SampleRate = VDescObj->SampleRate; + VDesc.EditRate = VDescObj->SampleRate; + VDesc.FrameRate = VDescObj->SampleRate.Numerator; + VDesc.ContainerDuration = VDescObj->ContainerDuration; + + VDesc.FrameLayout = VDescObj->FrameLayout; + VDesc.StoredWidth = VDescObj->StoredWidth; + VDesc.StoredHeight = VDescObj->StoredHeight; + VDesc.AspectRatio = VDescObj->AspectRatio; + + VDesc.ComponentDepth = VDescObj->ComponentDepth; + VDesc.HorizontalSubsampling = VDescObj->HorizontalSubsampling; + VDesc.VerticalSubsampling = VDescObj->VerticalSubsampling; + VDesc.ColorSiting = VDescObj->ColorSiting; + VDesc.CodedContentType = VDescObj->CodedContentType; + + VDesc.LowDelay = VDescObj->LowDelay; + VDesc.BitRate = VDescObj->BitRate; + VDesc.ProfileAndLevel = VDescObj->ProfileAndLevel; return RESULT_OK; } |
