summaryrefslogtreecommitdiff
path: root/src/AS_DCP_MPEG2.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2005-12-21 09:16:32 +0000
committerjhurst <>2005-12-21 09:16:32 +0000
commita526fabf937848823b02d5486a6ec38f8442bb1c (patch)
tree7babb27134c92535691d2aba06a7d0b6a542152b /src/AS_DCP_MPEG2.cpp
parentc6900386fb66832781456838804ed7e28c535d63 (diff)
code-generated metadata!
Diffstat (limited to 'src/AS_DCP_MPEG2.cpp')
-rwxr-xr-xsrc/AS_DCP_MPEG2.cpp22
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;
}