Hi
I am using Video Decoding Sample to decode media file and get the data of NV12.
Howerver,it is too slow to use -d3d mod ,while copy the memory from video surface to SYS memory.
Until I read the article of Copying Accelerated Video Decode Frame Buffers .So I tried to use the CopyFrame function to do some test.
System Configuration: i3 3220, 4G DDR3 RAM OS win7 32bit Video: H.264 1080P MOD -hw -d3d Use SMID to do the Copy Decode and Copy speed is 200 fps/s System Configuration: i3 3220, 4G DDR3 RAM OS win7 32bit Video: H.264 1080P MOD -hw Use Memcpy without D3D9_MEMORY Decode and Copy speed is 160fps/s |
The result look like so good, but when i put the code running in the another environment,it take a revese result.
System Configuration: i7 4650, 8G DDR3 RAM OS win7 64bit Video: H.264 1080P MOD -hw -d3d Use SMID to do the Copy Decode and Copy speed is 130 fps/s System Configuration: i7 4650,, 8G DDR3 RAM OS win7 64bit Video: H.264 1080P MOD -hw Use Memcpy without D3D9_MEMORY Decode and Copy speed is 290 fps/s |
System Configuration: i7 4650, 8G DDR3 RAM OS win7 32bit Video: H.264 1080P MOD -hw -d3d Use SMID to do the Copy Decode and Copy speed is 200 fps/s
System Configuration: i7 4650,, 8G DDR3 RAM OS win7 32bit Video: H.264 1080P MOD -hw Use Use SMID to do the Copy without D3D9_MEMORY Decode and Copy speed is 220 fps/s
System Configuration: i7 4650,, 8G DDR3 RAM OS win7 32bit Video: H.264 1080P MOD -hw Use Memcpy without D3D9_MEMORY Decode and Copy speed is 300 fps/s
|
My questions are listed below :
3、 Is that Copy Memory from D3D9_MEMORY to SYSTEM_ MEMORY is slower than from SYSTEM_ MEMORY to SYSTEM_ MEMORY with CopyFrame Funcion in i7 .
Link Copied
For more complete information about compiler optimizations, see our Optimization Notice.