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

159 Коммитов

Автор SHA1 Сообщение Дата
Aryan Salmanpour de144cd941 Exclude YUV 4:4:0 for RGB format conversion in VCN on MI300, as it is not supported. Instead, use HIP kernels. (#63) 2024-10-10 15:42:38 -04:00
Aryan Salmanpour 45d8f696d4 Add code owners for the rocJPEG (#62)
* Add code owners for the rocJPEG

* code clean up
2024-10-09 16:47:14 -04:00
Aryan Salmanpour 253daa501f Fix few typos in the header file - no functional changes (#61) 2024-10-09 14:04:26 -04:00
Lakshmi Kumar f05d8862c8 update clang path per packaging (#59) 2024-10-01 13:20:21 -04:00
Aryan Salmanpour ad90eb4582 Optimize the memory pool allocation bso that its size doesn't exceed the max_pool_size_ (#58) 2024-10-01 09:14:15 -04:00
Aryan Salmanpour c0ce1e45b0 update docs (#56)
* update docs

* remove extra line

* clean up
2024-09-18 12:56:20 -04:00
Aryan Salmanpour 7ad5e10137 rename yuv to yuv_planar for the output format (#55) 2024-09-11 14:43:14 -04:00
Aryan Salmanpour 459f12b6b3 Increase the output image size for rgb and rgb_planar (#54)
* Increase the output image size for rgb and rgb_planar to avoi

* code clean up
2024-09-10 16:39:38 -04:00
Aryan Salmanpour 7b321a86ed Add support for ROI decode on MI300 (#53)
* Add support for ROI decode on MI300

* Add ROI decode support for batched decoding

* clean up

* clean up

* Fix a typo and update sample's readme
2024-08-22 17:04:03 -04:00
Aryan Salmanpour c9d773d89a Update Samples (#52) 2024-08-20 08:26:38 -04:00
Aryan Salmanpour 0cff7dd26f Update jpegDecode sample (#51)
* Update jpegDecode sample

* Address review comments
2024-08-15 19:29:29 -04:00
Aryan Salmanpour 7129a01f88 Modify the memory pool access for batch decode submission (#50) 2024-08-14 16:45:05 -04:00
Pavel Tcherniaev b68b9ba8ea Roi decode feature (#48)
* implemented ROI for NATIVE, YUV_PLANAR, Y, RGB and RGB_PLANAR

* added the changes requested by Aryan in the PR

* prelim check in of ROI

* finished RGB and RGB_PLANAR ROI implementation and testing in rocjpeg_decoder.cpp, updated the versions to 0.6.0, updated jpegdecode.cpp and jpegdecodedbatched.cpp. Still need to modify jpegmultithreads.cpp. Need to run tests on JPEG 444 and 440. And need to add test to ctests and make test. Will update this PR when I've added everything mentioned here.

* changed new_offset and new_uv_offset to roi_offset and roi_uv_offset in rocjpeg_decoder.cpp. Added ROI handling in jpegdecodemultithreads sample. Still need to run tests on jpegdecodemultithreads and jpegdecodebatched.

* addressed all changes Aryan mentioned for PR 48 on August 12

* added tests to ctests and make tests and fixed conflict in jpegdecodemultithreads.cpp

* addressed latest change requests

* removed spaces after case VA_FOURCC_444P

* updated ctests and make tests

* fixed copy/paste error for ctests

* fixed typo with extra $

* added print statement for cropped image dimensions

* addressed latest change requests from Aryan. Ran make tests and ctests, all passed

* added workaround for YUV440 to RGB conversion
2024-08-13 21:30:26 -04:00
Kiriti Gowda 750a59c5d9 Setup - Mariner Support (#49)
* Setup - Mariner Support

* Docs - Updates
2024-08-07 10:21:13 -04:00
Aryan Salmanpour 45b7944064 Samples - updates & fixes (#47)
* Samples - updates & fixes

* use std::cerr
2024-07-25 14:04:20 -04:00
Aryan Salmanpour 92d545f42b CMakeLists - updates and clean up (#46)
* CMakeLists - updates and clean up

* Update the vcn joeg spec table
2024-07-24 12:36:54 -04:00
Lakshmi Kumar 10c5ccf9d4 add version file (#45) 2024-07-22 17:31:45 -04:00
Aryan Salmanpour 7fafba6e70 CMakeLists/README/DOC - updates and fixes (#43)
* CMakeLists/README/DOC - updates and fixes

* Fix few typos in the sample code in doc

* Add a sample code snippet for decoding a batch of jpeg images
2024-07-22 12:12:35 -04:00
Aryan Salmanpour 6d7d72c6da Update the MemoryPool by defining the max pool size, and use it when adding a new entry to the pool (#44)
* Update the MemoryPool by defining the max pool size, and use it when adding a new entry to the pool

* Fix finding the gfx942_mi300x
2024-07-19 19:04:31 -04:00
Sam Wu c3d07f42a0 Set libva driver path in env on sles15 (#40)
* Set libva driver path in env on sles15

* Refactor runTestCommand logic
2024-07-16 11:30:17 -06:00
Aryan Salmanpour a5b31eec78 Update the GetFilePaths function to recursively add only JPEG file paths (#42) 2024-07-15 12:46:07 -04:00
Pavel Tcherniaev 6ce373b2a1 Added first half of ROI support (#41)
* Finished first half of adding ROI functionality to rocJPEG

* took out unnecessary .h file

* addressed review comments from Aryan

* fixed typo

* fixed documentation in code for decode_params

* fixed the spaces
2024-07-12 15:22:49 -04:00
Aryan Salmanpour 3f0be8387e Add support for rocJpegDecodeBatched API - part 2 of 2 (#39)
* Modify the batchDecode submission

* Add support for grouping the jpeg streams based on their chroma_subsampling, width, and height

* Modify the RocJpegVappiMemPoolEntry to use vectors for va_surface_ids and hip_interops

* Add a function to get the current vcn jpeg spec

* Add support to get hip interop mem for the batched submission

* switch to std::mutext

* Updatet the rocJPEG version

* use std::find to find the surface_id

* correct the vcn_jpeg_spec_ table for gfx942-mi300a/mi300x

* Fix typos

* pass the decode_params to the SubmitDecode function
2024-07-12 15:20:38 -04:00
Aryan Salmanpour d9df1e04b5 Update documentation for using rocJPEG (#37)
* Update documentation for using rocjpeg

* clean up

* Update the jpeg table

* update the sample code in section 11

* Update Readme
2024-07-08 13:29:01 -04:00
Aryan Salmanpour 03f8bd0fa1 update the vcn_jpeg_spec_ table (#38) 2024-07-08 09:32:01 -04:00
Aryan Salmanpour 6f5b8f35a5 use supported VA_FOURCC_* instead of the VA_RT_FORMAT_* for the internel mem_pool_ key entries (#36) 2024-07-04 15:15:50 -04:00
Aryan Salmanpour bd09811662 Fix a bug where the dcoded output is not updated (#35)
* Fix a bug where the dcoded output is not updated

* code clean up - remove redundant if check
2024-07-04 13:13:39 -04:00
Aryan Salmanpour 44f74c4958 Use the standard .yuv and .rgb file extensions when saving the decoded jpeg outputs (#34)
* Use the standard .yuv and .rgb file extensions when saving the decoded jpeg outputs

* modify the file description for saving
2024-06-26 09:00:45 -04:00
Aryan Salmanpour c660aeab43 Add support for rocJpegDecodeBatched API - part 1 of 2 (#31)
* Add initial support for batch decoding

* Add support for reading and parsing the images in batches and allocating the output buffers

* Add initial support for the rocJpegDecodeBatched API

* use recursive_mutex to allow DecodeBatched and Decode functions called concurrently

* code cleanup

* Add a CTEST for jpegdecodebatched

* modify the help message

* code clean up
2024-06-13 14:04:53 -04:00
Kiriti Gowda 3a65ac9aea Setup - Upgrade (#30) 2024-06-11 17:27:16 -04:00
Aryan Salmanpour 417a5f5c92 Update docs and README (#29) 2024-05-31 12:36:12 -04:00
Aryan Salmanpour d0b812bc26 Add support for YUV440 (#28)
* Add support for YUV440

* Add YUV440 to RGB kernels

* code clean up
2024-05-30 22:00:07 -04:00
Aryan Salmanpour b7edd5de5b Add support for handling exceptions while using the std::filesystem::recursive_directory_iterator (#27) 2024-05-30 09:08:35 -04:00
Aryan Salmanpour f0641d4811 Update README and setup script (#26) 2024-05-16 09:17:50 -04:00
Aryan Salmanpour 73c0b10f6a Add/update comments to the code (#25)
* Add/update comments to the code

* update comments

* Update comments
2024-05-15 13:44:51 -04:00
Aryan Salmanpour e73ec1412c Add support for new APIs for parsing jpeg streams independently from decoder APIs (#24)
* Add support for new APIs for parsing jpeg streams independently from decoder APIs

* Update document and code clean-up

* code clean-up
2024-05-13 16:11:15 -04:00
Aryan Salmanpour 764ae2a348 Fix compilation issues on systems without std::filesystem (#23) 2024-05-08 15:57:19 -04:00
Aryan Salmanpour 7bdd495214 Add support for adding a new struct RocJpegDecodeParams for passing the decode parameters to rocJpegDecode API (#22) 2024-05-08 11:30:36 -04:00
Aryan Salmanpour bb085a9bf1 Add a new sample (jpegDecodeMultiThreads) for jpeg decoding using multiple threads (#18)
* Add a new sample for jpeg decoding using multiple threads

* code clean up

* code clean up

* code cleanup

* remove extra line

* code clean up - change some variable names

* code clean up

* Move common functions to a new header for samples

* move additional functions to the common samples header

* move the common functions to a new header file and modify the readme

* modify the sample's README

* Add a CTEST for the jpegDecodeThreads sample

* Add a samples overview README

* modify the jpeg decode threads sample

* add finding the threads

* rename jpegDecodeThreads to jpegDecodeMultiThreads

* Make changes based on the reviewers comments

* use one instance of the rocjpeg_utils

* code cleanup
2024-05-03 12:16:43 -04:00
Kiriti Gowda 57246bc40b RHEL - Fix (#21) 2024-05-02 20:55:29 -04:00
Kiriti Gowda 6738bc3c56 Deps - Updates (#20) 2024-05-01 16:07:02 -04:00
Aryan Salmanpour 694a4bc07f Add support for memory pool management for vaapi surfaces and vaapi-hip interops (#17)
* Add support for memory pool management for vaapi surfaces

* reuse memories for each channel if the sizes remain unchanged

* rename hip_interop to hip_interop_dev_mem
2024-04-22 14:37:45 -04:00
Kiriti Gowda 6aaca70cd9 LibVA - Updates and fixes (#16)
* Setup - Updates

* Jenkins - Updates

* CMakeList - Updates for Libva public
2024-04-17 09:25:16 -04:00
Aryan Salmanpour c591c342aa Add support for ROCJPEG_OUTPUT_RGB_PLANAR output format (#15)
* Add support for ROCJPEG_OUTPUT_RGB_PLANAR output format

* update the jpegdecode sample based on the review comments

* use make_float3 when it's possible
2024-04-16 18:27:22 -04:00
Aryan Salmanpour 63dc882415 Add support for HW-based RGB format conversion on MI300 (#13)
* Add support for HW-based RGB format conversion on MI300

* code clean up

* change variable names
2024-04-11 13:37:08 -04:00
dependabot[bot] 2f23ebe47b Bump rocm-docs-core[api_reference] from 0.38.0 to 0.38.1 in /docs/sphinx (#14)
Bumps [rocm-docs-core[api_reference]](https://github.com/RadeonOpenCompute/rocm-docs-core) from 0.38.0 to 0.38.1.
- [Release notes](https://github.com/RadeonOpenCompute/rocm-docs-core/releases)
- [Changelog](https://github.com/ROCm/rocm-docs-core/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/RadeonOpenCompute/rocm-docs-core/compare/v0.38.0...v0.38.1)

---
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>
2024-04-11 09:27:41 -06:00
Aryan Salmanpour 214187ce11 Use the correct offset when creating render nodes on each partition mode on MI300 (#11)
* Use the correct offset when creating render nodes on each partition mode on MI300

* code clean up
2024-04-09 20:28:57 -04:00
Aryan Salmanpour 3fb392e6fc update document - fix few typos (#12) 2024-04-08 12:51:00 -04:00
Aryan Salmanpour 09f02a1b2d Update the documents (#10)
* Update the documents

* update the using-rocjpeg
2024-04-03 14:55:56 -04:00
Aryan Salmanpour 3c803847f7 Add initial support for rocJPEG documentation (#9) 2024-04-02 13:10:04 -04:00