Utilize the explicit constructor of the vector's type when resizing the vector for the memory pool (#132)
Esse commit está contido em:
+2
-1
@@ -3,7 +3,7 @@
|
||||
Documentation for rocJPEG is available at
|
||||
[https://rocm.docs.amd.com/projects/rocJPEG/en/latest/](https://rocm.docs.amd.com/projects/rocJPEG/en/latest/)
|
||||
|
||||
## rocJPEG 0.11.0 for ROCm 6.5
|
||||
## rocJPEG 0.11.1 for ROCm 6.5
|
||||
|
||||
## Added
|
||||
* cmake config files
|
||||
@@ -18,6 +18,7 @@ Documentation for rocJPEG is available at
|
||||
|
||||
### Resolved issues
|
||||
* Fixed a bug that prevented copying the decoded image into the output buffer when the output buffer is larger than the input image.
|
||||
* Resolved an issue with resizing the internal memory pool by utilizing the explicit constructor of the vector's type during the resizing process.
|
||||
|
||||
## rocJPEG 0.8.0 for ROCm 6.4
|
||||
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED On)
|
||||
|
||||
# rocJPEG Version
|
||||
# NOTE: package version and rocjpeg_version.h is generated with this version
|
||||
set(VERSION "0.11.0")
|
||||
set(VERSION "0.11.1")
|
||||
|
||||
# Set Project Version and Language
|
||||
project(rocjpeg VERSION ${VERSION} LANGUAGES CXX)
|
||||
|
||||
@@ -657,7 +657,7 @@ RocJpegStatus RocJpegVappiDecoder::SubmitDecode(const JpegStreamParameters *jpeg
|
||||
CHECK_VAAPI(vaCreateSurfaces(va_display_, surface_format, jpeg_stream_params->picture_parameter_buffer.picture_width, jpeg_stream_params->picture_parameter_buffer.picture_height, mem_pool_entry.va_surface_ids.data(), 1, surface_attribs.data(), surface_attribs.size()));
|
||||
mem_pool_entry.image_width = jpeg_stream_params->picture_parameter_buffer.picture_width;
|
||||
mem_pool_entry.image_height = jpeg_stream_params->picture_parameter_buffer.picture_height;
|
||||
mem_pool_entry.hip_interops.resize(1);
|
||||
mem_pool_entry.hip_interops.resize(1, HipInteropDeviceMem());
|
||||
surface_id = mem_pool_entry.va_surface_ids[0];
|
||||
mem_pool_entry.entry_status = kBusy;
|
||||
CHECK_ROCJPEG(vaapi_mem_pool_->AddPoolEntry(surface_pixel_format, mem_pool_entry));
|
||||
@@ -791,7 +791,7 @@ RocJpegStatus RocJpegVappiDecoder::SubmitDecodeBatched(JpegStreamParameters *jpe
|
||||
for (int i = 0; i < mem_pool_entry.va_surface_ids.size(); i++) {
|
||||
surface_ids[indices[i]] = mem_pool_entry.va_surface_ids[i];
|
||||
}
|
||||
mem_pool_entry.hip_interops.resize(indices.size());
|
||||
mem_pool_entry.hip_interops.resize(indices.size(), HipInteropDeviceMem());
|
||||
mem_pool_entry.entry_status = kBusy;
|
||||
CHECK_ROCJPEG(vaapi_mem_pool_->AddPoolEntry(key.pixel_format, mem_pool_entry));
|
||||
} else {
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário