Changeset 80fde19dfe7b9e5875e0f891fe29aa0f6c0ec82e
- Timestamp:
- 12/24/06 15:18:21
(2 years ago)
- Author:
- Clément Stenac <zorglub@videolan.org>
- git-committer:
- Clément Stenac <zorglub@videolan.org> 1166969901 +0000
- git-parent:
[eedba76b51be5583dabed93222b570a8bc05cabe]
- git-author:
- Clément Stenac <zorglub@videolan.org> 1166969901 +0000
- Message:
More cleanup
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd3fe7f2 |
r80fde19 |
|
| 2311 | 2311 | static char *dvbsi_to_utf8( char *psz_instring, size_t i_length ) |
|---|
| 2312 | 2312 | { |
|---|
| 2313 | | char *psz_encoding, *psz_stringstart, *psz_outstring, *psz_tmp; |
|---|
| | 2313 | const char *psz_encoding; |
|---|
| | 2314 | char *psz_stringstart, *psz_outstring, *psz_tmp; |
|---|
| 2314 | 2315 | char psz_encbuf[12]; |
|---|
| 2315 | 2316 | size_t i_in, i_out; |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 119 | 119 | if( b_probe ) |
|---|
| 120 | 120 | { |
|---|
| 121 | | char * psz_expected = NULL; |
|---|
| 122 | | char * psz_real; |
|---|
| | 121 | const char * psz_expected = NULL; |
|---|
| | 122 | const char * psz_real; |
|---|
| 123 | 123 | |
|---|
| 124 | 124 | if( FrontendInfo( p_access ) < 0 ) |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 167 | 167 | * wma produces easily > 30000 samples... |
|---|
| 168 | 168 | *****************************************************************************/ |
|---|
| 169 | | aout_buffer_t *SplitBuffer( decoder_t *p_dec ) |
|---|
| | 169 | static aout_buffer_t *SplitBuffer( decoder_t *p_dec ) |
|---|
| 170 | 170 | { |
|---|
| 171 | 171 | decoder_sys_t *p_sys = p_dec->p_sys; |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 84 | 84 | "Trigger button for mouse gestures." ) |
|---|
| 85 | 85 | |
|---|
| 86 | | static char *button_list[] = { "left", "middle", "right" }; |
|---|
| 87 | | static char *button_list_text[] = { N_("Left"), N_("Middle"), N_("Right") }; |
|---|
| | 86 | static const char *button_list[] = { "left", "middle", "right" }; |
|---|
| | 87 | static const char *button_list_text[] = |
|---|
| | 88 | { N_("Left"), N_("Middle"), N_("Right") }; |
|---|
| 88 | 89 | |
|---|
| 89 | 90 | vlc_module_begin(); |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 659 | 659 | var_SetTime( p_input, "spu-delay", i_delay ); |
|---|
| 660 | 660 | ClearChannels( p_intf, p_vout ); |
|---|
| 661 | | vout_OSDMessage( p_intf, DEFAULT_CHAN, "Subtitle delay %i ms", |
|---|
| | 661 | vout_OSDMessage( p_intf, DEFAULT_CHAN, |
|---|
| | 662 | _( "Subtitle delay %i ms" ), |
|---|
| 662 | 663 | (int)(i_delay/1000) ); |
|---|
| 663 | 664 | } |
|---|
| … | … | |
| 668 | 669 | var_SetTime( p_input, "spu-delay", i_delay ); |
|---|
| 669 | 670 | ClearChannels( p_intf, p_vout ); |
|---|
| 670 | | vout_OSDMessage( p_intf, DEFAULT_CHAN, "Subtitle delay %i ms", |
|---|
| | 671 | vout_OSDMessage( p_intf, DEFAULT_CHAN, |
|---|
| | 672 | _( "Subtitle delay %i ms" ), |
|---|
| 671 | 673 | (int)(i_delay/1000) ); |
|---|
| 672 | 674 | } |
|---|
| … | … | |
| 677 | 679 | var_SetTime( p_input, "audio-delay", i_delay ); |
|---|
| 678 | 680 | ClearChannels( p_intf, p_vout ); |
|---|
| 679 | | vout_OSDMessage( p_intf, DEFAULT_CHAN, "Audio delay %i ms", |
|---|
| | 681 | vout_OSDMessage( p_intf, DEFAULT_CHAN, |
|---|
| | 682 | _( "Audio delay %i ms" ), |
|---|
| 680 | 683 | (int)(i_delay/1000) ); |
|---|
| 681 | 684 | } |
|---|
| … | … | |
| 686 | 689 | var_SetTime( p_input, "audio-delay", i_delay ); |
|---|
| 687 | 690 | ClearChannels( p_intf, p_vout ); |
|---|
| 688 | | vout_OSDMessage( p_intf, DEFAULT_CHAN, "Audio delay %i ms", |
|---|
| | 691 | vout_OSDMessage( p_intf, DEFAULT_CHAN, |
|---|
| | 692 | _( "Audio delay %i ms" ), |
|---|
| 689 | 693 | (int)(i_delay/1000) ); |
|---|
| 690 | 694 | } |
|---|
| … | … | |
| 789 | 793 | { |
|---|
| 790 | 794 | vlc_value_t val; |
|---|
| 791 | | int i; |
|---|
| 792 | 795 | char psz_bookmark_name[11]; |
|---|
| 793 | 796 | playlist_t *p_playlist = pl_Yield( p_intf ); |
|---|
| … | … | |
| 849 | 852 | { |
|---|
| 850 | 853 | secstotimestr( psz_duration, time.i_time / 1000000 ); |
|---|
| 851 | | vout_OSDMessage( p_input, POSITION_TEXT_CHAN, "%s / %s", |
|---|
| | 854 | vout_OSDMessage( p_input, POSITION_TEXT_CHAN, (char *) "%s / %s", |
|---|
| 852 | 855 | psz_time, psz_duration ); |
|---|
| 853 | 856 | } |
|---|
| … | … | |
| 881 | 884 | else |
|---|
| 882 | 885 | { |
|---|
| 883 | | vout_OSDMessage( p_vout, VOLUME_TEXT_CHAN, "Volume %d%%", |
|---|
| | 886 | vout_OSDMessage( p_vout, VOLUME_TEXT_CHAN, _( "Volume %d%%" ), |
|---|
| 884 | 887 | i_vol*400/AOUT_VOLUME_MAX ); |
|---|
| 885 | 888 | } |
|---|
| r60eb0b5 |
r80fde19 |
|
| 207 | 207 | |
|---|
| 208 | 208 | sprintf( dir, "%s%c%s", psz_dir, sep, psz_filename ); |
|---|
| 209 | | free( psz_filename ); |
|---|
| | 209 | free( (char*) psz_filename ); |
|---|
| 210 | 210 | |
|---|
| 211 | 211 | if( E_(ParseDirectory)( p_intf, psz_root, dir ) ) |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 151 | 151 | #define HIGH_THRESHOLD 100 |
|---|
| 152 | 152 | vout_thread_t *p_vout; |
|---|
| 153 | | char *psz_filter, *psz_type; |
|---|
| | 153 | const char *psz_filter, *psz_type; |
|---|
| 154 | 154 | vlc_bool_t b_change = VLC_FALSE; |
|---|
| 155 | 155 | |
|---|
| r4ab1c77 |
r80fde19 |
|
| 1182 | 1182 | || !strcmp( psz_cmd, "strack" ) ) |
|---|
| 1183 | 1183 | { |
|---|
| 1184 | | char *psz_variable; |
|---|
| | 1184 | const char *psz_variable; |
|---|
| 1185 | 1185 | vlc_value_t val_name; |
|---|
| 1186 | 1186 | int i_error; |
|---|
| … | … | |
| 1476 | 1476 | "logo-file\0" "logo-x\0" "logo-y\0" "logo-position\0" |
|---|
| 1477 | 1477 | "logo-transparency\0"; |
|---|
| 1478 | | const char *psz_name; |
|---|
| | 1478 | const char *psz_name = NULL; |
|---|
| 1479 | 1479 | |
|---|
| 1480 | 1480 | if( newval.psz_string ) |
|---|
| rc1acae6 |
r80fde19 |
|
| 270 | 270 | cl->buffer_write = NULL; |
|---|
| 271 | 271 | cl->p_buffer_write = cl->buffer_write; |
|---|
| 272 | | Write_message( cl, NULL, "Password: \xff\xfb\x01", WRITE_MODE_PWD ); |
|---|
| | 272 | Write_message( cl, NULL, |
|---|
| | 273 | _( "Password: \xff\xfb\x01" ), WRITE_MODE_PWD ); |
|---|
| 273 | 274 | |
|---|
| 274 | 275 | TAB_APPEND( p_sys->i_clients, p_sys->clients, cl ); |
|---|
| … | … | |
| 377 | 378 | if( cl->p_buffer_read - cl->buffer_read == 999 ) |
|---|
| 378 | 379 | { |
|---|
| 379 | | Write_message( cl, NULL, "Line too long\r\n", |
|---|
| | 380 | Write_message( cl, NULL, _( "Line too long\r\n" ), |
|---|
| 380 | 381 | cl->i_mode + 2 ); |
|---|
| 381 | 382 | } |
|---|
| … | … | |
| 407 | 408 | if( strcmp( psz_password, cl->buffer_read ) == 0 ) |
|---|
| 408 | 409 | { |
|---|
| 409 | | Write_message( cl, NULL, "\xff\xfc\x01\r\nWelcome, " |
|---|
| 410 | | "Master\r\n> ", WRITE_MODE_CMD ); |
|---|
| | 410 | Write_message( cl, NULL, _( "\xff\xfc\x01\r\nWelcome, " |
|---|
| | 411 | "Master\r\n> " ), WRITE_MODE_CMD ); |
|---|
| 411 | 412 | } |
|---|
| 412 | 413 | else |
|---|
| … | … | |
| 414 | 415 | /* wrong password */ |
|---|
| 415 | 416 | Write_message( cl, NULL, |
|---|
| 416 | | "\r\nWrong password.\r\nPassword: ", |
|---|
| | 417 | _( "\r\nWrong password.\r\nPassword: " ), |
|---|
| 417 | 418 | WRITE_MODE_PWD ); |
|---|
| 418 | 419 | } |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 1364 | 1364 | { |
|---|
| 1365 | 1365 | const guid_t *p_id; |
|---|
| 1366 | | char *psz_name; |
|---|
| | 1366 | const char *psz_name; |
|---|
| 1367 | 1367 | } ASF_ObjectDumpDebugInfo[] = |
|---|
| 1368 | 1368 | { |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 567 | 567 | { |
|---|
| 568 | 568 | vlc_fourcc_t i_fourcc; |
|---|
| 569 | | char *psz_type; |
|---|
| | 569 | const char *psz_type; |
|---|
| 570 | 570 | } AVI_strz_type[] = |
|---|
| 571 | 571 | { |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 83 | 83 | |
|---|
| 84 | 84 | #define MP4_READBOX_ENTER( MP4_Box_data_TYPE_t ) \ |
|---|
| 85 | | uint64_t i_read = p_box->i_size; \ |
|---|
| | 85 | int64_t i_read = p_box->i_size; \ |
|---|
| 86 | 86 | uint8_t *p_peek, *p_buff; \ |
|---|
| 87 | 87 | int i_actually_read; \ |
|---|
| … | … | |
| 91 | 91 | } \ |
|---|
| 92 | 92 | i_actually_read = stream_Read( p_stream, p_peek, i_read ); \ |
|---|
| 93 | | if( i_actually_read < 0 || (uint64_t)i_actually_read < i_read )\ |
|---|
| | 93 | if( i_actually_read < 0 || (int64_t)i_actually_read < i_read )\ |
|---|
| 94 | 94 | { \ |
|---|
| 95 | 95 | free( p_buff ); \ |
|---|
| … | … | |
| 2056 | 2056 | if( i_ret ) |
|---|
| 2057 | 2057 | { |
|---|
| 2058 | | char *psz_error; |
|---|
| | 2058 | const char *psz_error; |
|---|
| 2059 | 2059 | |
|---|
| 2060 | 2060 | switch( i_ret ) |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 389 | 389 | |
|---|
| 390 | 390 | ts_pid_t *pat; |
|---|
| 391 | | char *psz_mode; |
|---|
| | 391 | const char *psz_mode; |
|---|
| 392 | 392 | vlc_bool_t b_append; |
|---|
| 393 | 393 | vlc_bool_t b_topfield = VLC_FALSE; |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 30 | 30 | #include <vlc/vlc.h> |
|---|
| 31 | 31 | #include <vlc_aout.h> |
|---|
| | 32 | |
|---|
| | 33 | #include "dummy.h" |
|---|
| 32 | 34 | |
|---|
| 33 | 35 | #define FRAME_SIZE 2048 |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 48 | 48 | |
|---|
| 49 | 49 | #include <stdio.h> /* sprintf() */ |
|---|
| | 50 | |
|---|
| | 51 | #include "dummy.h" |
|---|
| 50 | 52 | |
|---|
| 51 | 53 | /***************************************************************************** |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 27 | 27 | #include <vlc/vlc.h> |
|---|
| 28 | 28 | #include <vlc_codec.h> |
|---|
| | 29 | #include "dummy.h" |
|---|
| 29 | 30 | |
|---|
| 30 | 31 | /***************************************************************************** |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 33 | 33 | #include <vlc_demux.h> |
|---|
| 34 | 34 | #include <vlc_playlist.h> |
|---|
| | 35 | |
|---|
| | 36 | #include "dummy.h" |
|---|
| 35 | 37 | |
|---|
| 36 | 38 | /***************************************************************************** |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 31 | 31 | #include <vlc_interface.h> |
|---|
| 32 | 32 | |
|---|
| | 33 | #include "dummy.h" |
|---|
| | 34 | |
|---|
| 33 | 35 | /***************************************************************************** |
|---|
| 34 | 36 | * Open: initialize dummy interface |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 27 | 27 | #include <vlc_filter.h> |
|---|
| 28 | 28 | |
|---|
| | 29 | #include "dummy.h" |
|---|
| | 30 | |
|---|
| 29 | 31 | static int RenderText( filter_t *, subpicture_region_t *, |
|---|
| 30 | 32 | subpicture_region_t * ); |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 34 | 34 | #define DUMMY_HEIGHT 16 |
|---|
| 35 | 35 | #define DUMMY_MAX_DIRECTBUFFERS 10 |
|---|
| | 36 | |
|---|
| | 37 | #include "dummy.h" |
|---|
| 36 | 38 | |
|---|
| 37 | 39 | /***************************************************************************** |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 106 | 106 | * Module descriptor |
|---|
| 107 | 107 | *****************************************************************************/ |
|---|
| 108 | | static char *mode_list[] = { "text", "html" |
|---|
| | 108 | static const char *mode_list[] = { "text", "html" |
|---|
| 109 | 109 | #ifdef HAVE_SYSLOG_H |
|---|
| 110 | 110 | ,"syslog" |
|---|
| 111 | 111 | #endif |
|---|
| 112 | 112 | }; |
|---|
| 113 | | static char *mode_list_text[] = { N_("Text"), "HTML" |
|---|
| | 113 | static const char *mode_list_text[] = { N_("Text"), "HTML" |
|---|
| 114 | 114 | #ifdef HAVE_SYSLOG_H |
|---|
| 115 | 115 | , "syslog" |
|---|
| r2cb472d |
r80fde19 |
|
| 60 | 60 | * csa_New: |
|---|
| 61 | 61 | *****************************************************************************/ |
|---|
| 62 | | csa_t *csa_New() |
|---|
| | 62 | csa_t *csa_New( void ) |
|---|
| 63 | 63 | { |
|---|
| 64 | 64 | csa_t *c = malloc( sizeof( csa_t ) ); |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 69 | 69 | mtime_t i_pts; |
|---|
| 70 | 70 | |
|---|
| 71 | | int i_frame_size, i_raw_blocks; |
|---|
| | 71 | int i_frame_size; |
|---|
| | 72 | unsigned int i_raw_blocks; |
|---|
| 72 | 73 | unsigned int i_channels; |
|---|
| 73 | 74 | unsigned int i_rate, i_frame_length, i_header_size; |
|---|
| rd3fe7f2 |
r80fde19 |
|
| 159 | 159 | { |
|---|
| 160 | 160 | /* by extension */ |
|---|
| 161 | | static struct { char *ext; char *mux; } exttomux[] = |
|---|
| | 161 | static struct { const char *ext; const char *mux; } exttomux[] = |
|---|
| 162 | 162 | { |
|---|
| 163 | 163 | { "avi", "avi" }, |
|---|
| rdfc8b3d |
r80fde19 |
|
| 138 | 138 | const uint8_t *p_inpix_v = p_inpic->p[V_PLANE].p_pixels; |
|---|
| 139 | 139 | const int i_src_pitch_u = p_inpic->p[U_PLANE].i_pitch; |
|---|
| 140 | | const int i_src_visible_u = p_inpic->p[U_PLANE].i_visible_pitch; |
|---|
| 141 | 140 | const int i_num_lines_u = p_inpic->p[U_PLANE].i_visible_lines; |
|---|
| 142 | 141 | |
|---|
| … | … | |
| 258 | 257 | break; |
|---|
| 259 | 258 | |
|---|
| 260 | | case2: |
|---|
| | 259 | case 2: |
|---|
| 261 | 260 | p_buf2[line*i_src_pitch+2*col] += diff; |
|---|
| 262 | 261 | p_buf2[line*i_src_pitch+2*col+1] += diff; |
|---|