libavfilter/libmpcodecs/mp_image.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mp_msg.h"
#include "libavutil/avutil.h"
#include "libavutil/avassert.h"

Go to the source code of this file.

Data Structures

struct  mp_image

Defines

#define ASMALIGN(ZEROBITS)   ".p2align " #ZEROBITS "\n\t"
#define MP_IMGFLAG_PRESERVE   0x01
#define MP_IMGFLAG_READABLE   0x02
#define MP_IMGFLAG_ACCEPT_ALIGNED_STRIDE   0x4
#define MP_IMGFLAG_PREFER_ALIGNED_STRIDE   0x8
#define MP_IMGFLAG_ACCEPT_STRIDE   0x10
#define MP_IMGFLAG_ACCEPT_WIDTH   0x20
#define MP_IMGFLAG_COMMON_STRIDE   0x40
#define MP_IMGFLAG_COMMON_PLANE   0x80
#define MP_IMGFLAGMASK_RESTRICTIONS   0xFF
#define MP_IMGFLAG_PLANAR   0x100
#define MP_IMGFLAG_YUV   0x200
#define MP_IMGFLAG_SWAPPED   0x400
#define MP_IMGFLAG_RGB_PALETTE   0x800
#define MP_IMGFLAGMASK_COLORS   0xF00
#define MP_IMGFLAG_DRAW_CALLBACK   0x1000
#define MP_IMGFLAG_DIRECT   0x2000
#define MP_IMGFLAG_ALLOCATED   0x4000
#define MP_IMGFLAG_TYPE_DISPLAYED   0x8000
#define MP_IMGTYPE_EXPORT   0
#define MP_IMGTYPE_STATIC   1
#define MP_IMGTYPE_TEMP   2
#define MP_IMGTYPE_IP   3
#define MP_IMGTYPE_IPB   4
#define MP_IMGTYPE_NUMBERED   5
#define MP_IMGTYPE_INCOMPLETE   6
#define MP_MAX_PLANES   4
#define MP_IMGFIELD_ORDERED   0x01
#define MP_IMGFIELD_TOP_FIRST   0x02
#define MP_IMGFIELD_REPEAT_FIRST   0x04
#define MP_IMGFIELD_TOP   0x08
#define MP_IMGFIELD_BOTTOM   0x10
#define MP_IMGFIELD_INTERLACED   0x20

Typedefs

typedef struct mp_image mp_image_t

Functions

void mp_image_setfmt (mp_image_t *mpi, unsigned int out_fmt)
mp_image_tnew_mp_image (int w, int h)
void free_mp_image (mp_image_t *mpi)
mp_image_talloc_mpi (int w, int h, unsigned long int fmt)
void mp_image_alloc_planes (mp_image_t *mpi)
void copy_mpi (mp_image_t *dmpi, mp_image_t *mpi)


Define Documentation

#define ASMALIGN ( ZEROBITS   )     ".p2align " #ZEROBITS "\n\t"

#define MP_IMGFIELD_BOTTOM   0x10

Definition at line 113 of file mp_image.h.

#define MP_IMGFIELD_INTERLACED   0x20

Definition at line 114 of file mp_image.h.

#define MP_IMGFIELD_ORDERED   0x01

Definition at line 109 of file mp_image.h.

Referenced by analyze_plane(), and put_image().

#define MP_IMGFIELD_REPEAT_FIRST   0x04

Definition at line 111 of file mp_image.h.

Referenced by put_image().

#define MP_IMGFIELD_TOP   0x08

Definition at line 112 of file mp_image.h.

#define MP_IMGFIELD_TOP_FIRST   0x02

Definition at line 110 of file mp_image.h.

Referenced by analyze_plane(), and put_image().

#define MP_IMGFLAG_ACCEPT_ALIGNED_STRIDE   0x4

Definition at line 50 of file mp_image.h.

Referenced by vf_get_image().

#define MP_IMGFLAG_ACCEPT_STRIDE   0x10

Definition at line 54 of file mp_image.h.

Referenced by init(), and put_image().

#define MP_IMGFLAG_ACCEPT_WIDTH   0x20

Definition at line 56 of file mp_image.h.

#define MP_IMGFLAG_ALLOCATED   0x4000

Definition at line 84 of file mp_image.h.

Referenced by free_mp_image(), mp_image_alloc_planes(), and vf_get_image().

#define MP_IMGFLAG_COMMON_PLANE   0x80

Definition at line 61 of file mp_image.h.

