Skip to content

VPAAMP-201 Move SpeedCache to common AampSpeedCache.h header#1360

Merged
pstroffolino merged 2 commits into
dev_sprint_25_2from
feature/VPAAMP-201
Apr 26, 2026
Merged

VPAAMP-201 Move SpeedCache to common AampSpeedCache.h header#1360
pstroffolino merged 2 commits into
dev_sprint_25_2from
feature/VPAAMP-201

Conversation

@pstroffolino
Copy link
Copy Markdown
Contributor

Reason for Change: SpeedCache was defined identically in three places:

  • priv_aamp.h
  • abr/abr.cpp
  • support/aampabr/HybridABRManager.cpp

Introduce AampSpeedCache.h as the single canonical definition. Replace each duplicate with an #include "AampSpeedCache.h". Also add the include to abr/abr.h and HybridABRManager.h so their CheckLLDashABRSpeedStoreSize declarations are self-contained and callers no longer need to pull in priv_aamp.h for the struct.

SpeedCache was defined identically in three places:
  - priv_aamp.h
  - abr/abr.cpp
  - support/aampabr/HybridABRManager.cpp

Introduce AampSpeedCache.h as the single canonical definition.
Replace each duplicate with an #include "AampSpeedCache.h".
Also add the include to abr/abr.h and HybridABRManager.h so their
CheckLLDashABRSpeedStoreSize declarations are self-contained and
callers no longer need to pull in priv_aamp.h for the struct.
Copy link
Copy Markdown
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 consolidates the duplicated SpeedCache struct into a single shared header (AampSpeedCache.h) so ABR-related code can use it without relying on transitive includes from priv_aamp.h.

Changes:

  • Added new shared header AampSpeedCache.h containing the canonical SpeedCache definition.
  • Replaced three duplicated SpeedCache definitions (in priv_aamp.h, abr/abr.cpp, and support/aampabr/HybridABRManager.cpp) with #include "AampSpeedCache.h".
  • Made ABR-facing headers self-contained by including AampSpeedCache.h in abr/abr.h and support/aampabr/HybridABRManager.h.

Reviewed changes

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

Show a summary per file
File Description
support/aampabr/HybridABRManager.h Includes shared SpeedCache definition so public declarations are self-contained.
support/aampabr/HybridABRManager.cpp Removes local duplicate SpeedCache and includes shared header.
priv_aamp.h Removes duplicate SpeedCache struct definition and includes shared header.
abr/abr.h Includes shared SpeedCache definition so declarations are self-contained.
abr/abr.cpp Removes local duplicate SpeedCache and includes shared header.
AampSpeedCache.h New canonical shared header defining SpeedCache.

Comment thread priv_aamp.h Outdated
@pstroffolino pstroffolino merged commit 1979812 into dev_sprint_25_2 Apr 26, 2026
10 checks passed
@pstroffolino pstroffolino deleted the feature/VPAAMP-201 branch April 26, 2026 15:03
Abhi-jith-S pushed a commit that referenced this pull request May 12, 2026
* VPAAMP-201 Move SpeedCache to common AampSpeedCache.h header

Reason for Change: SpeedCache was defined identically in three places:
  - priv_aamp.h
  - abr/abr.cpp
  - support/aampabr/HybridABRManager.cpp

Introduce AampSpeedCache.h as the single canonical definition.
Replace each duplicate with an #include "AampSpeedCache.h".
Also add the include to abr/abr.h and HybridABRManager.h so their
CheckLLDashABRSpeedStoreSize declarations are self-contained and
callers no longer need to pull in priv_aamp.h for the struct.
varatharajan568 pushed a commit that referenced this pull request May 20, 2026
* VPAAMP-201 Move SpeedCache to common AampSpeedCache.h header

Reason for Change: SpeedCache was defined identically in three places:
  - priv_aamp.h
  - abr/abr.cpp
  - support/aampabr/HybridABRManager.cpp

Introduce AampSpeedCache.h as the single canonical definition.
Replace each duplicate with an #include "AampSpeedCache.h".
Also add the include to abr/abr.h and HybridABRManager.h so their
CheckLLDashABRSpeedStoreSize declarations are self-contained and
callers no longer need to pull in priv_aamp.h for the struct.
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