ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

NTSTATUS NTAPI FilterProcess ( IN PKSFILTER  Filter,
IN PKSPROCESSPIN_INDEXENTRY  ProcessPinsIndex 
)

Definition at line 13 of file filter.c.

{
    ULONG Index;
    PKSPROCESSPIN CurPin, Pin;
    BOOLEAN PendingFrames = FALSE;

    if (ProcessPinsIndex->Count)
    {
        /* check if there are outstanding frames */
        for(Index = 1; Index < ProcessPinsIndex->Count; Index++)
        {
            /* get current pin */
            CurPin = ProcessPinsIndex->Pins[Index];

            if (CurPin->BytesAvailable && CurPin->Pin->DeviceState == KSSTATE_RUN)
            {
                /* pin has pending frames 
                 * to keep all pins synchronized, every pin has to wait untill each chained pin has send its frames downwards
                 */
                PendingFrames = TRUE;
            }
        }
    }

    if (!PendingFrames && ProcessPinsIndex->Count)
    {
        /* get first pin */
        Pin = ProcessPinsIndex->Pins[0];

        /* check if there is new data available */
        if (Pin->BytesAvailable)
        {
            for(Index = 1; Index < ProcessPinsIndex->Count; Index++)
            {
                /* get current pin */
                CurPin = ProcessPinsIndex->Pins[Index];

                /* copy the frame to pin */
                RtlMoveMemory(CurPin->Data, Pin->Data, Pin->BytesAvailable);
                CurPin->BytesUsed = Pin->BytesAvailable;
            }
        }
    }
    /* done */
    return STATUS_SUCCESS;
}

Generated on Thu May 24 2012 05:12:32 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.