I did it here: http://nishi.dreamhosters.com/u/7zdll_vF7.rar
But it runs an actual precomp executable via pipes.
And to make that executable, precomp source actually has to be patched - to make unique temp files in different threads, etc.
(deflate parsing is disabled in my release, since I have reflate for that;
it actually runs "powerarc-precomp64.exe -cn -d1 -t+PZGNFJSMB -zl -o%s. %s" - this string
can be patched in 7z.dll, I guess).
Code:
Z:\004\7zdll_vF7\x64>7z.exe a -tpa -m0=precomp 1 A10.jpg
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
Scanning the drive:
1 file, 842468 bytes (823 KiB)
Creating archive: 1.pa
Items to compress: 1
Files read from disk: 1
Archive size: 673392 bytes (658 KiB)
Everything is Ok