diff options
| author | Joel Corley <[email protected]> | 2018-12-11 17:43:11 -0800 |
|---|---|---|
| committer | Joel Corley <[email protected]> | 2018-12-11 17:43:11 -0800 |
| commit | 5a1b50c6e9a3297a96a3f7a5cfa35410ce5e57b7 (patch) | |
| tree | 00094c46f533c38a4b716b5532758bb20d3c744e /avstream/avshws/capture.cpp | |
| parent | 9d23d436df72766a24a4791acd916c7faf106d48 (diff) | |
Remove broken X86-specific DMA code.
Add project support for ARM & ARM64 targets.
Diffstat (limited to 'avstream/avshws/capture.cpp')
| -rw-r--r-- | avstream/avshws/capture.cpp | 43 |
1 files changed, 2 insertions, 41 deletions
diff --git a/avstream/avshws/capture.cpp b/avstream/avshws/capture.cpp index e998ac1b..06bf7643 100644 --- a/avstream/avshws/capture.cpp +++ b/avstream/avshws/capture.cpp @@ -28,7 +28,7 @@ #include "avshws.h" #include <ksmedia.h> -#include "ntintsafe.h" +#include <ntintsafe.h> /************************************************************************** @@ -1079,7 +1079,7 @@ Routine Description: selected in order to change the format for the pin. In this case, OldFormat will not be NULL. - Validate that the format is acceptable and perform the actions necessary + Validate that the format is acceptible and perform the actions necessary to change format if appropriate. Arguments: @@ -1339,27 +1339,6 @@ Return Value: PKSSTREAM_POINTER NextClone = KsStreamPointerGetNextClone (Clone); -#if defined(_X86_) - // - // Count up the number of bytes we've completed and mark this - // in the Stream Header. In mapped queues - // (KSPIN_FLAG_GENERATE_MAPPINGS), this is the responsibility of - // the minidriver. In non-mapped queues, AVStream performs this. - // - ULONG MappingsToCount = - (MappingsRemaining > Clone -> OffsetOut.Remaining) ? - Clone -> OffsetOut.Remaining : - MappingsRemaining; - - // - // Update DataUsed according to the mappings. - // - for (ULONG CurMapping = 0; CurMapping < MappingsToCount; CurMapping++) { - Clone -> StreamHeader -> DataUsed += - Clone -> OffsetOut.Mappings [CurMapping].ByteCount; - } -#endif - // // If we have completed all remaining mappings in this clone, it // is an indication that the clone is ready to be deleted and the @@ -1367,11 +1346,7 @@ Return Value: // has not yet been set. If we have a clock, we can timestamp the // sample. // -#if !defined(_X86_) if (Clone -> StreamHeader -> DataUsed >= Clone -> OffsetOut.Remaining) { -#else - if (MappingsRemaining >= Clone -> OffsetOut.Remaining) { -#endif Clone -> StreamHeader -> Duration = m_VideoInfoHeader -> AvgTimePerFrame; @@ -1434,11 +1409,7 @@ Return Value: // delete the clone. We've already updated DataUsed above. // -#if !defined(_X86_) MappingsRemaining--; -#else - MappingsRemaining -= Clone -> OffsetOut.Remaining; -#endif KsStreamPointerDelete (Clone); } else { @@ -1447,7 +1418,6 @@ Return Value: // update the pointers. Since we're guaranteed this won't advance // to a new frame by the check above, it won't fail. // -#if !defined(_X86_) (void)KsStreamPointerAdvanceOffsets ( Clone, 0, @@ -1455,15 +1425,6 @@ Return Value: FALSE ); -#else - (void)KsStreamPointerAdvanceOffsets ( - Clone, - 0, - MappingsRemaining, - FALSE - ); - -#endif MappingsRemaining = 0; } |
