Elecard
May 24, 2013, 04:18:45 am
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Elecard
>
PC Development Kits
>
PC SDK
>
Elecard SDK
>
Elecard Codec .NET SDK G4
(Moderator:
IrinaM
) >
Casting UtilitiesIbaseFilter
Pages: [
1
]
« previous
next »
Print
Author
Topic: Casting UtilitiesIbaseFilter (Read 2707 times)
juandiego
Newbie
Posts: 11
Casting UtilitiesIbaseFilter
«
on:
January 27, 2009, 10:06:34 pm »
I read in help files that there is a method (op_implicit) in Filter class that converts filter to IbaseFilter.
We are using C# project in VS2005.
But this method doesn't appear when i try to use it in an Utilities.Filter object that i created.
Anyway, I try with a standard casting
ibaseFilter my_ibaseFilter = (ibaseFilter)my_filter;
And returns an error because Utilities.Filter cannot convert to IbaseFilter...
Could you help me??
Logged
IrinaM
Moderator
Posts: 139
Re: Casting UtilitiesIbaseFilter
«
Reply #1 on:
January 28, 2009, 05:34:59 pm »
Hello juandiego,
this method (op_Implicit) returns the unmanaged pointer and so you can`t use it in C# code.
Filter class has the GetIUnknown property which returns the IUnknown interface pointer.
Syntax
IntPtr GetIUnknown();
Using
IBaseFilter bf = (IBaseFilter)Marshal.GetTypedObjectForIUnknown(fltr.GetIUnknown, typeof(IBaseFilter));
or
Object myFilter = Marshal.GetObjectForIUnknown(fltr.GetIUnknown);
IBaseFilter bf = myFilter as IBaseFilter;
Logged
juandiego
Newbie
Posts: 11
Re: Casting UtilitiesIbaseFilter
«
Reply #2 on:
January 28, 2009, 06:37:03 pm »
I'm going to test it
Thks
Logged
RapidZer
Newbie
Posts: 1
Re: Casting UtilitiesIbaseFilter
«
Reply #3 on:
February 21, 2010, 05:50:38 pm »
Hi there guys, I tried the op_Implicit) without the C# code on it. Pretty good since I was able to run it using the above syntax. I hope Diego was also able to solve his question since I haven't seen any reply from him since then.
Rapid Prototyping
«
Last Edit: March 10, 2010, 11:23:41 pm by RapidZer
»
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
PC Products
-----------------------------
=> Consumer Players
===> Elecard MPEG Player
===> Elecard DVD Player
=> Consumer Converters
===> Elecard Converter Studio
===> Elecard Converter Studio AVC HD Edition
===> Elecard Converter Studio AVC HD Edition Mac
===> Elecard XMuxer Lite
=> Professional Converters
===> Elecard Converter Studio Pro
===> Elecard Converter Studio Pro HD
===> Elecard XMuxer Pro
=> Elecard PlugIns
===> Elecard AVC PlugIn
===> Elecard AVC PlugIn for ProgDVB
===> Elecard AVC Streaming PlugIn for WMP
===> Elecard MPEG2 Decoder and Streaming PlugIn for WMP
===> Adobe Premiere AVC HD Compiler Plugin
===> Adobe Premiere AVC HD Import & Player Plugin
=> Professional Analyzing tools
===> Elecard StreamEye Studio
=====> Elecard YUV Viewer
=====> Elecard Video QuEst
=====> Elecard Stream Analyzer
=====> Elecard Buffer Analizer
=====> Elecard StreamEye
===> Elecard Stream Inspector
-----------------------------
PC Development Kits
-----------------------------
=> Media Foundation SDK
=> PC SDK
===> Elecard SDK
=====> Elecard Codec SDK G4
=====> Elecard Codec .NET SDK G4
=====> Elecard Video Transform SDK
===> Elecard SRD
=====> Elecard IPTV Player SRD
=====> Elecard XMuxer SRD
=> Components
===> AVC/H.264 solutions
===> Elecard AAC coding technology
===> MPEG-4 Intermedia Format (MP4)
===> OneClick Compressor
===> Audio Decoders
===> Audio Encoders
===> Networking components
===> Muxers-Demuxers
===> Transform components
===> Various components
===> Video Decoders
=====> Elecard Decoder Pack
===> Video Encoders
=====> Elecard MPEG-2 Encoder Pack
-----------------------------
DVB/IPTV Products
-----------------------------
=> DVB/IPTV Servers
===> CodecWorks
===> V-Cinema TimeShift Server
===> V-Cinema VoD Server
===> XWorks IP-DVB Encapsulator
===> XWorks DVB IP Gateway, XWorks RD
===> IPTV solutions
=> DVB/IPTV STB's
===> STB 820
===> STB 83x/84x
===> STB 610
===> Upcoming HD STB
===> Поддержка пользователей
=====> Прошивки
=====> Подключение
=====> Настройки(Settings)
=====> Интернет-вещание(IPTV)
=====> Vidimax(VoD)
=====> Видео по запросу(VoD)
=====> Интернет-услуги(Web Serviсes)
=====> Интернет-телефония(VoIP)
=====> USB
=====> Оплата товаров и уcлуг
=====> Пожелания и предложения
=====> Другое
-----------------------------
Embedded & Hardware Products
-----------------------------
=> PC Cards
===> HD SDI Capture and Playback boards (HD Access 2.0)
===> Deblock IP Core
===> DVB-ASI TX\RX
===> IP Cores under development
=> DSP Codec SDK
===> SC-1500
===> NXP Codecs
=====> PNX 1500/1700
=======> Audio Decoders
=======> Audio Encoders
=======> Muxer/Demuxer PS/TS
=======> Video Decoders
=======> Video Encoders
=====> PNX 8950
=======> AAC Decoder
=======> AVC Decoder
=======> MPEG Audio Decoder
=======> MPEG-2 Decoder
===> TI DaVinci Codecs
=====> DaVinci 6446
=======> AAC Decoder
=======> AVC Decoder
=======> AVC Encoder
=====> DaVinci 6467
=======> AVC HD Decoder
=======> AVC HD Encoder
-----------------------------
Solveig Multimedia
-----------------------------
=> Solveig Multimedia products
-----------------------------
Student developments
-----------------------------
=> Student developments
-----------------------------
Bug Reports
-----------------------------
=> Bugs Found / Bugs Fixed
-----------------------------
General
-----------------------------
=> General Discussions
=> Questions and Answers
=> Your Elecard Wishlist
-----------------------------
Website
-----------------------------
=> Site Comments and Feedback
Loading...