Skip to content

Conversation

@ddennedy
Copy link
Member

No description provided.

@ddennedy ddennedy requested a review from Copilot December 12, 2025 23:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new setting to enable/disable hardware decoder usage in the preview player. The feature allows users to toggle hardware-accelerated decoding through the Settings > Preview Scaling menu, configuring platform-specific hardware decoders (VideoToolbox on macOS, D3D11VA on Windows, VAAPI on Linux).

Key Changes:

  • Added UI option to toggle hardware decoder in preview scaling menu
  • Implemented hardware decoder configuration logic with platform-specific support
  • Added safety checks to prevent invalid producer/consumer operations

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/mainwindow.ui Added "Use Hardware Decoder" action to preview scaling menu
src/mainwindow.h Added slot declaration for hardware decoder toggle handler
src/mainwindow.cpp Implemented hardware decoder toggle handler and initialization logic
src/settings.h Added getter/setter declarations for hardware decoder preference
src/settings.cpp Implemented hardware decoder preference storage with default value true
src/mltcontroller.h Added hardware decoder configuration method declaration
src/mltcontroller.cpp Implemented platform-specific hardware decoder configuration logic
src/videowidget.cpp Added producer validation check and preview scale configuration
src/player.cpp Added safety check for invalid producer in onProducerOpened
src/jobs/meltjob.cpp Removed hardware decoder environment variable for background jobs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants