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

Paul B Mahol onemda at gmail.com
Thu Dec 28 10:37:21 EET 2017


On 12/27/17, Tomas Haerdin <tjoppen at acc.umu.se> wrote:
> 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

No, 0x0 pictures are not possible.


More information about the ffmpeg-devel mailing list