Which is the most suitable stage in the DirectShow pipeline to initialize a resource?

Alfre2

I'm programming a DirectShow filter that reads data from a cam. I wonder which is the most suitable point on the whole DirectShow pipeline to initialize this cam. On the filter pause method, on the OnThreadCreate overrided method... ?

Roman R.

It depends on what exactly "cam initialization" is. If it is something trivial and simple, you can do it any time. Should this be related to runtime delay and/or exclusive resource management, then you don't want to do it too early because you don't want an idling instantiated filter to produce errors and cause unexpected freezes. It makes sense to do this sort of initialization on UI action (filter or pin property pages) or transition from stopped state (CSourceStream::OnThreadCreate looks good), whatever takes place first.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Which data structure is most suitable to implement a Dictionary?

From Dev

Which import type is the most suitable in case of a hierarchical data?

From Dev

Which codecs are most suitable for playback with Windows Media Player on Windows XP?

From Dev

Which import type is the most suitable in case of a hierarchical data?

From Dev

Which Map implementation is most suitable for River Crossing puzzle?

From Dev

Which technology is most suitable to develop Add-In for MS Excel

From Dev

Most suitable combinatorics algorithm

From Dev

Scripted pipeline: wrap stage

From Java

Unrecognized pipeline stage name: '$setOnInsert'

From Java

Conditional step/stage in Jenkins pipeline

From Dev

Stop the pipeline when stage is unstable

From Dev

Jenkins Pipeline - stage with when and input

From Dev

Sitecore context in the initialize pipeline

From Dev

Initialize Database in Jersey Resource

From Dev

Which model is suitable for predicting percentages?

From Dev

which erlang's pool is suitable?

From Dev

Which webhosting is suitable for my application?

From Dev

Which clustering algorithm is suitable for this task?

From Dev

Finding the most suitable objects by set of parameters in java

From Dev

What is the most suitable alternative for Linked List?

From Dev

How to identify the most suitable Design Pattern for a scenario

From Dev

Most suitable CMS Framework for a company of 500 employees

From Dev

What is the most suitable way to save that data in android

From Dev

calculating area of most suitable raster habitat in R

From Dev

Most suitable ionic component for linked inputs or a plugin

From Dev

AWS Data Pipeline RedshiftCopy activity No suitable drivers

From Dev

Initialize int with resource defined color

From Dev

Initialize int with resource defined color

From Java

Jenkins: Cannot define variable in pipeline stage

Related Related

  1. 1

    Which data structure is most suitable to implement a Dictionary?

  2. 2

    Which import type is the most suitable in case of a hierarchical data?

  3. 3

    Which codecs are most suitable for playback with Windows Media Player on Windows XP?

  4. 4

    Which import type is the most suitable in case of a hierarchical data?

  5. 5

    Which Map implementation is most suitable for River Crossing puzzle?

  6. 6

    Which technology is most suitable to develop Add-In for MS Excel

  7. 7

    Most suitable combinatorics algorithm

  8. 8

    Scripted pipeline: wrap stage

  9. 9

    Unrecognized pipeline stage name: '$setOnInsert'

  10. 10

    Conditional step/stage in Jenkins pipeline

  11. 11

    Stop the pipeline when stage is unstable

  12. 12

    Jenkins Pipeline - stage with when and input

  13. 13

    Sitecore context in the initialize pipeline

  14. 14

    Initialize Database in Jersey Resource

  15. 15

    Which model is suitable for predicting percentages?

  16. 16

    which erlang's pool is suitable?

  17. 17

    Which webhosting is suitable for my application?

  18. 18

    Which clustering algorithm is suitable for this task?

  19. 19

    Finding the most suitable objects by set of parameters in java

  20. 20

    What is the most suitable alternative for Linked List?

  21. 21

    How to identify the most suitable Design Pattern for a scenario

  22. 22

    Most suitable CMS Framework for a company of 500 employees

  23. 23

    What is the most suitable way to save that data in android

  24. 24

    calculating area of most suitable raster habitat in R

  25. 25

    Most suitable ionic component for linked inputs or a plugin

  26. 26

    AWS Data Pipeline RedshiftCopy activity No suitable drivers

  27. 27

    Initialize int with resource defined color

  28. 28

    Initialize int with resource defined color

  29. 29

    Jenkins: Cannot define variable in pipeline stage

HotTag

Archive