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

Make some fields in VideoReader concrete types #258

Conversation

galenlynch
Copy link
Collaborator

Two fields of VideoReader, framerate and aspect_ratio, are both of type Rational, an abstract type. In reality, the constructor of VideoReader sets both of these fields to be type Rational{Cint}. By changing the type definition to reflect that, it reduces type instability in code accessing VideoReader fields, while not restricting the generality of VideoReader.

Two fields of `VideoReader`, `framerate` and `aspect_ratio`, are both of type
`Rational`, an abstract type. In reality, the constructor of `VideoReader` sets
both of these fields to be type `Rational{Cint}`. By changing the type
definition to reflect that, it reduces type instability in code accessing
`VideoReader` fields, while not restricting the generality of `VideoReader`.
@codecov
Copy link

codecov bot commented Aug 11, 2020

Codecov Report

Merging #258 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #258   +/-   ##
=======================================
  Coverage   77.09%   77.09%           
=======================================
  Files          14       14           
  Lines         598      598           
=======================================
  Hits          461      461           
  Misses        137      137           
Impacted Files Coverage Δ
src/avio.jl 79.15% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d2166e5...4f3e9b8. Read the comment docs.

@IanButterworth IanButterworth merged commit cf1cabf into JuliaIO:master Aug 11, 2020
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