[theora] ITheoraEncodeSettings C# interop
Andrew Bisson
Andrew.Bisson at gossinteractive.com
Tue Apr 6 04:19:57 PDT 2010
My apologies if this is considered somewhat off-topic but I presume that
this information may be may also be of use to others using these
filters.
Is there someone with a better understanding of COM than I have who can
tell me where I'm going wrong with the following C# interface
definition?
I can set and recover a quality setting using this interface but not the
isUsingQualityMode flag. Not sure why they should be different.
Thanks,
Andy
using System.Runtime.InteropServices;
[ComVisible(true),
ComImport,
Guid("4F063B3A-B397-4c22-AFF4-2F8DB96D292A"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface ITheoraEncodeSettings
{
[PreserveSig]
bool canModifySettings();
[PreserveSig]
ulong targetBitrate();
[PreserveSig]
ulong keyFrameDataBitrate();
[PreserveSig]
byte quality();
[PreserveSig]
long sharpness();
[PreserveSig]
long noiseSensitivity();
[PreserveSig]
ulong keyframeFreq();
[PreserveSig]
bool isFixedKeyframeInterval();
[PreserveSig]
bool allowDroppedFrames();
[PreserveSig]
bool isUsingQualityMode();
[PreserveSig]
bool isUsingQuickMode();
[PreserveSig]
ulong keyframeFreqMin();
[PreserveSig]
long keyframeAutoThreshold();
[PreserveSig]
bool setTargetBitrate([In] ulong inBitrate);
[PreserveSig]
bool setKeyframeDataBitrate([In] ulong inBitrate);
[PreserveSig]
bool setQuality([In] byte inQuality);
[PreserveSig]
bool setSharpness([In] long inSharpness);
[PreserveSig]
bool setNoiseSensitivity([In] long inNoiseSensitivity);
[PreserveSig]
bool setKeyframeFreq([In] ulong inKeyframeFreq);
[PreserveSig]
bool setIsFixedKeyframeInterval([In] bool inIsFixedKeyframeInterval);
[PreserveSig]
bool setAllowDroppedFrames([In] bool inAllowDroppedFrames);
[PreserveSig]
bool setIsUsingQualityMode([In] bool inIsUsingQualityMode);
[PreserveSig]
bool setIsUsingQuickMode([In] bool inIsUsingQuickMode);
[PreserveSig]
bool setKeyframeFreqMin([In] ulong inKeyframeFreqMin);
[PreserveSig]
bool setKeyframeAutoThreshold([In] long inKeyframeAutoThreshold);
[PreserveSig]
void setFlipImageVerticaly([In] bool flipImageVerticaly);
[PreserveSig]
bool getFlipImageVerticaly();
}
Free Developer Webinar for clients on 19th May, more information on our client extranet: http://www.gossinteractive.com/devugmay2010
Web design and Content Management experts. www.twitter.com/gossinteractive
Registered Office: c/o Bishop Fleming, Cobourg House, Mayflower Street, Plymouth, PL1 1LG. Company Registration No: 3553908
This email contains proprietary information, some or all of which may be legally privileged. It is for the intended recipient only. If an addressing or transmission error has misdirected this email, please notify the author by replying to this email. If you are not the intended recipient you may not use, disclose, distribute, copy, print or rely on this email.
Email transmission cannot be guaranteed to be secure or error free, as information may be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. This email and any files attached to it have been checked with virus detection software before transmission. You should nonetheless carry out your own virus check before opening any attachment. GOSS Interactive Ltd accepts no liability for any loss or damage that may be caused by software viruses.
More information about the theora
mailing list