~ubuntu-branches/ubuntu/hardy/avidemux/hardy

« back to all changes in this revision

Viewing changes to avidemux/mpeg2enc/mpeg2enc_if.cc

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2006-12-15 17:13:20 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20061215171320-w79pvpehxx2fr217
Tags: 1:2.3.0-0.0ubuntu1
* Merge from debian-multimedia.org, remaining Ubuntu change:
  - desktop file,
  - no support for ccache and make -j.
* Closes Ubuntu: #69614.

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
 
181
181
 
182
182
 
183
 
        aprintf("Encoding MPEG-%d video \n",param->mpeg);
184
 
        aprintf("Horizontal size: %d pe \nl",opt->horizontal_size);
185
 
        aprintf("Vertical size: %d pel \n",opt->vertical_size);
186
 
        aprintf("Aspect ratio code: %d = %s \n",
 
183
        aprintf("[mpeg2enc]Encoding MPEG-%d video \n",param->mpeg);
 
184
        aprintf("[mpeg2enc]Horizontal size: %d pe \nl",opt->horizontal_size);
 
185
        aprintf("[mpeg2enc]Vertical size: %d pel \n",opt->vertical_size);
 
186
        aprintf("[mpeg2enc]Aspect ratio code: %d = %s \n",
187
187
                        param->aspect_ratio,
188
188
                        mpeg_aspect_code_definition(param->mpeg,param->aspect_ratio));
189
 
        aprintf("Frame rate code:   %d = %s \n",
 
189
        aprintf("[mpeg2enc]Frame rate code:   %d = %s \n",
190
190
                        param->frame_rate,
191
191
                        mpeg_framerate_code_definition(param->frame_rate));
192
192
 
193
193
        if(param->bitrate)
194
 
                aprintf("Bitrate: %d KBit/s \n",param->bitrate/1000);
 
194
          aprintf("[mpeg2enc]Bitrate: %d KBit/s \n",param->bitrate/1000);
195
195
        else
196
 
                aprintf( "Bitrate: VCD \n");
 
196
          aprintf( "[mpeg2enc]Bitrate: VCD \n");
197
197
        if(param->quant)
198
 
                aprintf("Quality factor: %d (Quantisation = %d) (1=best, 31=worst) \n",
 
198
          aprintf("[mpeg2enc]Quality factor: %d (Quantisation = %d) (1=best, 31=worst) \n",
199
199
                   param->quant,
200
200
                   (int)(inv_scale_quant( param->mpeg == 1 ? 0 : 1,
201
201
                                          param->quant))
202
202
            );
203
203
 
204
 
        aprintf("Field order for input: %s \n",
 
204
        aprintf("[mpeg2enc]Field order for input: %s \n",
205
205
                           mpeg_interlace_code_definition(param->input_interlacing) );
206
206
 
207
207
        if( param->seq_length_limit )
208
208
        {
209
 
                aprintf( "New Sequence every %d Mbytes \n", param->seq_length_limit );
210
 
                aprintf( "Assuming non-video stream of %d Kbps \n", param->nonvid_bitrate );
 
209
          aprintf( "[mpeg2enc]New Sequence every %d Mbytes \n", param->seq_length_limit );
 
210
          aprintf( "[mpeg2enc]Assuming non-video stream of %d Kbps \n", param->nonvid_bitrate );
211
211
        }
212
212
        else
213
 
                aprintf( "Sequence unlimited length \n" );
 
213
          aprintf( "[mpeg2enc]Sequence unlimited length \n" );
214
214
 
215
 
        aprintf("Search radius: %d \n",param->searchrad);
 
215
        aprintf("[mpeg2enc]Search radius: %d \n",param->searchrad);
216
216
 
217
217
        /* set params */
218
218
        init_mpeg_parms(param,opt);
275
275
}
276
276
int mpegenc_end(void)
277
277
{
 
278
  uint8_t out[20]; // Temporary buffer to store SEQ_END_CODE
 
279
         mpeg2enc_buffer=(unsigned char *)out;
278
280
         putseq_end();
279
281
         mpeg_cleanup(  );
280
282
         mpeg_freebuffers();