Community
cancel
Showing results for 
Search instead for 
Did you mean: 
David_X
Beginner
42 Views

Copy NV12 video frame with CopyFrame Accelertaed SMID Function

 

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 :

  1. Why speed of d3d mod in i7 CPU is slower than in i3 CPU ,is that cause by 64 bit Windows System?
  2. When the code running in the i7 CPU  32 bit Windows System , The Accelerated frame Copy Function is slower than the Memcpy, it make me confuse.

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 .

Thanks for your response,
    Best regards,

 

0 Kudos
0 Replies