Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add break of VideoReader loop when keyframe past requested has been reached #2706

Merged
merged 2 commits into from Feb 24, 2021

Conversation

JanuszL
Copy link
Contributor

@JanuszL JanuszL commented Feb 22, 2021

  • adds a frame reading loop break when a keyframe following the end of the last requested frame in the sequence

Signed-off-by: Janusz Lisiecki jlisiecki@nvidia.com

Why we need this PR?

Pick one, remove the rest

  • It adds a frame reading loop break when a keyframe following the end of the last requested frame in the sequence

What happened in this PR?

Fill relevant points, put NA otherwise. Replace anything inside []

  • What solution was applied:
    adds a frame reading loop break when a keyframe following the end of the last requested frame in the sequence
  • Affected modules and functionalities:
    video_loader
  • Key points relevant for the review:
    NA
  • Validation and testing:
    current test applies
  • Documentation (including examples):
    NA

JIRA TASK: [NA]

…eached

- adds a frame reading loop break when a keyframe following the
  end of the last requested frame in the sequence

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
@JanuszL
Copy link
Contributor Author

JanuszL commented Feb 22, 2021

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2098994]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2098994]: BUILD PASSED

@awolant awolant self-assigned this Feb 23, 2021
@jantonguirao jantonguirao self-assigned this Feb 23, 2021
@jantonguirao jantonguirao changed the title Add break of VideoReadig loop when keyframe past requested has been reached Add break of VideoReader loop when keyframe past requested has been reached Feb 23, 2021
if (!is_first_frame) {
nonkey_frame_count = 0;
if (frame > req.frame + req.count) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a comment here. How about?

// Found a key frame past the requested range. We can stop searching (If there were missing frames in the range they won't be found after the next key frame)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
@JanuszL
Copy link
Contributor Author

JanuszL commented Feb 23, 2021

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2101801]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2101801]: BUILD PASSED

@JanuszL JanuszL merged commit 1868d2a into NVIDIA:master Feb 24, 2021
@JanuszL JanuszL deleted the add_exit_video_reader branch February 24, 2021 13:34
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.

None yet

4 participants