[FFmpeg-devel] [PATCH] avfilter: add entropy filter

Tomas Härdin tjoppen at acc.umu.se
Wed Dec 27 23:41:35 EET 2017


ons 2017-12-27 klockan 19:21 +0100 skrev Paul B Mahol:
> > 
> +static int filter_frame(AVFilterLink *inlink, AVFrame *in)
> +{
> +    AVFilterContext *ctx = inlink->dst;
> +    AVFilterLink *outlink = ctx->outputs[0];
> +    EntropyContext *s = ctx->priv;
> +    int plane, y, x;
> +
> +    for (plane = 0; plane < s->nb_planes; plane++) {
> +        int cidx = s->is_rgb ? s->rgba_map[plane] : plane;
> +        uint8_t *src = in->data[plane];
> +        float total = s->planewidth[plane] * s->planeheight[plane];

Are 0x0 pictures possible? I think there's a check somewhere, but I'm
not 100% sure

/Tomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171227/fe489a6c/attachment.sig>


More information about the ffmpeg-devel mailing list