[FFmpeg-devel] [PATCH]: Video Decoder Acceleration (VDA) HWAccel module for Mac OS X

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Nov 1 16:09:20 CET 2011


Sebastien Zwickert <dilaroga <at> gmail.com> writes:

> The patch in attachment implements a HWAccel module that uses the Video 
> Decoder Acceleration framework on
> Mac OS X. VDA decodes H264 avcc format video in GPU.
> The technical notes from Apple about this module can be found at this link :
> http://developer.apple.com/library/mac/#technotes/tn2267/

Did you consider using VideoToolBox instead?

[...]

> +    PIX_FMT_VDA_VLD,    ///< HW decoding through VDA.
> +
>      PIX_FMT_YUV420P16LE,  ///< planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per
2x2 Y samples), little-endian

This really has to go to the end of the list.

Style nits (feel free to ignore).
    switch(x) {
    case a:
       break;
    case b:
       break;
    }

    if (a) [
        f();
    } else {
        g();
    }
and similar for while()

Carl Eugen



More information about the ffmpeg-devel mailing list