[MPlayer-dev-eng] [PATCH] Avisynth native demuxer - working on linux win32 loader

Gianluigi Tiesi mplayer at netfarm.it
Sun Jan 23 00:07:10 CET 2005


I've also other examples:
The result of the avs_invoke call:

in avisynth:
    DWORD w;
    HANDLE   hExt = CreateFile("handler.in",
                      GENERIC_WRITE,
                      FILE_SHARE_READ | FILE_SHARE_WRITE,
                      NULL,
                      CREATE_ALWAYS,
                      FILE_ATTRIBUTE_NORMAL,
                      NULL);
    WriteFile(hExt, &v, sizeof(v), &w, NULL);
    CloseHandle(hExt);

    return v;


in demux_avs:

    AVS->handler = AVS->avs_invoke(AVS->avs_env, "Import", args, 0);

    int fd = open("handler.out", O_CREAT | O_TRUNC | O_RDWR);
    write(fd, &AVS->handler, sizeof(AVS->handler));
    close(fd);



handler.in is created by avisynth before returning the struct:
elenoire:~/Mplayer/main# hexdump -C handler.in
00000000  63 00 ff bf 58 07 79 08                           |c...X.y.|
00000008

(it's ok since c -> means is a clip)


handler.out is created by mplayer as a result of avs_invoke call:

elenoire:~/Mplayer/main# hexdump -C handler.out
00000000  00 00 00 00 00 00 00 00                           |........|
00000008

I'm having a lot of call/args/results problems

-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/




More information about the MPlayer-dev-eng mailing list