forked from ROCm/MIVisionX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests - Video encoder test (ROCm#777)
* added video encoder test * Update encoder.gdf Just did a test and this doesn't need the full path. * Update README.md Changed to not having full path for input file. Co-authored-by: svcbuild <ptcherni@amd.com>
- Loading branch information
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# AMD Media Tests | ||
|
||
data yuvimg = image:1280,720,NV12:read,test.yuv<br> | ||
|
||
<br> | ||
Run runvx -affinity:GPU file encoder.gdf<br> | ||
<br> | ||
Sample Expected output:<br> | ||
INFO: writing 1280x720 4.00mbps 30.00fps gopsize=15 bframes=0 video into output.264<br> | ||
csv,HEADER ,STATUS, COUNT,cur-ms,avg-ms,min-ms,clenqueue-ms,clwait-ms,clwrite-ms,clread-ms<br> | ||
csv,OVERALL, PASS, 1, , 6.26, 6.26, 0.00, 0.00, 0.00, 0.00 (median 6.256)<br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import vx_amd_media | ||
|
||
# read input sequences | ||
data yuvimg = image:1280,720,NV12:read,test.yuv | ||
data vid1 = scalar:STRING,"output.264,4,30,0,15" | ||
data aux_output = array:UINT8,256 | ||
data gpu_mode = scalar:BOOL,FALSE | ||
node com.amd.amd_media.encode vid1 yuvimg NULL aux_output gpu_mode |
Large diffs are not rendered by default.
Oops, something went wrong.