mirror of https://github.com/mpv-player/mpv
some typos fixed ;), added author to capabilites and extended name to 64 bytes. added interleaved uv planes support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4324 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a5a2bec673
commit
bb37a1a5ab
|
@ -40,7 +40,8 @@ extern void vixDestroy( void );
|
||||||
|
|
||||||
typedef struct vidix_capability_s
|
typedef struct vidix_capability_s
|
||||||
{
|
{
|
||||||
char name[32]; /* Driver name */
|
char name[64]; /* Driver name */
|
||||||
|
char author[64]; /* Author name */
|
||||||
#define TYPE_OUTPUT 0x00000000 /* Is a video playback device */
|
#define TYPE_OUTPUT 0x00000000 /* Is a video playback device */
|
||||||
#define TYPE_CAPTURE 0x00000001 /* Is a capture device */
|
#define TYPE_CAPTURE 0x00000001 /* Is a capture device */
|
||||||
#define TYPE_CODEC 0x00000002 /* Device supports hw (de)coding */
|
#define TYPE_CODEC 0x00000002 /* Device supports hw (de)coding */
|
||||||
|
@ -62,7 +63,7 @@ typedef struct vidix_capability_s
|
||||||
unsigned flags; /* Feature flags, see above */
|
unsigned flags; /* Feature flags, see above */
|
||||||
unsigned short vendor_id;
|
unsigned short vendor_id;
|
||||||
unsigned short device_id;
|
unsigned short device_id;
|
||||||
unsigned reserved[4];
|
unsigned reserved1[4];
|
||||||
}vidix_capability_t;
|
}vidix_capability_t;
|
||||||
|
|
||||||
/* Should fill at least type before init.
|
/* Should fill at least type before init.
|
||||||
|
@ -139,14 +140,18 @@ typedef struct vidix_playback_s
|
||||||
{
|
{
|
||||||
unsigned fourcc; /* app -> driver: movies's fourcc */
|
unsigned fourcc; /* app -> driver: movies's fourcc */
|
||||||
unsigned capability; /* app -> driver: what capability to use */
|
unsigned capability; /* app -> driver: what capability to use */
|
||||||
unsigned blend_factor; /* app -> driver: blenfing factor */
|
unsigned blend_factor; /* app -> driver: blending factor */
|
||||||
vidix_rect_t src; /* app -> driver: original movie size */
|
vidix_rect_t src; /* app -> driver: original movie size */
|
||||||
vidix_rect_t dest; /* app -> driver: destinition movie size. driver->app dest_pitch */
|
vidix_rect_t dest; /* app -> driver: destinition movie size. driver->app dest_pitch */
|
||||||
|
#define VID_PLAY_INTERLEAVED_UV 0x00000001 /* driver -> app: interleaved UV planes */
|
||||||
|
#define INTERLEAVING_UV 0x00001000 /* UVUVUVUVUV used by Matrox G200 */
|
||||||
|
#define INTERLEAVING_VU 0x00001001 /* VUVUVUVUVU */
|
||||||
|
int flags;
|
||||||
/* memory model */
|
/* memory model */
|
||||||
unsigned frame_size; /* driver -> app; destinition frame size */
|
unsigned frame_size; /* driver -> app: destinition frame size */
|
||||||
unsigned num_frames; /* app -> driver: after call: driver -> app */
|
unsigned num_frames; /* app -> driver: after call: driver -> app */
|
||||||
#define LVO_MAXFRAMES 32
|
#define VID_PLAY_MAXFRAMES 32
|
||||||
unsigned offsets[LVO_MAXFRAMES]; /* driver -> app */
|
unsigned offsets[VID_PLAY_MAXFRAMES]; /* driver -> app */
|
||||||
vidix_yuv_t offset; /* driver -> app: relative offsets within frame for yuv planes */
|
vidix_yuv_t offset; /* driver -> app: relative offsets within frame for yuv planes */
|
||||||
void* dga_addr; /* driver -> app: linear address */
|
void* dga_addr; /* driver -> app: linear address */
|
||||||
}vidix_playback_t;
|
}vidix_playback_t;
|
||||||
|
|
Loading…
Reference in New Issue