Closed Bug 1872871 Opened 2 years ago Closed 2 years ago

Split FFmpegVideoEncoder initailization into smaller functions

Categories

(Core :: Audio/Video, task, P1)

All
Linux
task

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: chunmin, Assigned: chunmin)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

The initialization of FFmpegVideoEncoder is getting bigger and bigger once we apply more codec-specific settings and patches in bug 1870216. To improve the readability, it's better to move those settings into smaller helper functions (See https://phabricator.services.mozilla.com/D196534?id=805071#inline-1096610).

Depends on: 1870216

This patch addresses an earlier review comment [1] in the code.

Shortening the init function, by moving the SVC settings to a helper
function, improves the readability.

[1] https://phabricator.services.mozilla.com/D196534?id=805071#inline-1096610

This patch addresses an earlier review comment [1] in the code.

Shortening the init function, by moving the codec-specific settings to a
helper function, improves the readability.

[1] https://phabricator.services.mozilla.com/D196534?id=805071#inline-1096610

Depends on D202606

This patch addresses an earlier review comment [1] in the code.

Shortening the init function, by moving the media-usage settings to a
helper function, improves the readability.

[1] https://phabricator.services.mozilla.com/D196534?id=805071#inline-1096610

Depends on D202607

Attachment #9382357 - Attachment description: WIP: Bug 1872871 - Move SVC settings to a function → Bug 1872871 - Move SVC settings to a function
Attachment #9382358 - Attachment description: WIP: Bug 1872871 - Move codec-specific settings to a function → Bug 1872871 - Move codec-specific settings to a function
Attachment #9382359 - Attachment description: WIP: Bug 1872871 - Move media-usage settings to a function → Bug 1872871 - Move media-usage settings to a function
Attachment #9382359 - Attachment is obsolete: true
Pushed by cchang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7320c6c77a0c Move SVC settings to a function r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/636cf8095a0f Move codec-specific settings to a function r=media-playback-reviewers,padenot
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: