[FFmpeg-devel] Finding residuals in h264 decoding in ffmpeg

Michael Niedermayer michaelni at gmx.at
Wed Oct 22 15:19:18 CEST 2014

On Tue, Oct 21, 2014 at 01:11:39PM +0200, Norbert Schmitt wrote:
> Hello,
> I am trying to understand how the H.264 Decoder in ffmpeg works and
> saving data (Macroblock types and motion vectors for example) from
> the decoding of a H.264 video. I also want to save the residuals for
> each frame but I cant seem to find them. There is something I am
> missing. It goes directly from CABAC/CAVLC decoding to
> pre-loop-filter values as far as I understand it. I already looked
> in the H264Context struct because most of the other information I
> want can be found there. If the residuals or the prediction values
> are stored in a H264Context struct I cannot find out which variable
> or pointer referes to them.
> Can someone please point me in the right direction where the
> residuals and or the predicted values for each frame are stored?

look at decode_cabac_residual_internal() and decode_residual() and
the related code


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141022/6bb48bff/attachment.asc>

More information about the ffmpeg-devel mailing list