57 Commits

Autor SHA1 Mensaje Fecha
Aryan Salmanpour 352a433781 Update Copyright year (#694)
[ROCm/rocdecode commit: b0bab07940]
2026-01-26 15:37:50 -08:00
Aryan Salmanpour 91be23b3d0 TheRock compatibility - Devicelib Support (#684)
* TheRock compatibility - Devicelib Support

* clean up

[ROCm/rocdecode commit: 5784f8cffe]
2025-12-10 14:51:43 -08:00
Aryan Salmanpour a4f40f4b57 TheRock compatibility - support (#681)
* Add support for TheRock compatibility

* Update the version

* code clean up

* clean up

[ROCm/rocdecode commit: e2789088ee]
2025-12-08 14:02:55 -08:00
Aryan Salmanpour d4898975b3 Update optional GPU targets (#675)
[ROCm/rocdecode commit: 014e0d3e65]
2025-11-25 10:15:59 -08:00
Kiriti Gowda 954f7369ce Compiler - Location update (#664)
[ROCm/rocdecode commit: 4d090e8aa0]
2025-10-07 15:05:46 -07: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
Aryan Salmanpour 1c8f422c7c VideoDecodeRGB sample - Fix CMake configuration warning (#586)
[ROCm/rocdecode commit: fedcf37b2f]
2025-05-13 16:09:19 -04:00
Kiriti Gowda 8c8601e1fd CMakeLists - Set Std updates & Jenkins CodeCov (#546)
* CMakeLists - Set Std updates

* Jenkins - Code coverage

* Jenkins - Fix and cleanup

* Jenkins - Fix

* Jenkins - Fix

* Jenkins - Fix

* Jenkins - Fix

* Use amdclang compiler

* Remove slash in front of quote

* Jenkins - Fix

* Jenkins - Fix location

* Jenkins - Fix perf export

* Jenkins - .so fix

* Jenkins - lcov

* Install fix

* Use repo token for codecov

* Pass in sha to codecov

* Use clang19 for ubu24

* Use default clang

* CMakeLists - Set Std updates

* Jenkins - Code coverage

* Jenkins - Fix and cleanup

* Jenkins - Fix

* Jenkins - Fix

* Jenkins - Fix

* Jenkins - Fix

* Use amdclang compiler

* Remove slash in front of quote

* Jenkins - Fix

* Jenkins - Fix location

* Jenkins - Fix perf export

* Jenkins - .so fix

* Jenkins - lcov

* Install fix

* Use repo token for codecov

* Pass in sha to codecov

* Use clang19 for ubu24

* Use default clang

* Set proxy for codecov uploader

Needed for gfx90a

---------

Co-authored-by: Sam Wu <22262939+samjwu@users.noreply.github.com>

[ROCm/rocdecode commit: 5eab03d198]
2025-03-31 21:31:23 -07:00
Kiriti Gowda 26a67fb210 CMake config - updates and fixes (#532)
* CMake Config - updates and fixes

* Version - Updates

* Changelog - updates

* Update CHANGELOG.md

Co-authored-by: spolifroni-amd <Sandra.Polifroni@amd.com>

---------

Co-authored-by: spolifroni-amd <Sandra.Polifroni@amd.com>

[ROCm/rocdecode commit: 6b026af151]
2025-03-17 12:38:01 -04:00
Aryan Salmanpour bdad2ca18e [Samples] - fix the issue of out-of-order processing in the videoDecodeRGB sample (#518)
* [Samples] - fix the issue of out-of-order processing in the videoDecodeRGB sample

* Add a comment

* Add hipStreamSyncronize

[ROCm/rocdecode commit: 9e0600a2d0]
2025-02-27 08:25:01 -05:00
Lakshmi Kumar ca9451d891 Check ROCm targets (#513)
* rocm version check for targets

* check rocm targets for gfx

[ROCm/rocdecode commit: ad0bec2f14]
2025-02-25 14:52:17 -05:00
jeffqjiangNew 4ac1b8dd67 Optimization: Reduced decode session start latency for certain output surface memory types. (#512)
* *rocDecode/Optimization: Reduced decode session start latency for certain output surface memory types.

* * rocDecode/Optimization: Video decode RGB sample creates itsown HIP
  stream.

* * rocDecode/Optimization: Created separate HIP stream in each thread in
  video decode RGB sample.

* * rocDecode/Optimization: Addressed the lower FPS report in RGB sample:
  move HIP stream creation out of FPS calculation scope.

* * rocDecode/Optimize: Removed comments.

[ROCm/rocdecode commit: 1f53dedd4a]
2025-02-18 13:09:16 -05:00
Lakshmi Kumar 348b73425b gfx update (#505)
Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>

[ROCm/rocdecode commit: 5e806d5465]
2025-02-11 09:07:34 -05:00
Aryan Salmanpour 624aa94c37 Fix a seg fault for videoDecodeRGB app in multi-GPU systems (#494)
[ROCm/rocdecode commit: 99fa534eb9]
2025-01-21 17:07:40 -05:00
Aryan Salmanpour e1eb7ba766 Update samples (#491)
[ROCm/rocdecode commit: 760f7f7200]
2025-01-13 14:31:46 -05:00
Aryan Salmanpour c597fb2a4c Update Copyright year to 2025 (#486)
* Update Copyright year to 2025

* update year to 2025

[ROCm/rocdecode commit: 3624040ce7]
2025-01-05 16:25:39 -05:00
Kiriti Gowda 9b64f18bc0 CMakeLists - Updates and cleanup (#483)
* CMakeLists - Updates and cleanup

* CTest - CXX Compiler Updates

* Package - Remove FFMPEG exe deps

* CMakeLists - Updates and cleanup

* CTest - CXX Compiler Updates

* Package - Remove FFMPEG exe deps

* FFMPEG - Updates

[ROCm/rocdecode commit: 913b6728f0]
2025-01-02 09:42:31 -05:00
jeffqjiangNew c8a16141e4 Added the bit stream reader feature. (#433)
* * rocDecode/ES parser: Added elementary stream file parser for HEVC and AVC.

* * rocDecode/ES parser: Added elementary stream file parser for AV1. Also cleaned up the bitstream ring buffer code.

* * rocDecode/ES parser: Added the IVF container file parser for AV1. Also fixed a bug in fill ring buffer function.

* * rocDecode/ES file parder: Added supported stream type detection.
 - The stream type detection checks the unique syntax patterns of the stream type and calculate the likeliheed score. Based on the score, the most likely type is determined.
 - The current supported stream types are: AVC/HEVC/AV1 elementary streams, IVF AV1 streams.

* * rocDecode/ES file parser: Fixed an AVC decode regression due to a copy and paste error.

* * rocDecode/ES file parser: Added bit depth parsing for codec support check; Added stronger AV1 detection for IVF AV1 stream type.

* * rocDecode/ES file parser: Removed debugging logs.

* * rocDecode/ES file parser: Added exmaple code to use the built-in file parser.

* * rocDecode/Bitstream reader: Renamed the elementary parser feature to bitstream reader and re-organized the code.
 - Moved the bitstream reader code to rocDecode core lib from utility.
 - Added bitstream reader interface in parallel with rocDecode parser and decoder interfaces.

* * rocDecode/Bitstream reader: Added sample to use bitstream reader, instead of FFMPEG demuxer, to get picture data. Also reverted the original sample app back to using FFMPEG demuxer only.

* * rocDecode/Bitstream reader: Renamed the new sample app.

* * rocDecode/Bitstream reader: FFMPEG dependency reduction.
 - Moved MD5 functions out of RocVideoDecoder utility class. This removed RocVideoDecoder's dependency on FFMPEG.
 - Added the new MD5 utility, which depends on FFMPEG lib. MD5 message digest generation is now performed in the MD5 utility.
 - Modified decode sampples that uses MD5 generation function.
 - Removed FFMPEG dependency from video decoder basic sample.

* * rocDecode/Bitstream reader: Added option to use bitstream reader to video decode sample and conformance test script. Added the missing destroy bitstream reader call in video decode basic sample.

* * rocDecode/Bitstream reader: Minor format change. No functional changes.

* * rocDecode/Bitstream reader: Added handling of unsupported stream file type by the bitstream reader to decode sample apps.

* * rocDecode/Bitstream reader: Fixed build errors of several samples.

* * rocDecode/Bitstream reader: Added changes based on review comments.

* * rocDecode/Bitstream reader: File name changes based on review comments.

* * rocDecode/Bitstream reader: Moved MD5 code into single header file. Added changes based on review comments.

* * rocDecode/Bitstream reader: Removed redundant path.

* * rocDecode/Bitstream reader: Changed rocDecode version to 0.10.0. Added minor changes based on review comments.

---------

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

[ROCm/rocdecode commit: e62aa3e09b]
2024-12-05 09:46:24 -05:00
Kiriti Gowda a7fd0610e3 Samples & Test - Compiler Updates (#468)
* Compiler - set CXX Compiler if not set

* CXX Compiler - Set CXX compiler in CTest

* Test - Ctest cleanup

* Samples - Update CXX Compiler option

[ROCm/rocdecode commit: 924d19eb65]
2024-12-03 16:03:26 -05:00
Kiriti Gowda d9091f0cc2 Revert "Compiler - set CXX Compiler if not set (#466)" (#467)
This reverts commit 2eb3bd30ef.

[ROCm/rocdecode commit: 4f10c3893b]
2024-12-02 13:47:49 -08:00
Kiriti Gowda 2eb3bd30ef Compiler - set CXX Compiler if not set (#466)
[ROCm/rocdecode commit: 7a6073103a]
2024-12-02 13:02:09 -08:00
Kiriti Gowda c8ff82a943 SLES - Updates (#454)
* SLES - Updates

* Updates

* Cleanup

* Update CHANGELOG.md

Co-authored-by: spolifroni-amd <Sandra.Polifroni@amd.com>

* CXX Compiler - Use AMD Clang++

* Docs - Updates

* ROCm Version - Upgraded to 6.3.0

* Readme - cleanup

* Readme - minor updates

* Readme - Fix note

---------

Co-authored-by: spolifroni-amd <Sandra.Polifroni@amd.com>

[ROCm/rocdecode commit: 6339767b4c]
2024-11-15 15:35:53 -05:00
Kiriti Gowda bd3b6208fa GPU Arch Updates (#448)
[ROCm/rocdecode commit: 69eb625d2d]
2024-11-06 20:37:07 -05:00
Lakshmi Kumar a511a33966 set disp_delay to 1 for all samples (#446)
[ROCm/rocdecode commit: cb7b2c7f2f]
2024-11-06 14:45:34 -05:00
Aryan Salmanpour 896998cc14 Revert "Allow overriding CMAKE_CXX_COMPILER (#436)" (#440)
This reverts commit 5b9907034e.

[ROCm/rocdecode commit: b2149abcef]
2024-10-24 13:28:50 -04:00
Jeremy Newton 5b9907034e Allow overriding CMAKE_CXX_COMPILER (#436)
Using set as-is doesn't allow the user to set their own rocm path.
This is useful for community packagers or debugging.

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>

[ROCm/rocdecode commit: 07ecb5e7d6]
2024-10-24 11:36:14 -04:00
Kiriti Gowda 021e32bc21 Find rocDecode - Support added (#428)
* Find rocDecode - Support added

* Find rocDecode - Updates

* Find rocDecode - Version fix

* Find rocDecode - Version Var

* Minor cleanup

* Test - Find package updates

* CTest - Upgrades

* CTest - Enhancements

---------

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

[ROCm/rocdecode commit: befc6f6562]
2024-10-02 17:35:56 -04:00
Lakshmi Kumar ffe6861569 change clang++ path as suggested by packaging team (#427)
[ROCm/rocdecode commit: 4e4a18d280]
2024-10-01 08:35:45 -04:00
Kiriti Gowda aaa794a807 Support GFX12 (#423)
[ROCm/rocdecode commit: eb5f2da4ae]
2024-09-17 10:47:17 -04:00
jeffqjiangNew 2bad24f6f2 Simplified MD5 string compare code and fixed potential incorrect conversion of MD5 string to integers. (#414)
* * rocDecode: Fixed potential incorrect conversion of MD5 string to integers.

* * rocDecode: Changed a string name.

* * rocDecode: Simplified the MD5 string compare code.

* * rocDecode: Added minor changed based on review comments.

* * rocDecode: Minor changes.

* * rocDecode/Sample script: Added units to Bit rate field in csv output.

[ROCm/rocdecode commit: 14f4c6973a]
2024-09-16 15:27:10 -04:00
Lakshmi Kumar b9c293a754 Test Upgrades (#395)
* adds av1 to ctest

* add av1 support for batch sample

* add test to make test also

* path update for make test

* add function for codec support check

* add changes to batch sample

* addressign review comment

* modify all apps to check codec support

[ROCm/rocdecode commit: e3b3fe9e8e]
2024-07-26 17:09:58 -04:00
Kiriti Gowda 2626f6bc66 CMakeLists - Use -D AMDGPU_TARGETS (#379)
* Sample - Updates

* CMakeList - Accept -D AMDGPU_TARGET

[ROCm/rocdecode commit: 2014c55f11]
2024-07-09 11:03:24 -04:00
Rajy Rawther 5105e2d7b3 Added a new function to get RgbStride (#352)
* re-org videodecodeRGB sample

* minor fix

* removed un-necessary include

* minor fix

* added GetRgbStride utility function for RGB stride

* fix for review comments

---------

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

[ROCm/rocdecode commit: dd30db9f51]
2024-05-13 12:39:38 -04:00
Rajy Rawther 4de84d0b27 videodecodeRGB sample re-org for rocPyDecode (#343)
* re-org videodecodeRGB sample

* minor fix

* removed un-necessary include

* minor fix

[ROCm/rocdecode commit: 95f90982eb]
2024-05-07 17:11:57 -04:00
Kiriti Gowda 7fdf00a682 Sample - Added missing header (#336)
[ROCm/rocdecode commit: e2b9e7197a]
2024-05-02 17:26:11 -04:00
Pavel Tcherniaev a9a75f088d added md5 checksum with changes that Aryan and Rajy requested (#333)
Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>

[ROCm/rocdecode commit: 12fa766973]
2024-05-02 08:49:46 -04:00
Aryan Salmanpour 805ecd6ee8 Organizing the install location of the rocdecode utils headers (#296)
[ROCm/rocdecode commit: 592195b652]
2024-03-26 12:47:37 -04:00
Rajy Rawther 5ac584fad5 rocDecode resize sample implementation (#285)
* WIP: resize kernels

* hipified kernels for scaling from cuda

* updated videodecodeRGB sample for scaling

* added stream parameter to kernels

* add scale kernels using tex2d and NN

* enable tex2D kernels

* add NN resize kernels

* fixed scaling kernels

* fixed tex2D scaling kernel for UV scaling

* minor formatting

* address review comments

---------

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

[ROCm/rocdecode commit: 39e274d02d]
2024-03-18 08:32:19 -04:00
jeffqjiangNew 9e64945bdf Fixed several issues with cropping. (#275)
* * rocDecode: Fixed several issues with cropping.
  - Fixed the pixel start offset error on streams with non-zero top/left cropping in MD5 calculation.
  - Fixed the pixel start offset error on streams with non-zero top/left cropping, and/or with user specified cropping in YUV frame output.
  - Sorted out code which deals with cropping area specifiied by the bitstream, and cropping area specified by the user.

* * rocDecode: Additional changes after discussion.
 - Set display rect for decoder create/reconfig to displayable area or user specified ROI area.
 - Do not set target rect for decoder create/reconfig. Leave it for future use.
 - Unified naming of display rect in decoder create/reconfig structs.

* * rocDecode: Put back the extra rounding to target width/height specifiied by the coded stream, for peace of mind, based on code review.

* * rocDecode: Added the missing stream specified cropping offset to the starting pixel pointer for none-internal memory modes.

---------

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

[ROCm/rocdecode commit: e4614de461]
2024-03-11 22:35:11 -04:00
Kiriti Gowda cabcb78825 FFMPEG - Multi-version support (#270)
* FFMPEG 5.X - Support

* FFMPEG 5.X - Support

* FFMPEG - Multiversion support

* FFMPEG - Support FFMPEG AVCODEC > 58.134.X

[ROCm/rocdecode commit: ca067ae6ec]
2024-03-05 08:34:05 -05:00
Aryan Salmanpour 6f80f7e81c Revert "FFMPEG 5.X - Support (#268)" (#269)
This reverts commit 11abd055ed.

[ROCm/rocdecode commit: 6317b9f22b]
2024-02-28 14:31:07 -05:00
Kiriti Gowda 11abd055ed FFMPEG 5.X - Support (#268)
[ROCm/rocdecode commit: 4f2bf945a9]
2024-02-28 12:37:33 -05:00
Kiriti Gowda 19697e79a8 VideoDecodeRGB - Failure Fix (#248)
* Sample - ROCM PATH Fix

* Sample - Add missing lib

[ROCm/rocdecode commit: e95129ece2]
2024-02-14 13:03:34 -05:00
Aryan Salmanpour 9467760627 Fix a bug in VideoDecodeRGB for syncing between main and worker threads (#245)
[ROCm/rocdecode commit: ee3829388d]
2024-02-14 12:30:03 -05:00
Aryan Salmanpour bc48060ff0 Fix a segmentation fault on some samples when the memory type is 3 (OUT_SURFACE_MEM_NOT_MAPPED) and attempting to save the output (which is not supported) (#239)
* Fix a segmentation fault on some samples when the memory type is 3 (OUT_SURFACE_MEM_NOT_MAPPED) and attempting to save the output (which is not supported)

* update the videoDecodeMultiFiles sample

* update the readme for videoDecodeMultiFiles

* add comments

* use OUT_SURFACE_MEM_NOT_MAPPED instead of integer number 3

[ROCm/rocdecode commit: 31c7c7c104]
2024-02-12 16:50:17 -05:00
Kiriti Gowda 9b14aee579 Sample - fix path & build types (#237)
[ROCm/rocdecode commit: 1881a5a61e]
2024-02-12 12:13:37 -05:00
Aryan Salmanpour cb9f6a48ae Enable gfx941/gfx942 by default for videoDecodeRGB sample (#236)
[ROCm/rocdecode commit: de5841d249]
2024-02-12 08:35:23 -05:00
Kiriti Gowda 1b4792c45c Doc - Updates (#231)
[ROCm/rocdecode commit: 5e5c92abb5]
2024-02-09 13:31:44 -05:00
Kiriti Gowda f517b2ab2d Samples - Docs Updated (#204)
[ROCm/rocdecode commit: 2298d93990]
2024-01-26 05:19:24 -08:00
Aryan Salmanpour a28ebcb3f2 Remove unsupported GPUs (#175)
[ROCm/rocdecode commit: 3d28911453]
2024-01-15 10:50:34 -08:00