annotate libmpcodecs/vfcap.h @ 25957:0a3b2b2cc1c3

Implement test for system byteswap.h header file. The result of this check is required by libavutil library. If it is not defined the library would try to implement its own byte swapping routines in bswap.h . As the routines are with same names, if included, the system definition would replace the function names with the macros. The result can not be compiled and looks like this: # 42 "../libavutil/bswap.h" -static av_always_inline uint16_t bswap_16(uint16_t x) +static __attribute__((always_inline)) inline uint16_t (__extension__ ({ register unsigned short int __v, __x = (uint16_t x); if (__builtin_constant_p (__x)) __v = ((((__x) >> 8) & 0xff) | (((__x) & 0xff) << 8)); else __asm__ ("rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; }))
author iive
date Tue, 12 Feb 2008 21:10:13 +0000
parents 6ac1ece1f9fe
children 4129c8cfa742
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5564
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
1 // VFCAP_* values: they are flags, returned by query_format():
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
2
25553
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 23134
diff changeset
3 #ifndef VFCAP_H
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 23134
diff changeset
4 #define VFCAP_H
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 23134
diff changeset
5
5564
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
6 // set, if the given colorspace is supported (with or without conversion)
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
7 #define VFCAP_CSP_SUPPORTED 0x1
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
8 // set, if the given colorspace is supported _without_ conversion
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
9 #define VFCAP_CSP_SUPPORTED_BY_HW 0x2
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
10 // set if the driver/filter can draw OSD
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
11 #define VFCAP_OSD 0x4
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
12 // set if the driver/filter can handle compressed SPU stream
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
13 #define VFCAP_SPU 0x8
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
14 // scaling up/down by hardware, or software:
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
15 #define VFCAP_HWSCALE_UP 0x10
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
16 #define VFCAP_HWSCALE_DOWN 0x20
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
17 #define VFCAP_SWSCALE 0x40
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
18 // driver/filter can do vertical flip (upside-down)
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
19 #define VFCAP_FLIP 0x80
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
20
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
21 // driver/hardware handles timing (blocking)
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
22 #define VFCAP_TIMER 0x100
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
23 // driver _always_ flip image upside-down (for ve_vfw)
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
24 #define VFCAP_FLIPPED 0x200
7687
a9a19a991a70 support for VFCAP_ACCEPT_STRIDE in vo drivers
arpi
parents: 7686
diff changeset
25 // vf filter: accepts stride (put_image)
a9a19a991a70 support for VFCAP_ACCEPT_STRIDE in vo drivers
arpi
parents: 7686
diff changeset
26 // vo driver: has draw_slice() support for the given csp
5564
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
27 #define VFCAP_ACCEPT_STRIDE 0x400
7686
4fa4e58587c2 VFCAP_DRAW_SLICE added
arpi
parents: 5564
diff changeset
28 // filter does postprocessing (so you shouldn't scale/filter image before it)
5564
efe856039f8f VFCAP defines moved out from vf.h, to be easier to include in libvo
arpi
parents:
diff changeset
29 #define VFCAP_POSTPROC 0x800
14878
5723c4b2a2ea fixes for encoding of multiple files
henry
parents: 7687
diff changeset
30 // filter cannot be reconfigured to different size & format
5723c4b2a2ea fixes for encoding of multiple files
henry
parents: 7687
diff changeset
31 #define VFCAP_CONSTANT 0x1000
18937
9e95ac641e77 Initial libass release (without mencoder support).
eugeni
parents: 14878
diff changeset
32 // filter can draw EOSD
9e95ac641e77 Initial libass release (without mencoder support).
eugeni
parents: 14878
diff changeset
33 #define VFCAP_EOSD 0x2000
23134
1de2a46a0987 Add -ass-hinting option for setting font hinting method.
eugeni
parents: 18937
diff changeset
34 // filter will draw EOSD at screen resolution (without scaling)
1de2a46a0987 Add -ass-hinting option for setting font hinting method.
eugeni
parents: 18937
diff changeset
35 #define VFCAP_EOSD_UNSCALED 0x4000
25553
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 23134
diff changeset
36
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 23134
diff changeset
37 #endif /* VFCAP_H */