|
Revision e445caad6168b072f9d3f525f3fef3af639f67e5, 1.7 kB
(checked in by Antoine Cellerier <dionoea@videolan.org>, 7 months ago)
|
Add picture specific alpha setting for mosaic pictures.
Add coordinates settings for mosaic pictures. (This kind of duplicates the --mosaic-offsets setting which I'm thinking about removing.)
|
- Property mode set to
100644
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
typedef struct bridged_es_t |
|---|
| 26 |
{ |
|---|
| 27 |
es_format_t fmt; |
|---|
| 28 |
picture_t *p_picture; |
|---|
| 29 |
picture_t **pp_last; |
|---|
| 30 |
bool b_empty; |
|---|
| 31 |
char *psz_id; |
|---|
| 32 |
|
|---|
| 33 |
int i_alpha; |
|---|
| 34 |
int i_x; |
|---|
| 35 |
int i_y; |
|---|
| 36 |
} bridged_es_t; |
|---|
| 37 |
|
|---|
| 38 |
typedef struct bridge_t |
|---|
| 39 |
{ |
|---|
| 40 |
bridged_es_t **pp_es; |
|---|
| 41 |
int i_es_num; |
|---|
| 42 |
} bridge_t; |
|---|
| 43 |
|
|---|
| 44 |
#define GetBridge(a) __GetBridge( VLC_OBJECT(a) ) |
|---|
| 45 |
static bridge_t *__GetBridge( vlc_object_t *p_object ) |
|---|
| 46 |
{ |
|---|
| 47 |
vlc_object_t *p_libvlc = VLC_OBJECT( p_object->p_libvlc ); |
|---|
| 48 |
vlc_value_t val; |
|---|
| 49 |
|
|---|
| 50 |
if( var_Get( p_libvlc, "mosaic-struct", &val ) != VLC_SUCCESS ) |
|---|
| 51 |
{ |
|---|
| 52 |
return NULL; |
|---|
| 53 |
} |
|---|
| 54 |
else |
|---|
| 55 |
{ |
|---|
| 56 |
return val.p_address; |
|---|
| 57 |
} |
|---|
| 58 |
} |
|---|
| 59 |
|
|---|