-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implements DefaultDataSink dynamic queue #7
Conversation
bufferInfo.set(offset, sample.mSize, sample.mTimeUs, sample.mFlags); | ||
writeTrack(sample.mType, mQueueBuffer, bufferInfo); | ||
offset += sample.mSize; | ||
bufferInfo.set(0, sample.mSize, sample.mTimeUs, sample.mFlags); |
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.
offsetが常に0が入るようになっていますが問題ないですか?(内部で使われていない?)
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.
1つのBufferに1回しか書き込まないので常に0で問題なしです!
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.
そうか。QueuedSampleにBufferを持たせるように変えたから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.
LGTM!!
bufferInfo.set(offset, sample.mSize, sample.mTimeUs, sample.mFlags); | ||
writeTrack(sample.mType, mQueueBuffer, bufferInfo); | ||
offset += sample.mSize; | ||
bufferInfo.set(0, sample.mSize, sample.mTimeUs, sample.mFlags); |
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.
そうか。QueuedSampleにBufferを持たせるように変えたから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.
LGTM!!
see https://github.com/natario1/Transcoder/pull/166
動作確認しないよう
10秒の動画で確認したところ34Bufferがキューに貯まりました。
10分の動画で確認したところ35Bufferがキューに貯まりました。
動画の長さ(≒サイズ)によって線形にキューが増える(=メモリ使用量が増える)ではなさそうなのでこの実装で問題ないと判断しています。