Mercurial > mplayer.hg
comparison libmpcodecs/mp_image.h @ 28956:6d0da4fd4544
Allow to use vdpau temporal deinterlacers with hardware accelerated decoding.
author | cehoyos |
---|---|
date | Wed, 18 Mar 2009 17:02:29 +0000 |
parents | bc49856e5024 |
children | 5cb79ad246f2 |
comparison
equal
deleted
inserted
replaced
28955:ee06f3a8b0d5 | 28956:6d0da4fd4544 |
---|---|
52 // set if buffer is allocated (used in destination images): | 52 // set if buffer is allocated (used in destination images): |
53 #define MP_IMGFLAG_ALLOCATED 0x4000 | 53 #define MP_IMGFLAG_ALLOCATED 0x4000 |
54 | 54 |
55 // buffer type was printed (do NOT set this flag - it's for INTERNAL USE!!!) | 55 // buffer type was printed (do NOT set this flag - it's for INTERNAL USE!!!) |
56 #define MP_IMGFLAG_TYPE_DISPLAYED 0x8000 | 56 #define MP_IMGFLAG_TYPE_DISPLAYED 0x8000 |
57 // set if it can not be reused yet (for MP_IMGTYPE_NUMBERED) | |
58 #define MP_IMGFLAG_IN_USE 0x10000 | |
59 | 57 |
60 // codec doesn't support any form of direct rendering - it has own buffer | 58 // codec doesn't support any form of direct rendering - it has own buffer |
61 // allocation. so we just export its buffer pointers: | 59 // allocation. so we just export its buffer pointers: |
62 #define MP_IMGTYPE_EXPORT 0 | 60 #define MP_IMGTYPE_EXPORT 0 |
63 // codec requires a static WO buffer, but it does only partial updates later: | 61 // codec requires a static WO buffer, but it does only partial updates later: |
99 /* these are only used by planar formats Y,U(Cb),V(Cr) */ | 97 /* these are only used by planar formats Y,U(Cb),V(Cr) */ |
100 int chroma_width; | 98 int chroma_width; |
101 int chroma_height; | 99 int chroma_height; |
102 int chroma_x_shift; // horizontal | 100 int chroma_x_shift; // horizontal |
103 int chroma_y_shift; // vertical | 101 int chroma_y_shift; // vertical |
102 int usage_count; | |
104 /* for private use by filter or vo driver (to store buffer id or dmpi) */ | 103 /* for private use by filter or vo driver (to store buffer id or dmpi) */ |
105 void* priv; | 104 void* priv; |
106 } mp_image_t; | 105 } mp_image_t; |
107 | 106 |
108 #ifdef IMGFMT_YUY2 | 107 #ifdef IMGFMT_YUY2 |