Saturday, 15 January 2011

DirectShow IsUsingTimeFormat vs. GetTimeFormat -



DirectShow IsUsingTimeFormat vs. GetTimeFormat -

i reading through documentation imediaseeking interface directshow filters , noticed there 2 methods appear same thing, different semantics.

isusingtimeformat gettimeformat

the question when should 1 used vs. other?

the documentation states isusingtimeformat more efficient because doesn't require mem re-create operation besides that, there other reason prefer 1 or other?

the main difference on want do.

gettimeformat(...) writes in guid construction pass time format beingness used, if succeeds in obtaining timeformat returns s_ok.

on other hand, when using isusingtimeformat(...) querying filter if guid construction pass through parameters 1 using.

so 1 utilize depends on do, query filter if using specific guid or trying obtain guid of time format filter.

directshow

No comments:

Post a Comment