-
Notifications
You must be signed in to change notification settings - Fork 295
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
feat: introduce rbsp unscaping buffer reader #346
Conversation
this->pos = 0; | ||
} | ||
|
||
inline bool Assert(size_t num) const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are we asserting here?
Is this method used to skip the input NAL for a h26x buffer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this method is used to ensure that we have enough bytes to call PeekX method safely, we probably want to replace them with exceptions eventually.
Note that this RbspReader as the same methods as the BufferReader so we can use them as template input for the BaseBitReader
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yayyyy, finally ^^ thanks for implementing this.
other than the typo it lgtm. i'm sad we're copying the same bunch of code in three places though
Co-authored-by: Alba Mendez <[email protected]>
thanxs for your reivews! yes, it is sad that I had to copy the same code in 3 places, couldn't find any good idea for cleaning it up, any idea on ow to improve it? |
completely untested, ptal