Changeset ae6af36087215d55b3b05313d04e3b12ec5ccb4f
- Timestamp:
- 11/12/06 18:22:20
(2 years ago)
- Author:
- Derk-Jan Hartman <hartman@videolan.org>
- git-committer:
- Derk-Jan Hartman <hartman@videolan.org> 1165857740 +0000
- git-parent:
[94a01b369b1e70d554d87d29a09939aca1082a38]
- git-author:
- Derk-Jan Hartman <hartman@videolan.org> 1165857740 +0000
- Message:
* motion_detect: use playlist_Control's "lock" argument
* const string fixes
* make a couple of functions static
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r4e26c57 |
rae6af36 |
|
| 55 | 55 | 0x00FF0000, 0x00FF00FF, 0x00FFFF00, 0x0000FF00, 0x000000FF, 0x0000FFFF }; |
|---|
| 56 | 56 | |
|---|
| 57 | | static char *ppsz_color_descriptions[] = { |
|---|
| | 57 | static const char *ppsz_color_descriptions[] = { |
|---|
| 58 | 58 | N_("Red"), N_("Fuchsia"), N_("Yellow"), N_("Lime"), N_("Blue"), N_("Aqua") }; |
|---|
| 59 | 59 | |
|---|
| rd3fe7f2 |
rae6af36 |
|
| 114 | 114 | #define FILTER_CFG_PREFIX "sout-deinterlace-" |
|---|
| 115 | 115 | |
|---|
| 116 | | static char *mode_list[] = { "discard", "blend", "mean", "bob", "linear", "x" }; |
|---|
| 117 | | static char *mode_list_text[] = { N_("Discard"), N_("Blend"), N_("Mean"), |
|---|
| | 116 | static const char *mode_list[] = { "discard", "blend", "mean", "bob", "linear", "x" }; |
|---|
| | 117 | static const char *mode_list_text[] = { N_("Discard"), N_("Blend"), N_("Mean"), |
|---|
| 118 | 118 | N_("Bob"), N_("Linear"), "X" }; |
|---|
| 119 | 119 | |
|---|
| r9ce7298 |
rae6af36 |
|
| 65 | 65 | "\"gradient\" and \"edge\".") |
|---|
| 66 | 66 | |
|---|
| 67 | | static char *mode_list[] = { "gradient", "edge", "hough" }; |
|---|
| 68 | | static char *mode_list_text[] = { N_("Gradient"), N_("Edge"), N_("Hough") }; |
|---|
| | 67 | static const char *mode_list[] = { "gradient", "edge", "hough" }; |
|---|
| | 68 | static const char *mode_list_text[] = { N_("Gradient"), N_("Edge"), N_("Hough") }; |
|---|
| 69 | 69 | |
|---|
| 70 | 70 | #define FILTER_PREFIX "gradient-" |
|---|
| r8a26156 |
rae6af36 |
|
| 94 | 94 | |
|---|
| 95 | 95 | static int pi_pos_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 }; |
|---|
| 96 | | static char *ppsz_pos_descriptions[] = |
|---|
| | 96 | static const char *ppsz_pos_descriptions[] = |
|---|
| 97 | 97 | { N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"), |
|---|
| 98 | 98 | N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") }; |
|---|
| … | … | |
| 191 | 191 | *****************************************************************************/ |
|---|
| 192 | 192 | #define LoadLogoList( a, b ) __LoadLogoList( VLC_OBJECT( a ), b ) |
|---|
| 193 | | void __LoadLogoList( vlc_object_t *p_this, logo_list_t *p_logo_list ) |
|---|
| | 193 | static void __LoadLogoList( vlc_object_t *p_this, logo_list_t *p_logo_list ) |
|---|
| 194 | 194 | { |
|---|
| 195 | 195 | char *psz_list; /* the list: <logo>[,[<delay>[,[<alpha>]]]][;...] */ |
|---|
| … | … | |
| 264 | 264 | * FreeLogoList |
|---|
| 265 | 265 | *****************************************************************************/ |
|---|
| 266 | | void FreeLogoList( logo_list_t *p_logo_list ) |
|---|
| | 266 | static void FreeLogoList( logo_list_t *p_logo_list ) |
|---|
| 267 | 267 | { |
|---|
| 268 | 268 | unsigned int i; |
|---|
| r9ce7298 |
rae6af36 |
|
| 174 | 174 | |
|---|
| 175 | 175 | static int pi_pos_values[] = { 0, 1, 2 }; |
|---|
| 176 | | static char * ppsz_pos_descriptions[] = |
|---|
| | 176 | static const char * ppsz_pos_descriptions[] = |
|---|
| 177 | 177 | { N_("auto"), N_("fixed"), N_("offsets") }; |
|---|
| 178 | 178 | |
|---|
| 179 | 179 | static int pi_align_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 }; |
|---|
| 180 | | static char *ppsz_align_descriptions[] = |
|---|
| | 180 | static const char *ppsz_align_descriptions[] = |
|---|
| 181 | 181 | { N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"), |
|---|
| 182 | 182 | N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") }; |
|---|
| … | … | |
| 242 | 242 | * and set the corresponding struct filter_sys_t entries. |
|---|
| 243 | 243 | *****************************************************************************/ |
|---|
| 244 | | void mosaic_ParseSetOffsets( vlc_object_t *p_this, filter_sys_t *p_sys, char *psz_offsets ) |
|---|
| | 244 | static void mosaic_ParseSetOffsets( vlc_object_t *p_this, filter_sys_t *p_sys, char *psz_offsets ) |
|---|
| 245 | 245 | { |
|---|
| 246 | 246 | if( psz_offsets[0] != 0 ) |
|---|
| rd3fe7f2 |
rae6af36 |
|
| 409 | 409 | pp_curent_area->psz_mrl ); |
|---|
| 410 | 410 | playlist_Control( p_vout->p_sys->p_playlist, |
|---|
| 411 | | PLAYLIST_VIEWPLAY, NULL, p_item ); |
|---|
| | 411 | PLAYLIST_VIEWPLAY, VLC_TRUE, NULL, p_item ); |
|---|
| 412 | 412 | pp_curent_area->i_matches = 0; |
|---|
| 413 | 413 | } |
|---|
| r9ce7298 |
rae6af36 |
|
| 282 | 282 | #define SHUFFLE_WIDTH 81 |
|---|
| 283 | 283 | #define SHUFFLE_HEIGHT 13 |
|---|
| 284 | | static char *shuffle_button[] = |
|---|
| | 284 | static const char *shuffle_button[] = |
|---|
| 285 | 285 | { |
|---|
| 286 | 286 | ".................................................................................", |
|---|
| rd3fe7f2 |
rae6af36 |
|
| 61 | 61 | 0x00808000, 0x00008000, 0x00008080, 0x0000FF00, 0x00800080, |
|---|
| 62 | 62 | 0x00000080, 0x000000FF, 0x0000FFFF}; |
|---|
| 63 | | static char *ppsz_color_descriptions[] = { N_("Default"), N_("Black"), |
|---|
| | 63 | static const char *ppsz_color_descriptions[] = { N_("Default"), N_("Black"), |
|---|
| 64 | 64 | N_("Gray"), N_("Silver"), N_("White"), N_("Maroon"), N_("Red"), |
|---|
| 65 | 65 | N_("Fuchsia"), N_("Yellow"), N_("Olive"), N_("Green"), |
|---|
| … | … | |
| 157 | 157 | |
|---|
| 158 | 158 | static int pi_pos_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 }; |
|---|
| 159 | | static char *ppsz_pos_descriptions[] = |
|---|
| | 159 | static const char *ppsz_pos_descriptions[] = |
|---|
| 160 | 160 | { N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"), |
|---|
| 161 | 161 | N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") }; |
|---|
| … | … | |
| 506 | 506 | * download and resize image located at psz_url |
|---|
| 507 | 507 | ***************************************************************************/ |
|---|
| 508 | | picture_t *LoadImage( filter_t *p_filter, const char *psz_url ) |
|---|
| | 508 | static picture_t *LoadImage( filter_t *p_filter, const char *psz_url ) |
|---|
| 509 | 509 | { |
|---|
| 510 | 510 | filter_sys_t *p_sys = p_filter->p_sys; |
|---|
| … | … | |
| 552 | 552 | * string. |
|---|
| 553 | 553 | ***************************************************************************/ |
|---|
| 554 | | char *removeWhiteChars( char *psz_src ) |
|---|
| | 554 | static char *removeWhiteChars( char *psz_src ) |
|---|
| 555 | 555 | { |
|---|
| 556 | 556 | char *psz_src2 = strdup( psz_src ); |
|---|
| rd3fe7f2 |
rae6af36 |
|
| 58 | 58 | #define TYPE_LONGTEXT N_("One of '90', '180', '270', 'hflip' and 'vflip'") |
|---|
| 59 | 59 | |
|---|
| 60 | | static char *type_list[] = { "90", "180", "270", "hflip", "vflip" }; |
|---|
| 61 | | static char *type_list_text[] = { N_("Rotate by 90 degrees"), |
|---|
| | 60 | static const char *type_list[] = { "90", "180", "270", "hflip", "vflip" }; |
|---|
| | 61 | static const char *type_list_text[] = { N_("Rotate by 90 degrees"), |
|---|
| 62 | 62 | N_("Rotate by 180 degrees"), N_("Rotate by 270 degrees"), |
|---|
| 63 | 63 | N_("Flip horizontally"), N_("Flip vertically") }; |
|---|