Announcement

Collapse
No announcement yet.

Bt848 and Bt878 video capture .DLL functions declaration

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Michael Ritter
    replied
    Sutthisak,

    I bypass VFW and communicate directly to the board. In that
    respect I have complete control over CBHS, levels, RGB or
    YUV, Scaling, etc... This is good for my application because
    it is very effecient since I need to manipulate RGB or YUV
    directly with my own algo's, but I do lose plug in capability
    across digitizers. Try these calls, (Remember to look up the
    appropriate entry points with Depends because they may be named
    different). At least you will get a good hint at what the
    params should be for CBHS or Grabbing a RGB on the fly. Please
    note however that there are many steps to setting up the
    digitizer for a capture to a RGB buffer before using these
    calls, such as:

    a. Initializing the libraries
    b. Requesting access to the digitizer (I think you may have
    (problems here if you try to access the digi with VFW while
    trying to access directly.)
    c. Initializing the buffers to capture into. (this is a pain
    because there are so many scales, bit depths, color types,
    etc.)
    d. Fields to capture and field to begin
    e. Capture calls, (there are two, continuous push to Direct
    Memory and Single Frame (Frame = Consisting of 2 fields)).
    f. Releasing both grabber and the libraries.

    If you would give me the name of the digitizer your using and
    email me the dll's, ( [email protected] ) I will have a look.
    Since my project uses these chipsets, I am always looking for
    alternatives short of designing my own circuit.

    Here are the calls I use for CBHS and to grab an RGB to a buffer.
    Like I said though, setting up the buffers is important and
    stressful for if they are not correct, you will GPF like mad.
    You should have no trouble accessing and setting CBHS though.

    Their scales are:
    Brightness -0.5 to +0.5
    Contrast 0.0 to +2.0 (Normal Gain is 1)
    Hue -90 to +90 (Hue is ignored for PAL video sources)
    Saturation 0.0 to 2.0

    DECLARE FUNCTION PXC_Grab LIB "pxc.dll" _
    ALIAS "Grab" (BYVAL fgh AS LONG, _
    BYVAL frh AS LONG, BYVAL flags AS INTEGER) AS LONG

    'HSV custom functions
    DECLARE FUNCTION PXC_SetContrast LIB "pxc.dll" _
    ALIAS "SetContrast" (BYVAL fgh AS LONG, _
    BYVAL c AS SINGLE, BYVAL flags AS INTEGER) AS LONG

    DECLARE FUNCTION PXC_SetBrightness LIB "pxc.dll" _
    ALIAS "SetBrightness" (BYVAL fgh AS LONG, _
    BYVAL b AS SINGLE, BYVAL flags AS INTEGER) AS LONG

    DECLARE FUNCTION PXC_GetContrast LIB "pxc.dll" _
    ALIAS "GetContrast" (BYVAL fgh AS LONG) AS SINGLE

    DECLARE FUNCTION PXC_GetBrightness LIB "pxc.dll" _
    ALIAS "GetBrightness" (BYVAL fgh AS LONG) AS SINGLE

    DECLARE FUNCTION PXC_SetHue LIB "pxc.dll" _
    ALIAS "SetHue" (BYVAL fgh AS LONG, _
    BYVAL h AS SINGLE, BYVAL flags AS INTEGER) AS LONG

    DECLARE FUNCTION PXC_SetSaturation LIB "pxc.dll" _
    ALIAS "SetSaturation" (BYVAL fgh AS LONG, _
    BYVAL s AS SINGLE, BYVAL flags AS INTEGER) AS LONG

    DECLARE FUNCTION PXC_GetHue LIB "pxc.dll" _
    ALIAS "GetHue" (BYVAL fgh AS LONG) AS SINGLE

    DECLARE FUNCTION PXC_GetSaturation LIB "pxc.dll" _
    ALIAS "GetSaturation" (BYVAL fgh AS LONG) AS SINGLE

    Cheers,

    Michael


    ------------------

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Michael,

    The Bt848 and Bt878 video capture may be OEM products,
    it's imported from Taiwan. The .DLLs that I taking about, are
    provide as parts of driver (BT848A Driver for Win95, Rev1.0)
    The .DLLs written by RSS - Brooktree Division.

    Now, I use VfW to communicate with video capture but VfW doesn't
    provide the functions to adjust such as brightness/contrassness
    or RGB on the fly.

    Thanks,


    ------------------
    P.Sutthisak

    Leave a comment:


  • Michael Ritter
    replied
    Sutthisak,

    I am using the 848 in my project. I use the digitizers from
    Imagenation and have converted all the calls to PB from C.
    Their libraries may not function the same for you even though
    the chip-set is the same. One could only find out through
    testing however I am not at liberty to release their libraries
    but I may be able to help if I know more. Particularly
    can you tell me more about the board that you are using and
    if permissible where to get the dll's. You can use Depends to
    at least get the function names but that won't do you much
    good without the params. Ideally you would have some C source
    to port from.

    cheers,

    Michael

    ------------------

    Leave a comment:


  • Guest's Avatar
    Guest started a topic Bt848 and Bt878 video capture .DLL functions declaration

    Bt848 and Bt878 video capture .DLL functions declaration

    Does anybody has functions declaration of Bt848 and Bt878
    video capture .dll related files such as Bt848_32.dll, Bt848DDI.dll
    Bt848DLG.dll, Btvid_32.dll or BtUtil32.dll.

    Thanks,


    ------------------
    P.Sutthisak
Working...
X