예제 #1
0
        void SET_SAMPLE_ATTRIBUTE(StspSampleHeader sampleHeader, IMFSample pSample, Guid flag, StspSampleFlags flagValue)
        {
            var value = (int)flagValue;

            if ((value & sampleHeader.dwFlagMasks) == value)
            {
                ThrowIfError(pSample.SetUINT32(flag, ((value & sampleHeader.dwFlags) == value) ? 1 : 0));
            }
        }
예제 #2
0
 private void SetSampleAttributes(StspSampleHeader sampleHeader, IMFSample sample)
 {
     ThrowIfError(sample.SetSampleTime(sampleHeader.ullTimestamp));
     ThrowIfError(sample.SetSampleDuration(sampleHeader.ullDuration));
 }