Changeset 3a6f1b598c7c31dc8171479cce28f8ca12aeb9b7
- Timestamp:
- 05/20/08 10:23:05
(4 months ago)
- Author:
- Antoine Cellerier <dionoea@videolan.org>
- git-committer:
- Antoine Cellerier <dionoea@videolan.org> 1211271785 +0200
- git-parent:
[b26f5a25af04ccca0d539d0711f5ff9316064641]
- git-author:
- Antoine Cellerier <dionoea@videolan.org> 1211183563 +0200
- Message:
Cosmetics.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r6300760 |
r3a6f1b5 |
|
| 87 | 87 | vlc_mutex_t lock; |
|---|
| 88 | 88 | vlc_cond_t cond; |
|---|
| 89 | | bool b_work, b_done; |
|---|
| | 89 | bool b_work, b_done; |
|---|
| 90 | 90 | }; |
|---|
| 91 | 91 | |
|---|
| … | … | |
| 113 | 113 | mtime_t i_buggy_pts_detect; |
|---|
| 114 | 114 | mtime_t i_last_pts; |
|---|
| 115 | | bool b_inited; |
|---|
| | 115 | bool b_inited; |
|---|
| 116 | 116 | |
|---|
| 117 | 117 | /* |
|---|
| … | … | |
| 129 | 129 | int i_qmax; |
|---|
| 130 | 130 | int i_hq; |
|---|
| 131 | | bool b_strict_rc; |
|---|
| | 131 | bool b_strict_rc; |
|---|
| 132 | 132 | int i_rc_buffer_size; |
|---|
| 133 | 133 | float f_rc_buffer_aggressivity; |
|---|
| 134 | | bool b_pre_me; |
|---|
| 135 | | bool b_hurry_up; |
|---|
| 136 | | bool b_interlace, b_interlace_me; |
|---|
| | 134 | bool b_pre_me; |
|---|
| | 135 | bool b_hurry_up; |
|---|
| | 136 | bool b_interlace, b_interlace_me; |
|---|
| 137 | 137 | float f_i_quant_factor; |
|---|
| 138 | 138 | int i_noise_reduction; |
|---|
| 139 | | bool b_mpeg4_matrix; |
|---|
| 140 | | bool b_trellis; |
|---|
| | 139 | bool b_mpeg4_matrix; |
|---|
| | 140 | bool b_trellis; |
|---|
| 141 | 141 | int i_quality; /* for VBR */ |
|---|
| 142 | 142 | float f_lumi_masking, f_dark_masking, f_p_masking, f_border_masking; |
|---|
| … | … | |
| 156 | 156 | "trellis", "qscale", "strict", "lumi-masking", "dark-masking", |
|---|
| 157 | 157 | "p-masking", "border-masking", "luma-elim-threshold", |
|---|
| 158 | | "chroma-elim-threshold", |
|---|
| | 158 | "chroma-elim-threshold", |
|---|
| 159 | 159 | #if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+4) |
|---|
| 160 | | "aac-profile", |
|---|
| | 160 | "aac-profile", |
|---|
| 161 | 161 | #endif |
|---|
| 162 | 162 | NULL |
|---|
| … | … | |
| 238 | 238 | |
|---|
| 239 | 239 | /* Initialization must be done before avcodec_find_encoder() */ |
|---|
| 240 | | InitLibavcodec(p_this); |
|---|
| | 240 | InitLibavcodec( p_this ); |
|---|
| 241 | 241 | |
|---|
| 242 | 242 | p_codec = avcodec_find_encoder( i_codec_id ); |
|---|
| … | … | |
| 530 | 530 | p_context->bit_rate_tolerance = p_sys->i_vtolerance; |
|---|
| 531 | 531 | |
|---|
| 532 | | /* usually if someone sets bitrate, he likes more to get that bitrate over quality |
|---|
| 533 | | * should help 'normal' user to get asked bitrate |
|---|
| | 532 | /* usually if someone sets bitrate, he likes more to get that bitrate |
|---|
| | 533 | * over quality should help 'normal' user to get asked bitrate |
|---|
| 534 | 534 | */ |
|---|
| 535 | 535 | if( p_enc->fmt_out.i_bitrate > 0 && p_sys->i_qmax == 0 && p_sys->i_qmin == 0 ) |
|---|
| … | … | |
| 656 | 656 | vlc_mutex_unlock( lock ); |
|---|
| 657 | 657 | msg_Err( p_enc, "cannot open encoder" ); |
|---|
| 658 | | intf_UserFatal( p_enc, false, _("Streaming / Transcoding failed"), |
|---|
| | 658 | intf_UserFatal( p_enc, false, |
|---|
| | 659 | _("Streaming / Transcoding failed"), |
|---|
| 659 | 660 | _("VLC could not open the encoder.") ); |
|---|
| 660 | 661 | free( p_sys ); |
|---|
| … | … | |
| 1022 | 1023 | } |
|---|
| 1023 | 1024 | |
|---|
| 1024 | | i_out = avcodec_encode_audio( p_sys->p_context, (uint8_t *)p_sys->p_buffer_out, |
|---|
| | 1025 | i_out = avcodec_encode_audio( p_sys->p_context, |
|---|
| | 1026 | (uint8_t *)p_sys->p_buffer_out, |
|---|
| 1025 | 1027 | 2 * AVCODEC_MAX_AUDIO_FRAME_SIZE, |
|---|
| 1026 | 1028 | p_samples ); |
|---|