Commit graph

529 Commits

Autor SHA1 Nachricht Datum
Sam Wu 71f930b876 CI - Remove .jenkins (#615)
migrating to rocJenkins

[ROCm/rocdecode commit: 91044fc832]
2025-07-18 11:17:37 -07:00
arvindcheru 0058b85808 Add softlink for rocdecode-host library target (#614)
[ROCm/rocdecode commit: eb487c3204]
2025-07-03 15:35:31 -04:00
jeffqjiangNew 76248fa94a Fixed the MD5 calculation error on some streams when both decoded output dumping and MD5 generation are on. (#607)
* * Fixed the MD5 calculation error on some streams when both decoded output dumping and MD5 generation are on.
 - The issue is with the final flushing of the remaining frames at the end of stream, where MD5 update is skipped when output dumping is on.

* * Minor format changes.

---------

Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>

[ROCm/rocdecode commit: aad9c248bd]
2025-06-30 10:24:05 -04:00
Kiriti Gowda 208f918c88 Find rocdecode - Updates for ROCm 7.0 (#610)
* rocDecode - Version 1.0.0

* Find package - config updates

* CMakeLists - Updates and config fix

* CMakelists - updates

* Samples - link to rocdecode_LIBRARY rocdecode::rocdecode

---------

Co-authored-by: Kiriti <kiriti@santiago.amd.com>

[ROCm/rocdecode commit: 23c17cc150]
2025-06-24 17:39:49 -04:00
Rajy Rawther 72b5c717e1 added testcase for videodecode with resizing and colorconversion to rgb (#608)
* added testcase for videodecode with resizing and colorconversion to rgb

* Update test/CMakeLists.txt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* removed texture scaling code as it doesn't work on MI3xx

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

[ROCm/rocdecode commit: 26f9ec23a6]
2025-06-24 13:51:59 -04:00
jeffqjiangNew 26e30ddc92 * Decode output dumping improvement: Better condition check for new dump file creation. (#606)
- Coded video size change was used as one of conditions to create a new file when dumping decode output. When a stream has coded video size change but the display size does not change, there is no need to dump the decoded frames into a new file.
 - Now we replace the coded size check with display size check to avoid unnecessary new dump file creation.

Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>

[ROCm/rocdecode commit: a2e1bf1920]
2025-06-19 17:29:00 -04:00
Lakshmi Kumar ef4250f6d9 Set video_signal_description struct to 0 by default (#605)
* Update avc_parser.cpp

* Update hevc_parser.cpp

[ROCm/rocdecode commit: 9283abc629]
2025-06-19 08:53:53 -04:00
jeffqjiangNew 9eaa7ab4a6 * Performance script: Added frame rate to the performance result csv file. (#604)
[ROCm/rocdecode commit: 6f3f7964ba]
2025-06-17 14:27:21 -04:00
Rajy Rawther 3d335b3e09 Option to disable building of rocdecode host based library (#603)
[ROCm/rocdecode commit: 83734ec42e]
2025-06-12 08:28:44 -04:00
Aryan Salmanpour 790f5881f2 Update the documnetation for rocDecGetDecodeStatus and rocDecGetVideoFrame APIs (#602)
[ROCm/rocdecode commit: 8ba5aeb465]
2025-06-11 16:46:47 -04:00
Aryan Salmanpour a480fb183b Utils - Remove the call to rocDecGetDecodeStatus after rocDecGetVideoFrame (#600)
* Utils - Remove the call to rocDecGetDecodeStatus after rocDecGetVideoFrame

* Remove other occurrences of rocDecGetDecodeStatus that are not necessary

* Update the description of the rocDecGetDecodeStatus and rocDecGetVideoFrame APIs

* Add missing including thread in avcodec_videodecoder.h for fixing the Azure build issue

[ROCm/rocdecode commit: bf4922060d]
2025-06-11 11:44:20 -04:00
Aryan Salmanpour 5b1ebe013c Remove the call to vaQuerySurfaceStatus before vaSyncSurface (#599)
[ROCm/rocdecode commit: 089abe7435]
2025-06-09 15:54:28 -04:00
Rajy Rawther 40e072f394 FFMpeg decoder rocdecode integration (#583)
* initial commit

* initial implementation for host based decoder

* minor change

* cmake changes and added new sample

* rocdecDecode sample implementation

* rocdecode sample changes working

* working version of avcodec decoder and sample

* Add end of stream handling for repeated decoding with reconfigure

* reorg files and added changelog

* update readme

* revert file

* remove unused class members

* addressed reviw comment for changelog

* fix sample to work on more video files

* resolved review comments

* bumped version to 0.14.0

* fixed build warnings

* addressed review comments

* addressed review comments

* addressed review comments

* fixed readme to match .cpp file options for parameters

* updated review comments, readme, and added test data for the sample

* fixed bug for saving frame for 10 bit videos

* addressed review comments

* addressed all the new review comments

[ROCm/rocdecode commit: 3ddb12f075]
2025-06-07 13:12:57 -04:00
jeffqjiangNew 2145992a4d * FFMPEG SW decode: Replaced the assert against 0 display width with an error check, to avoid abortion in a query call. (#596)
* * FFMPEG SW decode: Replaced the assert against 0 display width with an error check, to avoid abortion in a query call.

* * FFMPEG SW decode: Correction to the previous editing error.

---------

Co-authored-by: essamROCm <77812857+essamROCm@users.noreply.github.com>

[ROCm/rocdecode commit: 0f89c9c17c]
2025-06-03 10:49:28 -04:00
Lakshmi Kumar e052a74454 update readme (#595)
[ROCm/rocdecode commit: 94356320b1]
2025-06-02 09:54:18 -04:00
Jatin Chaudhary faf2e6f237 include <thread> header (#594)
[ROCm/rocdecode commit: 691dc51f66]
2025-05-30 09:31:22 -04:00
jeffqjiangNew ed775289be CI: Updated VP9 stability test stream set: two more streams are added. (#593)
[ROCm/rocdecode commit: f8793bf09a]
2025-05-23 13:48:48 -07:00
jeffqjiangNew 6b8c4f82ff VP9 error resilience: Added uncompressed and compressed header size checks. (#592)
* * VP9 error resilience: Added uncompressed and compressed header size checks.

* * Minor format change.

[ROCm/rocdecode commit: 24b0c59d71]
2025-05-21 10:04:16 -04:00
Aryan Salmanpour 9523ee16be CMake - Add support for explicitly linking libdrm_amdgpu with rocdecode (#589)
[ROCm/rocdecode commit: 624dda250d]
2025-05-15 14:00:19 -04:00
jeffqjiangNew fef00fc369 * CI: Added VP9 stability test. Also added logs to identify test start and end, for easy result searching. (#588)
[ROCm/rocdecode commit: 01c6a9fdfd]
2025-05-15 08:07:15 -04:00
jeffqjiangNew 5c8879aa6c * VP9 error resilience: Added syntax error handling. (#587)
- Added VP9 stream stream syntax error detection and handling.
 - Updated change log.
 - Bumped rocDecode version to 0.13.1.

[ROCm/rocdecode commit: e3ab17c09e]
2025-05-14 17:12:50 -04:00
Aryan Salmanpour 1c8f422c7c VideoDecodeRGB sample - Fix CMake configuration warning (#586)
[ROCm/rocdecode commit: fedcf37b2f]
2025-05-13 16:09:19 -04:00
Sam Wu 8d416bd635 ci: unzip with overwrite (#585)
* ci: unzip with overwrite

* remove old zip if updating

[ROCm/rocdecode commit: c5fe734bd9]
2025-05-12 18:18:37 -04:00
jeffqjiangNew 34491052e5 * CI: Updated the number of AV1 stability test streams. (#584)
[ROCm/rocdecode commit: 55bcb67a4e]
2025-05-12 13:53:11 -04:00
jeffqjiangNew d24e374566 * AV1 error resilience: Added invalid stream syntax element checks in various places. (#582)
- Added checks for allowed values for various stream syntax elements, according to AV1 specification.

[ROCm/rocdecode commit: 17ef0c2d56]
2025-05-09 14:35:08 -04:00
Afzal Patel 47d8573462 add amdgpu drm include directory (#579)
* add amdgpu drm include directory

* modify find_path

* add additional paths to address ci fail

[ROCm/rocdecode commit: b84146fb42]
2025-05-06 21:59:00 -04:00
jeffqjiangNew 6e1cd70811 Error resilience: Added a few error handling measures. (#581)
* * Error resilience: Added a few error handling measures.
 - AV1: Added check flags to sequence header and frame header to indicate if the headers are parsed without errors. The flags are used to check if the parsing process which refers to the headers can proceed or stop.
 - AV1: Added divide by 0 check on tile columns in tile group parsing.
 - AV1: Added invalid OBU size check in AV1 elementary stream parsing in bitstream reader.
 - All codecs: Added divide by 0 check in display aspect ratio calculation.

* * Error resilience: Fixed a typo in an error message.

[ROCm/rocdecode commit: a861d6f1d2]
2025-05-06 12:02:51 -04:00
jeffqjiangNew 798a4a03f0 AV1 error resilience: Added tile size error detection and handling. (#580)
* * AV1 error resilience: Added tile size error detection and handling. Also added additional update to change log for PR#574.

* * Wording change in change log.

* * Updated change log based on review comments.

[ROCm/rocdecode commit: 41338c40f3]
2025-05-05 12:01:56 -04:00
Aryan Salmanpour d64d6326f8 VideoDecodePerf sample: use a display delay of 1 by default (#578)
[ROCm/rocdecode commit: cf85e6c46c]
2025-05-01 16:03:38 -04:00
jeffqjiangNew a8f665e2be * Roc decoder utility: Do not throw exceptions on picture decode or decoder reconfig errors. (#577)
- This allows the decoder to be able to handle more AV1 error streams.

[ROCm/rocdecode commit: d751b24ed5]
2025-05-01 12:50:28 -04:00
jeffqjiangNew 8483251c80 Decoder utility: Removed a couple of incorrect asserts. (#574)
* * Decoder utility: Removed a couple of incorrect asserts. Changed other asserts to error messages.

* * Changed rocDecode version from 0.12.0 to 0.13.0. Updated change log.

* * Decoder utility: Updated change log based on review comments.

* * Decoder utility: Minor format change based on review: removed the extra space.

[ROCm/rocdecode commit: 4b10fa5a1a]
2025-04-29 16:41:36 -04:00
jeffqjiangNew 1a42a7238e * CI: Added AV1 stability test to CI. (#576)
[ROCm/rocdecode commit: 7e5a3f6939]
2025-04-28 21:25:12 -04:00
jeffqjiangNew e8981c5848 AV1 error resilience: Treated OBU header syntax errors as non-critical. Added invalid OBU size detection and handling. (#570)
* * AV1 error resilience: Treated OBU header syntax errors as non-critical. Added invalid OBU size detection and handling.

* * AV1 error resilience: Minor change.

[ROCm/rocdecode commit: e85ae200e5]
2025-04-25 13:57:37 -04:00
jeffqjiangNew 0558dee8c5 * CI: Do not do AV1 conformance test on MI2xx or MI1xx, which does not support AV1 decode. (#573)
[ROCm/rocdecode commit: 3f4d513c65]
2025-04-24 18:23:28 -04:00
jeffqjiangNew 4776553f61 CI: Added AVC and HEVC decode stability tests to CI. (#572)
* * CI: Added AVC and HEVC decode stability tests to CI.

* * CI: Do not run HEVC stability tests on MI2xx or MI1xx.

[ROCm/rocdecode commit: 6aab0c1375]
2025-04-24 10:46:17 -04:00
amd-garydeng 7173e17f16 Change Jenkins CI behavior to be more efficient (#567)
* Move all wgets out and add checks

* remove old line

* remove unzips

* remove double slash

[ROCm/rocdecode commit: 02fa4b5516]
2025-04-21 21:50:55 -04:00
jeffqjiangNew 357c33ac40 Revert "CTest: Added CTest for AV1 elementary stream decode on bitstream read…" (#569)
This reverts commit 5cdfca2a33.

[ROCm/rocdecode commit: 2dea69d26b]
2025-04-21 15:57:15 -04:00
Kiriti Gowda 468181845f Update .codecov.yaml (#568)
[ROCm/rocdecode commit: afc605b328]
2025-04-21 08:49:49 -04:00
Aryan Salmanpour 5cfc550419 code cleanup - fix a typo (#564)
[ROCm/rocdecode commit: d946ffd212]
2025-04-16 22:26:10 -04:00
jeffqjiangNew 5cdfca2a33 CTest: Added CTest for AV1 elementary stream decode on bitstream reader. (#561)
* * CTest: Added CTest for AV1 elementary stream decode on bitstream reader.

* * CTest: Added the missing stream file.

* * CTest: Fixed the batch sample CTest failure on RHEL8 system where AV1 elementary stream is not supported by the installed FFMPEG demuxer. Now we do not run batch test on elementary streams.

* * CTest: Added two missing path changes.

[ROCm/rocdecode commit: 5472059e16]
2025-04-16 21:20:16 -04:00
Aryan Salmanpour 2a86f75813 CTest: Add a test to perform negative testing on all rocDecode APIs (#562)
[ROCm/rocdecode commit: 1d8ab16c52]
2025-04-16 16:46:50 -04:00
Aryan Salmanpour fe0e639d08 close the drm_fd in the VaContext destructor (#560)
[ROCm/rocdecode commit: ed556199b0]
2025-04-14 19:13:57 -04:00
jeffqjiangNew a65bc49a07 * AVC: Disabled support for gaps in frame_num. (#559)
[ROCm/rocdecode commit: 03f73357c7]
2025-04-14 16:23:15 -04:00
Aryan Salmanpour ad9978f20f Add extra error checking during decoder reconfiguration (#558)
[ROCm/rocdecode commit: 0f89c55157]
2025-04-14 14:36:08 -04:00
jeffqjiangNew d9512d14df AVC error resilience: Treat reference list setup errors as non-critical. Also minor wording correction in sample script output. (#557)
* * AVC error resilience: Treat reference list setup errors as non-critical. Also minor wordking correction in sample script output.

* * AVC error resilience: Minor change.

---------

Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>

[ROCm/rocdecode commit: 193423300f]
2025-04-12 09:11:33 -04:00
Kiriti Gowda 9d0563486e Code Coverage - Updates (#556)
* Code Coverage - Updates

* Jenkins - Fix LLVM Location

[ROCm/rocdecode commit: a1ead2a7c1]
2025-04-10 13:21:51 -07:00
jeffqjiangNew a0dd3fc6b3 AVC: Added support for in stream DPB buffer size change. (#553)
* * AVC: Added support for in stream DPB buffer size change.

* * AVC: Updated change log.

---------

Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>

[ROCm/rocdecode commit: 3d1a1b638e]
2025-04-09 20:57:52 -04:00
Kiriti Gowda 74da3a7457 Codecov - .codecov.yaml (#554)
* Create .codecov.yaml

* Update .codecov.yaml

* Update .codecov.yaml

[ROCm/rocdecode commit: c39e320756]
2025-04-09 14:43:10 -04:00
Aryan Salmanpour 20e919c6cf Code Clean up - remove unused API (#552)
* Code Clean up - remove unused API

* clean up

[ROCm/rocdecode commit: d80f807b1a]
2025-04-09 13:49:04 -04:00
Lakshmi Kumar 711f12d271 CI update - Add avc, av1 and vp9 conformance to CI (#551)
* add avc, av1 and vp9 conformance to CI

* address review comments

* fix directory structure

* fix directory structure

* Update common.groovy

---------

Co-authored-by: Kiriti Gowda <kiriti.nageshgowda@amd.com>

[ROCm/rocdecode commit: 038d618836]
2025-04-08 21:54:48 -07:00