#define MP_IMGFLAG_COMMON_STRIDE   0x40

Definition at line 59 of file mp_image.h.

#define MP_IMGFLAG_DIRECT   0x2000

Definition at line 82 of file mp_image.h.

Referenced by get_image(), put_image(), and vf_get_image().

#define MP_IMGFLAG_DRAW_CALLBACK   0x1000

Definition at line 80 of file mp_image.h.

Referenced by get_image(), put_image(), and vf_get_image().

#define MP_IMGFLAG_PLANAR   0x100

#define MP_IMGFLAG_PREFER_ALIGNED_STRIDE   0x8

Definition at line 52 of file mp_image.h.

Referenced by put_image(), and vf_get_image().

#define MP_IMGFLAG_PRESERVE   0x01

Definition at line 44 of file mp_image.h.

Referenced by end_frame(), get_image(), put_image(), and vf_next_put_image().

#define MP_IMGFLAG_READABLE   0x02

Definition at line 46 of file mp_image.h.

Referenced by end_frame(), get_image(), put_image(), and vf_get_image().

#define MP_IMGFLAG_RGB_PALETTE   0x800

Definition at line 73 of file mp_image.h.

Referenced by free_mp_image(), mp_image_alloc_planes(), and vf_get_image().

#define MP_IMGFLAG_SWAPPED   0x400

Definition at line 71 of file mp_image.h.

Referenced by mp_image_alloc_planes(), mp_image_setfmt(), vf_get_image(), and vf_mpi_clear().

#define MP_IMGFLAG_TYPE_DISPLAYED   0x8000

Definition at line 87 of file mp_image.h.

Referenced by vf_get_image().

#define MP_IMGFLAG_YUV   0x200

Definition at line 69 of file mp_image.h.

Referenced by mp_image_setfmt(), put_image(), vf_get_image(), and vf_mpi_clear().

#define MP_IMGFLAGMASK_COLORS   0xF00

Definition at line 75 of file mp_image.h.

Referenced by vf_get_image().

#define MP_IMGFLAGMASK_RESTRICTIONS   0xFF

Definition at line 63 of file mp_image.h.

Referenced by vf_get_image().

#define MP_IMGTYPE_EXPORT   0

Definition at line 91 of file mp_image.h.

Referenced by put_image(), and vf_get_image().

#define MP_IMGTYPE_INCOMPLETE   6

Definition at line 105 of file mp_image.h.

#define MP_IMGTYPE_IP   3

Definition at line 97 of file mp_image.h.

Referenced by put_image(), and vf_get_image().

#define MP_IMGTYPE_IPB   4

Definition at line 99 of file mp_image.h.

Referenced by get_image(), and vf_get_image().

#define MP_IMGTYPE_NUMBERED   5

Definition at line 101 of file mp_image.h.

Referenced by vf_get_image().

#define MP_IMGTYPE_STATIC   1

Definition at line 93 of file mp_image.h.

Referenced by get_image(), put_image(), and vf_get_image().

#define MP_IMGTYPE_TEMP   2

Definition at line 95 of file mp_image.h.

Referenced by config(), get_image(), put_image(), and vf_get_image().

#define MP_MAX_PLANES   4

Definition at line 107 of file mp_image.h.

Referenced by blur(), draw_slice(), and scale_image().


Typedef Documentation

typedef struct mp_image mp_image_t


Function Documentation

mp_image_t* alloc_mpi ( int  w,
int  h,
unsigned long int  fmt 
)

Definition at line 74 of file mp_image.c.

void copy_mpi ( mp_image_t dmpi,
mp_image_t mpi 
)

Definition at line 83 of file mp_image.c.

void free_mp_image ( mp_image_t mpi  ) 

Definition at line 190 of file mp_image.c.

Referenced by end_frame().

void mp_image_alloc_planes ( mp_image_t mpi  ) 

Definition at line 35 of file mp_image.c.

Referenced by alloc_mpi(), and vf_get_image().

void mp_image_setfmt ( mp_image_t mpi,
unsigned int  out_fmt 
)

Definition at line 98 of file mp_image.c.

Referenced by alloc_mpi(), end_frame(), and vf_get_image().

mp_image_t* new_mp_image ( int  w,
int  h 
)

Definition at line 181 of file mp_image.c.

Referenced by alloc_mpi(), end_frame(), and vf_get_image().


Generated on Fri Oct 26 02:39:48 2012 for FFmpeg by  doxygen 1.5.8