vmem - YV12 memory layout
Posted: 17 Jun 2011 23:46
Hi all,
I am using libvlc with vlcdotnet only for its interop wrapper.
I have almost rebuilt the direct3D module of VLC in C#, using the version 1.2.0 of a nightly build of VLC.
Now the issue I do have is to display a YV12 input to a D3D surface.
If in the libvlc_video_set_format_callbacks, I set the chroma to RV32, everything goes well, but the CPU has an activity increased. If I set the chroma to YV12, I get an exception between the lock and the display callbacks : Access violation writing location 0x00000004 in libmemcpymmxext_plugin.dll.
How should I set lines and pitches ? What size should be my picture ? Is a byte array not enough for VLC with YV12 ?
Any help welcome,
Thanks,
Nicolas.
I am using libvlc with vlcdotnet only for its interop wrapper.
I have almost rebuilt the direct3D module of VLC in C#, using the version 1.2.0 of a nightly build of VLC.
Now the issue I do have is to display a YV12 input to a D3D surface.
If in the libvlc_video_set_format_callbacks, I set the chroma to RV32, everything goes well, but the CPU has an activity increased. If I set the chroma to YV12, I get an exception between the lock and the display callbacks : Access violation writing location 0x00000004 in libmemcpymmxext_plugin.dll.
How should I set lines and pitches ? What size should be my picture ? Is a byte array not enough for VLC with YV12 ?
Any help welcome,
Thanks,
Nicolas.