[FFmpeg-devel] [PATCH v8] VideoToolbox H.264 Encoder

Michael Niedermayer michael at niedermayer.cc
Mon Feb 29 19:56:22 CET 2016


On Tue, Mar 01, 2016 at 01:30:58AM +0800, Rick Kern wrote:
> Autodetected by default. Encode using -codec:v vtenc.
> 
> Signed-off-by: Rick Kern <kernrj at gmail.com>
[...]

> +/*
> + * contiguous_buf_size is 0 if not contiguous, and the size of the buffer
> + * containing all planes if so.
> + */
> +static int get_cv_pixel_info(
> +    AVCodecContext *avctx,
> +    const AVFrame  *frame,
> +    int            *color,
> +    int            *plane_count,
> +    size_t         *widths,
> +    size_t         *heights,
> +    size_t         *strides,
> +    size_t         *contiguous_buf_size)
> +{
> +    VTEncContext *vtctx = avctx->priv_data;
> +    int av_format       = frame->format;

> +    int av_color_range  = frame->color_range;

needs av_frame_get_color_range() OR update to the API as documented
in libavutil/frame.h

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160229/477b4b7f/attachment.sig>


More information about the ffmpeg-devel mailing list