comparison libmpcodecs/mp_image.h @ 6759:415be01747ae

added 'priv' field to mpi - requires for tracking frames with different decoding-displaying order (IPB)
author arpi
date Sat, 20 Jul 2002 16:26:49 +0000
parents 3f0c724dac75
children 713182435a76
comparison
equal deleted inserted replaced
6758:ecc71f27bfd7 6759:415be01747ae
58 /* these are only used by planar formats Y,U(Cb),V(Cr) */ 58 /* these are only used by planar formats Y,U(Cb),V(Cr) */
59 int chroma_width; 59 int chroma_width;
60 int chroma_height; 60 int chroma_height;
61 int chroma_x_shift; // horizontal 61 int chroma_x_shift; // horizontal
62 int chroma_y_shift; // vertical 62 int chroma_y_shift; // vertical
63 /* for private use by filter or vo driver (to store buffer id or dmpi) */
64 void* priv;
63 } mp_image_t; 65 } mp_image_t;
64 66
65 #ifdef IMGFMT_YUY2 67 #ifdef IMGFMT_YUY2
66 static inline void mp_image_setfmt(mp_image_t* mpi,unsigned int out_fmt){ 68 static inline void mp_image_setfmt(mp_image_t* mpi,unsigned int out_fmt){
67 mpi->flags&=~(MP_IMGFLAG_PLANAR|MP_IMGFLAG_YUV|MP_IMGFLAG_SWAPPED); 69 mpi->flags&=~(MP_IMGFLAG_PLANAR|MP_IMGFLAG_YUV|MP_IMGFLAG_SWAPPED);