[what][draft][mov] 引入 mov_block_t 将部分内存管理控制权转给到调用方 #265
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#264
针对于
mov_sample_t
结构体积累导致的内存增长, 有一个特点即为单个mov_sample_t
所占用的内存空间是固定的;所以我想一下,可能使用std::vector
这种方式暴露内存分配的方式比new
的方式合适一点;所以定义了mov_blocks_t
:原型上参考的大致是 STL vector arrary.
然后再所有地方操作
mov_sample_t
的地方都使用libmov/source/mov-blocks-util.h
的接口进行操作.