@@ -294,7 +294,7 @@ bool RocJpegVaapiMemoryPool::SetSurfaceAsIdle(VASurfaceID surface_id) {
294294 */
295295RocJpegVappiDecoder::RocJpegVappiDecoder (int device_id) : device_id_{device_id}, drm_fd_{-1 }, min_picture_width_{64 }, min_picture_height_{64 },
296296 max_picture_width_{4096 }, max_picture_height_{4096 }, supports_modifiers_{false }, va_display_{0 }, va_config_attrib_{{}}, va_config_id_{0 }, va_profile_{VAProfileJPEGBaseline},
297- vaapi_mem_pool_ (std::make_unique<RocJpegVaapiMemoryPool>()), current_vcn_jpeg_spec_{0 }, va_picture_parameter_buf_id_{0 }, va_quantization_matrix_buf_id_{0 }, va_huffmantable_buf_id_{0 },
297+ vaapi_mem_pool_ (std::make_unique<RocJpegVaapiMemoryPool>()), current_vcn_jpeg_spec_{}, va_picture_parameter_buf_id_{0 }, va_quantization_matrix_buf_id_{0 }, va_huffmantable_buf_id_{0 },
298298 va_slice_param_buf_id_{0 }, va_slice_data_buf_id_{0 } {};
299299
300300/* *
@@ -344,12 +344,11 @@ RocJpegVappiDecoder::~RocJpegVappiDecoder() {
344344 * and other necessary parameters. It also sets up the VAAPI display and creates the decoder configuration.
345345 *
346346 * @param device_name The name of the device.
347- * @param gcn_arch_name The name of the GCN architecture.
348347 * @param device_id The ID of the device.
349348 * @param gpu_uuid The UUID of the GPU.
350349 * @return The status of the initialization process.
351350 */
352- RocJpegStatus RocJpegVappiDecoder::InitializeDecoder (std::string device_name, std::string gcn_arch_name, int device_id, std::string& gpu_uuid) {
351+ RocJpegStatus RocJpegVappiDecoder::InitializeDecoder (std::string device_name, int device_id, std::string& gpu_uuid) {
353352 device_id_ = device_id;
354353 std::vector<int > visible_devices;
355354 GetVisibleDevices (visible_devices);
@@ -788,14 +787,14 @@ RocJpegStatus RocJpegVappiDecoder::SubmitDecodeBatched(JpegStreamParameters *jpe
788787 CHECK_VAAPI (vaCreateSurfaces (va_display_, surface_format, key.width , key.height , mem_pool_entry.va_surface_ids .data (), mem_pool_entry.va_surface_ids .size (), surface_attribs.data (), supports_modifiers_ ? 2 : 1 ));
789788 mem_pool_entry.image_width = key.width ;
790789 mem_pool_entry.image_height = key.height ;
791- for (int i = 0 ; i < mem_pool_entry.va_surface_ids .size (); i++) {
790+ for (size_t i = 0 ; i < mem_pool_entry.va_surface_ids .size (); i++) {
792791 surface_ids[indices[i]] = mem_pool_entry.va_surface_ids [i];
793792 }
794793 mem_pool_entry.hip_interops .resize (indices.size (), HipInteropDeviceMem ());
795794 mem_pool_entry.entry_status = kBusy ;
796795 CHECK_ROCJPEG (vaapi_mem_pool_->AddPoolEntry (key.pixel_format , mem_pool_entry));
797796 } else {
798- for (int i = 0 ; i < mem_pool_entry.va_surface_ids .size (); i++) {
797+ for (size_t i = 0 ; i < mem_pool_entry.va_surface_ids .size (); i++) {
799798 surface_ids[indices[i]] = mem_pool_entry.va_surface_ids [i];
800799 }
801800 }
0 commit comments