gpt4 book ai didi

ffmpeg - 如何在 H.264 中更改宏 block 的大小?

转载 作者:行者123 更新时间:2023-12-04 23:20:23 25 4
gpt4 key购买 nike

我正在使用 ffmpeg api 来实现这篇论文(Passthrough+: Real-time Stereoscope View Synthesis for Mobile Mixed Reality)。在本文中,他们使用 8x8 宏 block 来计算运动矢量。然而,大多数宏 block 是由 ffmpeg 以 16x16 像素编码的。如何使用ffmpeg api强制宏 block 大小为8x8(或者可以通过修改libavcodec/libx264.c来完成)?

最佳答案

你不能。
H.264 规范 ISO 14496-10 将宏 block 定义为

A 16x16 block of luma samples and two corresponding blocks of chromasamples of a picture that has three sample arrays, or a 16x16 blockof samples of a monochrome picture or a picture that is coded usingthree separate colour planes.


当然,这些可以进一步分割用于“帧间预测”,但宏 block 大小由定义固定。

关于ffmpeg - 如何在 H.264 中更改宏 block 的大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67933870/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com