FFMPEG libx264解码为YUV
生活随笔
收集整理的這篇文章主要介紹了
FFMPEG libx264解码为YUV
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
在FFMPEG中,圖像原始數(shù)據(jù)包括兩種:planar和packed。planar就是將幾個(gè)分量分開(kāi)存,比如YUV420中,data[0]專門存Y,data[1]專門存U,data[2]專門存V。而packed則是打包存,所有數(shù)據(jù)都存在data[0]中
具體哪個(gè)格式是planar,哪個(gè)格式是packed,可以查看pixfmt.h文件,路徑為ffmpeg/libavutil/pixfmt.h。注:有些格式名稱后面是LE或BE,分別對(duì)應(yīng)little-endian或big-endian。另外名字后面有P的是planar格式。
/** copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at>** This file is part of FFmpeg.** FFmpeg is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either* version 2.1 of the License, or (at your option) any later version.** FFmpeg is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY; wi總結(jié)
以上是生活随笔為你收集整理的FFMPEG libx264解码为YUV的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: YUV 之解读
- 下一篇: FFmpeg源代码学习