Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6013 in orxonox.OLD for branches/avi_play/src/lib


Ignore:
Timestamp:
Dec 10, 2005, 5:56:36 PM (19 years ago)
Author:
hdavid
Message:

branches/avi_play

Location:
branches/avi_play/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/avi_play/src/lib/graphics/importer/media_container.cc

    r6003 r6013  
    4040  av_register_all();
    4141
    42         current_frame = 0;
    43         num_frames = 0;
     42  current_frame = 0;
     43  num_frames = 0;
    4444
    4545  if (filename != NULL)
     
    5353MediaContainer::~MediaContainer()
    5454{
    55         //av_free(pFrameRGB);
     55  av_free(pFrameRGB);
    5656
    57         /* Free the frame */
     57  /* Free the frame */
    5858  av_free(frame);
    5959
     
    7878SDL_Surface* MediaContainer::getFrame(int frame_number)
    7979{
    80         SDL_Surface* frame;
    81        
     80  SDL_Surface* frame;
    8281
    83         return frame;
     82
     83  return frame;
    8484}
    8585
    8686SDL_Surface* MediaContainer::getNextFrame()
    8787{
    88         current_frame++;
    89         return this->getFrame(current_frame);
     88  current_frame++;
     89  return this->getFrame(current_frame);
    9090}
    9191
     
    9696    PRINTF(1)("Could not open %s\n", filename);
    9797
    98         /* Retrieve stream information */
     98  /* Retrieve stream information */
    9999  if (av_find_stream_info(format_context) < 0)
    100         PRINTF(1)("Could not find stream information in %s\n", filename);
     100    PRINTF(1)("Could not find stream information in %s\n", filename);
    101101
    102102  // Dump information about file onto standard error
     
    106106  video_stream = -1;
    107107  for(int i = 0; i < format_context->nb_streams; i++)
    108         {
    109                 // NOTE: different code for the 0.4.9-pre1 release of ffmpeg (tardis)
    110                 // if(format_context->streams[i]->codec.codec_type == CODEC_TYPE_VIDEO)         
    111         if(format_context->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO)
     108  {
     109    // NOTE: different code for the 0.4.9-pre1 release of ffmpeg (tardis)
     110    // if(format_context->streams[i]->codec.codec_type == CODEC_TYPE_VIDEO)             
     111    if(format_context->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO)
    112112    {
    113         video_stream = i;
     113      video_stream = i;
    114114      break;
    115115    }
    116         }
     116  }
    117117 
    118         if(video_stream == -1)
    119         PRINTF(1)("Could not find a video stream in %s\n", filename);
     118  if(video_stream == -1)
     119    PRINTF(1)("Could not find a video stream in %s\n", filename);
    120120
    121         /* Get a pointer to the codec context for the video stream */
    122         // NOTE: different code for the 0.4.9-pre1 release of ffmpeg (tardis)
    123         // codec_context = &format_context->streams[video_stream]->codec;
     121  /* Get a pointer to the codec context for the video stream */
     122  // NOTE: different code for the 0.4.9-pre1 release of ffmpeg (tardis)
     123  // codec_context = &format_context->streams[video_stream]->codec;
    124124  codec_context = format_context->streams[video_stream]->codec;
    125125
    126         /* Find the decoder for the video stream */
     126  /* Find the decoder for the video stream */
    127127  codec = avcodec_find_decoder(codec_context->codec_id);
    128128  if (codec == NULL)
    129         PRINTF(1)("Could not find codec\n");
     129    PRINTF(1)("Could not find codec\n");
    130130
    131         /* Open codec */
     131  /* Open codec */
    132132  if (avcodec_open(codec_context, codec) < 0)
    133                 PRINTF(1)("Could not open codec\n");
    134 
    135        
     133    PRINTF(1)("Could not open codec\n");       
    136134
    137135}
  • branches/avi_play/src/lib/sound/sound_engine.cc

    r6003 r6013  
    294294  ALCchar deviceName[] =
    295295#endif
     296
    296297#ifdef __WIN32__
    297298      "Direct3D";
Note: See TracChangeset for help on using the changeset viewer.