Граф коммитов

183 Коммитов

Автор SHA1 Сообщение Дата
Lakshmi Kumar d42e19cbfd User guide Updates (#179)
* user guide intial

* clean up

* review comments

* clean up

* clean up

* review comments + new smaples section

* review comments+adding chapter 4 and 5

* review comments
2024-01-17 10:38:42 -08:00
Aryan Salmanpour f7fce4d9b4 Print the vaapi error name string instead of the vaapi status integer for better clarity if a vaapi failure occurs (#182) 2024-01-17 11:06:34 -05:00
Aryan Salmanpour 1a77f3d1b0 Print the hip error name string instead of the hip status integer for better clarity of a hip failure occurs (#181) 2024-01-17 10:52:48 -05:00
Aryan Salmanpour b188989f3f Remove unnecessary device id check (#180) 2024-01-17 10:27:06 -05:00
jeffqjiangNew 395a1249c1 Added initial AVC parser. (#176)
* * rocDecode/AVC: Added initial AVC parser.
 - Added AVC SPS, PPS and slice header parsing functions.
 - Merged common parsing code from AVC and HEVC parsers to their super class.

* * rocDecode/AVC: Formating changes. No functional changes.
2024-01-16 20:57:40 -05:00
Lakshmi Kumar 2e2f1e3f21 WIP: Docs - User Guide (#177)
* user guide intial

* clean up

* review comments

* clean up

* clean up

* review comments + new smaples section
2024-01-16 13:28:55 -08:00
Aryan Salmanpour fb953b4366 Add support to correctly detect the gfx name for gfx940/gfx941/gfx942 (#178) 2024-01-16 14:49:54 -05:00
Aryan Salmanpour 3d28911453 Remove unsupported GPUs (#175) 2024-01-15 10:50:34 -08:00
Kiriti Gowda 301efb2d1b Readme - Fix (#173)
* Readme - Fix

* Fix - aligments
2024-01-12 16:18:28 -05:00
Kiriti Gowda 07dd095a6a Readme - Updates
Fix Image
2024-01-12 12:48:43 -08:00
Kiriti Gowda 83b076fa1d Readme - updates & Fixes (#172)
* Readme - updates & fixes

* Readme - Logo

* Readme - prereqs updates
2024-01-12 15:35:53 -05:00
Lakshmi Kumar e7be5f2bbf fixes bug with device id provided by user (#171)
* fixes bug when setting env variable

* fix for device id
2024-01-12 14:54:44 -05:00
Lakshmi Kumar 2a1f1d7dff fixes bug when setting env variable (#170) 2024-01-12 14:04:47 -05:00
Kiriti Gowda 2d0a3d35f7 CI - Fix test (#169)
Test updates
2024-01-11 20:18:37 -08:00
Kiriti Gowda b7ad5d91d7 Jenkins - Sample (#168)
Test - Add sample to test
2024-01-10 19:09:53 -08:00
Kiriti Gowda 69fb224027 Header fix (#167) 2024-01-10 13:46:39 -08:00
kiritigowda 78b095af56 Doxy - Updates 2024-01-10 12:14:41 -08:00
kiritigowda cce46982a5 Documentation - Updates 2024-01-10 12:14:41 -08:00
Aryan Salmanpour 28c00cb354 Add support for gfx1101 and gfx1102 (#165) 2024-01-10 14:17:04 -05:00
Aryan Salmanpour 28b4b90a3a Update the dockers for ROCm 6.1.0+ (#164) 2024-01-10 13:30:55 -05:00
jeffqjiangNew 2a4026470f * rocDecode/HEVC: Code clean up. (#163)
- Moved HEVC standard specific defines out of HevcVideoParser class to a new file.
 - Changed some namings to be more specification compliant.
 - No functional changes.
2024-01-10 11:44:07 -05:00
Kiriti Gowda 62d9052023 CI - Update common.groovy (#162) 2024-01-09 21:09:40 -08:00
Aryan Salmanpour 64fab08b3a videodecode sample - install the common.h in the destination (#161) 2024-01-09 20:35:19 -08:00
jeffqjiangNew 04fe74f390 * rocDecode: Updated Copyright message for 2024. (#160) 2024-01-09 20:47:16 -05:00
Kiriti Gowda 18a4cd0fc1 Jenkins - Fix install (#158) 2024-01-09 12:28:09 -08:00
Kiriti Gowda 9c067ea979 Readme - Cleanup (#159) 2024-01-09 14:11:42 -05:00
Kiriti Gowda fd27e268f0 ROCm 6.1.0+ - updates (#153)
* Package updates

* RHEL Updates

* Find LibDRM - Fix for rocm failure to install

* Fix dependencies

* Deps Updates

* Jenkins - Add make test to test phase

* Jenkins - Install amdgpu-dkms on CI

* Jenkins - Fix test

* Test - Release build

* Readme - Updates
2024-01-09 13:43:34 -05:00
Aryan Salmanpour 2f2e66679b CMakeLists code cleanup - dont link to hip::device if there is nt any hip kernles for compilation (#156) 2024-01-09 11:51:52 -05:00
jeffqjiangNew ccd813a2da Decoder reconfigure fixes. (#157)
* * rocDecode/HEVC: Fixed a couple of issues with reconfiguration of decoder when video size is changed.
  - Picture width and height variables were interchangeably used to represent coded picture size and display size, resulting reconfiguration errors. Now we use different variables to represent coded and display sizes.
  - Fixed a file overwriting issue in video size change case, where the display size can remain the same when coded size changes with specific cropping offsets.

* * rocDecode/HEVC: Added some fixes to decoder reconfiguration.
  - Added support for MD5 calculation in reconfigure flush callback. This fixed MD5 check failure on conformance streams with size changes.
  - Fixed total decoded frame number report with reconfigure when file dump or MD5 is not enabled. We need to call flush with reconfigure unconditionally (but with different actions).
  - Added the missing reconfigure flush when coded size is not changed but display size is changed.

* * rocDecode/HEVC: Corrected an error in GetDecodedWidth() method. Should use coded_width_, instead of disp_width_.
2024-01-09 10:51:30 -05:00
Aryan Salmanpour c464236bdc Add multi-threaingd support for videodecodergb sample (#154) 2024-01-08 15:02:43 -05:00
Aryan Salmanpour 224e98ab2d code cleanup - remove unused hipstream from the RocDecoder class (#155) 2024-01-08 14:54:28 -05:00
Aryan Salmanpour dd738aef48 Use a dedicated hip stream for launching hip kernels for color space conversion (#152) 2024-01-05 12:55:46 -05:00
jeffqjiangNew c5483c751e Fixed a couple of errors in long term reference picture set parsing and long term reference picture list construction. (#151)
* * rocDecode/HEVC: Fixed a couple of errors in long term reference picture set parsing and long term reference picture list construction.

* * rocDecode/HEVC: Coding format change: removed newline in front of else statements. No functional changes.
2024-01-05 09:15:33 -05:00
jeffqjiangNew 33d6b37ddb * rocDecode/HEVC: Fixed a bug in destroy data buffer function in VAAPI layer. (#150)
- We have to clear the buffer id after destroying it. Without this clearing, we will encounter VAAPI buffer destroy failure on certain conformance streams where scaling list is signaled dynamically. In this case, we create different number of data buffers on different frames. If we do not clear the buffer id when destroying it, a dummy scaling list buffer id will have the same value as another buffer, resulting double destroy.
2024-01-02 15:56:18 -05:00
jeffqjiangNew 6db0b79144 * rocDecode/HEVC: Fixed an issue in reference list reconstruction. (#149)
- Removed a size check which was put in in early bring up stage and causes some conformance stream failures.
  - Also capped the DPB buffer size to 16 when we increase it from the spec value.
2024-01-02 15:55:52 -05:00
Aryan Salmanpour 6c07e53614 Check va_display_ to be valid before calling any VA APIs (#148) 2023-12-21 08:16:24 -08:00
dependabot[bot] 2853a58ac5 Bump rocm-docs-core[api_reference] from 0.30.2 to 0.30.3 in /docs/sphinx (#147)
Bumps [rocm-docs-core[api_reference]](https://github.com/RadeonOpenCompute/rocm-docs-core) from 0.30.2 to 0.30.3.
- [Release notes](https://github.com/RadeonOpenCompute/rocm-docs-core/releases)
- [Changelog](https://github.com/RadeonOpenCompute/rocm-docs-core/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/RadeonOpenCompute/rocm-docs-core/compare/v0.30.2...v0.30.3)

---
updated-dependencies:
- dependency-name: rocm-docs-core[api_reference]
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-20 13:02:26 -05:00
Rajy Rawther a5211189f5 Add mechanism to flush last frames during reconfigure (#142)
* add mechanism to flush last frames during reconfigure

* reconfig mode updated support

* addressed review comments

* addressed review comments

* change condition according to review comment
2023-12-19 08:49:17 -05:00
dependabot[bot] a82b1f215a Documentation - Bump rocm-docs-core[api_reference] from 0.30.1 to 0.30.2 in /docs/sphinx (#146)
Bumps [rocm-docs-core[api_reference]](https://github.com/RadeonOpenCompute/rocm-docs-core) from 0.30.1 to 0.30.2.
- [Release notes](https://github.com/RadeonOpenCompute/rocm-docs-core/releases)
- [Changelog](https://github.com/RadeonOpenCompute/rocm-docs-core/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/RadeonOpenCompute/rocm-docs-core/compare/v0.30.1...v0.30.2)

---
updated-dependencies:
- dependency-name: rocm-docs-core[api_reference]
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 09:43:39 -08:00
jeffqjiangNew 1cdbac7d70 Fixed a POC calculation error in some corner cases. (#145)
* * rocDecode/HEVC: Fixed a POC calculation error in some corner cases.

* * rocDecode/HEVC: Added a newline between two functions. No functional changes.
2023-12-18 08:20:55 -05:00
jeffqjiangNew c9cfcde12d Fixed a bug in reference picture list modification parsing. (#143)
* * rocDecode/HEVC: Fixed the random crash associated with undecodable RASL pictures.
  - When a CRA picutre occurs, all the pictures in the DPB are emptied. However, the following RASL (Random Access Skipped Leading) picture can still reference these emptied pictures, making them undecodeble.
  - We initialized the reference picture lists with (0xFF), representing invalid picture index. Normally these invalid indices are replaced by valid values during RPS decoding. However, on undecodable RASL pictures, we can not find an existing reference picture in DPB, leaving the invalid index untouched and resulting invalid indexing later on.
  - Now we initialize the reference picture lists with a valid value 0. Also we add index range check on reference buffer at VA-API layer to avoid invalid memory access.

* * rocDecode/HEVC: Fixed a typo in sampel app message.

* *rocDecode/HEVC: Fixed a bug in reference picture list modification parsing.
  - This fixed the test failure of two conformance streams.
2023-12-15 16:08:19 -05:00
jeffqjiangNew 0fbd030b5d Fixed the random crash associated with undecodable RASL pictures. (#141)
* * rocDecode/HEVC: Fixed the random crash associated with undecodable RASL pictures.
  - When a CRA picutre occurs, all the pictures in the DPB are emptied. However, the following RASL (Random Access Skipped Leading) picture can still reference these emptied pictures, making them undecodeble.
  - We initialized the reference picture lists with (0xFF), representing invalid picture index. Normally these invalid indices are replaced by valid values during RPS decoding. However, on undecodable RASL pictures, we can not find an existing reference picture in DPB, leaving the invalid index untouched and resulting invalid indexing later on.
  - Now we initialize the reference picture lists with a valid value 0. Also we add index range check on reference buffer at VA-API layer to avoid invalid memory access.

* * rocDecode/HEVC: Fixed a typo in sampel app message.
2023-12-15 15:54:43 -05:00
jeffqjiangNew 3598f4d96e Added script to run static conformance test. (#139)
* * rocDecode/HEVC: Added script to run static conformance test.
  - The script runs videodecode app in MD5 check mode on the conformance streams.
  - The MD5 check results are stored in rocDecode_conformance.log and printed out.

* * rocDecode: Fixed formatting in README.md.

* * rocDecode/Conformance test: Added the missing exit when number of streams does not match number of reference MD5 digests.

* * rocDecode/Conformance test: Do case insensitive sorting.

* * rocDecode/Conformance test: Fixed a typo in the script.

* * rocDecode/Conformance test: Added info on the number of streams that fail to complete decode.

* * rocDecode/Conformance test: Added the missing message of the aborted streams to stdout.
2023-12-15 15:54:05 -05:00
Kiriti Gowda 07595d7937 Sample - Update CMakeLists.txt (#144)
Find rocDecode Fix
2023-12-15 15:44:58 -05:00
Kiriti Gowda 90fcd668a5 rocDecode Test Package (#140)
* rocDecode Test Package

* Jenkins - Add Test Package

* CTest for Package
2023-12-14 10:42:52 -05:00
Pavel Tcherniaev 5930f15c1a added help for arguments in case user doesn't give any arguments (#138) 2023-12-13 13:55:40 -05:00
Aryan Salmanpour 9a78101d22 return the correct rocdec_status if DestroyDataBuffers fails (#137) 2023-12-13 10:57:14 -05:00
Aryan Salmanpour 40cecb2752 FindFFmpeg.cmake cleanup - don't find the SWSCLAE_LIBRARY as it is not needed by rocDecode samples (#136) 2023-12-13 10:07:47 -05:00
Kiriti Gowda 92b9982b55 License Updates (#135)
* License Updates

* Readme Updates
2023-12-13 09:49:52 -05:00
jeffqjiangNew 42f109369e * rocDecode/HEVC: Fixed the decode failure of the conformance stream BUMPING_A_ericsson_1.bit. (#133)
- This stream tests output order conformance, in particular the bumping process. Four temporal layers are used and IRAP pictures with no_output_of_prior_pics_flag equal to 1 are present in the bitstream.
2023-12-13 09:48:15 -05:00