[FFmpeg-devel] [PATCH] avcodec/h264: Partially decode and display single fields try #2

Kieran Kunhya kierank at obe.tv
Tue Jan 20 22:51:25 CET 2015


> +                for(p=0; p<3; p++) {
> +                    int h = f->height;
> +                    int w = f->width;
> +                    if (p) {
> +                        w >>= h_chroma_shift;
> +                        h >>= v_chroma_shift;
> +                    }
> +                    for(y=field; y<h && (y^1)<h; y+=2) {
> +                        memcpy(&f->data[p][ (y^1)*f->linesize[p] ],
> +                            &f->data[p][ y*f->linesize[p] ], w);
> +                    }

Can this not be written with a standard function?


More information about the ffmpeg-devel mailing list