[FFmpeg-soc] [soc]: r284 - in libavfilter: . TODO avfilter.c avfilter.h

Michael Niedermayer michaelni at gmx.at
Fri Jun 29 23:11:10 CEST 2007


Hi

On Fri, Jun 29, 2007 at 07:03:03PM +0200, koorogi wrote:
> Author: koorogi
> Date: Fri Jun 29 19:03:03 2007
> New Revision: 284
> 
> Log:
> Initial stab at an API

[...]

> +    ref->data[0] = pic->data[0];
> +    ref->data[1] = pic->data[1];
> +    ref->data[2] = pic->data[2];
> +    ref->data[3] = pic->data[3];

memcpy()


[...]

> +/**
> + * A reference to an AVFilterPic.  Since filters can manipulate the origin of
> + * a picture to, for example, crop image without any memcpy, the picture origin
> + * and dimensions are per-reference properties.
> + *
> + * TODO: add pts, and anything necessary for frame reordering
> + */
> +typedef struct AVFilterPicRef
> +{
> +    AVFilterPic *pic;
> +    uint8_t *data[4];
> +    int w, h;
> +
> +    int perms;                  ///< permissions
> +#define AV_PERM_READ     0x01   ///< can read from the buffer
> +#define AV_PERM_WRITE    0x02   ///< can write to the buffer
> +#define AV_PERM_PRESERVE 0x04   ///< nobody else can overwrite the buffer
> +#define AV_PERM_REUSE    0x08   ///< can output the buffer multiple times
> +} AVFilterPicRef;

linesize should be per reference too, its usefull for frame<->field filters
that is a interlaced frame as input can be converted to just one of the 2
fields by (data[*]+= linesize[*];) linesize[*]*=2; height/=2; 

also linesize *= -1; is nice for a vertical flip

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I hate to see young programmers poisoned by the kind of thinking
Ulrich Drepper puts forward since it is simply too narrow -- Roman Shaposhnik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20070629/fbfbb23b/attachment.pgp>


More information about the FFmpeg-soc mailing list