Skip to content

Stream History#1073

Merged
jw098 merged 20 commits intoPokemonAutomation:mainfrom
jw098:stream
Feb 7, 2026
Merged

Stream History#1073
jw098 merged 20 commits intoPokemonAutomation:mainfrom
jw098:stream

Conversation

@jw098
Copy link
Copy Markdown
Collaborator

@jw098 jw098 commented Jan 30, 2026

No description provided.

@Mysticial
Copy link
Copy Markdown
Collaborator

How difficult would it be to make the backend toggleable between the dual recording vs. this new one?

return img.convertToFormat(QImage::Format_BGR888);
}

std::vector<uchar> compress_video_frame(const QVideoFrame& const_frame) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this running on the main Qt thread?

@jw098
Copy link
Copy Markdown
Collaborator Author

jw098 commented Jan 30, 2026

How difficult would it be to make the backend toggleable between the dual recording vs. this new one?

It's doable. But I figured we should fix the dual recording's memory leak first. Before we enable that as an option.

// cout << "on_frame() = " << m_frames.size() << endl;

// Initialize on first frame
if (m_next_frame_time == WallClock{}){
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'd initialize m_next_frame_time to WallClock::min() in the constructor. Then test against that here. It's unclear what WallClock{} initializes to.

@Mysticial
Copy link
Copy Markdown
Collaborator

Just that one minor comment. Feel free to merge. (don't wait for me since I'll be busy for a while.)

@jw098 jw098 merged commit dfebaf5 into PokemonAutomation:main Feb 7, 2026
7 checks passed
@jw098 jw098 deleted the stream branch February 8, 2026 07:44
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