Dewarping without DirectShow #1297
|
Hello, We're starting development on a new product which will be using an Axis camera and are planning to integrating the dewarping into our existing playback software. The solution provided by the SDK being based on DirectXShow poses some problems.
I have a few questions based on these concerns.
Having access to the HLSL shader source code would probably solve most of these, I'd imagine it would be fairly straight forward to port to newer pixel shader versions and get SPIR-V code using the new D3D shader compiler. Thanks, |
Replies: 2 comments 5 replies
|
This automatically generated reply acts as a friendly reminder. Answers to your questions will most often come from the community, from developers like yourself. You will, from time to time, find that Axis employees answers some of the questions, but this is not a guarantee. Think of the discussion forum as a complement to other support channels, not a replacement to any of them. If your question remains unanswered for a period of time, please revisit it to see whether it can be improved by following the guidelines listed in Axis support guidelines. |
|
Hi Aidan, Thanks for the detailed questions. There may be a few options worth considering in the current AXIS Dewarping SDK before assuming that DirectShow needs to be part of the overall video pipeline. The SDK does not require DirectShow for all integration scenarios. In addition to the DirectShow integration through the AXIS Dewarping Transform DMO, the SDK provides an image I/O library interface and includes pre-compiled pixel shaders for Direct3D integration. The SDK also includes C++ and C#/.NET sample code demonstrating these integration paths. In particular, the pre-compiled pixel shaders are intended to allow the dewarping operation to make use of the graphics card, while the AXIS Dewarping Transform can be integrated as a software library rather than necessarily being tied to a DirectShow graph. Therefore, if you already have your own libav/FFmpeg-based decoding pipeline, it may be worth looking at the image I/O and Direct3D integration examples in the SDK rather than using the DirectShow transform. Regarding the D3D11/D3D12 and cross-platform questions: the publicly distributed SDK provides the pre-compiled shaders and documented integration interfaces, but the shader source/internal implementation details are not part of the public SDK interface. Consequently, Axis would not recommend relying on the D3D9 shader as a portable dewarping implementation. The SDK download also contains the relevant samples and test recordings, which should help determine whether its image I/O or Direct3D integration can fit your existing pipeline. For requirements that are not covered by the public SDK interfaces, please contact Axis integration helpdesk support or Professional Services so that we can assess the specific integration scenario. Axis integration helpdesk support
Professional Services
|




Hi Aidan,
Hi @Aidan63 ,
Thanks for the detailed questions. There may be a few options worth considering in the current AXIS Dewarping SDK before assuming that DirectShow needs to be part of the overall video pipeline.
The SDK does not require DirectShow for all integration scenarios. In addition to the DirectShow integration through the AXIS Dewarping Transform DMO, the SDK provides an image I/O library interface and includes pre-compiled pixel shaders for Direct3D integration. The SDK also includes C++ and C#/.NET sample code demonstrating these integration paths.
In particular, the pre-compiled pixel shaders are intended to allow the dewarping operation to make use of the graphics card,…