Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6013 in orxonox.OLD


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

branches/avi_play

Location:
branches/avi_play
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/avi_play/configure.ac

    r6003 r6013  
    665665        echo "------------------"
    666666        echo "avformat library not found."
    667         echo "please install the FFmpeg library, which can be found at http://ffmpeg.sourceforge.new"
    668         echo "------------------"
    669         exit -1
    670      fi
    671         AC_CHECK_LIB([avcodec], [main], [FOUND_avcodec=yes; LIBS="$LIBS -lavcodec"])
     667        echo "please install the FFmpeg library, which can be found at http://ffmpeg.sourceforge.net"
     668        echo "------------------"
     669        exit -1
     670     fi
     671  AC_CHECK_LIB([avcodec], [main], [FOUND_avcodec=yes; LIBS="$LIBS -lavcodec"])
    672672     if test x$FOUND_avcodec != xyes ; then
    673673        echo "------------------"
    674674        echo "avcodec library not found."
    675         echo "please install the FFmpeg library, which can be found at http://ffmpeg.sourceforge.new"
     675        echo "please install the FFmpeg library, which can be found at http://ffmpeg.sourceforge.net"
     676        echo "------------------"
     677        exit -1
     678     fi
     679  AC_CHECK_LIB([avutil], [main], [FOUND_avutil=yes; LIBS="$LIBS -lavutil"])
     680     if test x$FOUND_avutil != xyes ; then
     681        echo "------------------"
     682        echo "avutil library not found."
     683        echo "please install the FFmpeg library, which can be found at http://ffmpeg.sourceforge.net"
     684        echo "------------------"
     685        exit -1
     686     fi
     687  AC_CHECK_LIB([dts], [main], [FOUND_dts=yes; LIBS="$LIBS -ldts"])
     688     if test x$FOUND_dts != xyes ; then
     689        echo "------------------"
     690        echo "dts library not found."
     691        echo "please install the FFmpeg library, which can be found at http://ffmpeg.sourceforge.net"
    676692        echo "------------------"
    677693        exit -1
  • 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";
  • branches/avi_play/src/subprojects/importer/importer.cc

    r6003 r6013  
    3131void Framework::moduleInit(int argc, char** argv)
    3232{
    33         //MediaContainer* test;
     33  MediaContainer* test;
    3434       
    35         //test = new MediaContainer(argv[1]);   
     35  test = new MediaContainer(argv[1]);   
    3636
    3737
  • branches/avi_play/src/subprojects/importer/multitex.cc

    r6003 r6013  
    7474        {
    7575        case SDLK_1:
    76                                         obj = new PrimitiveModel(PRIM_CUBE, 10.0);
     76          obj = new PrimitiveModel(PRIM_CUBE, 10.0);
    7777          break;
    78                                 case SDLK_2:
    79                                         obj = new PrimitiveModel(PRIM_SPHERE, 10.0);
     78        case SDLK_2:
     79          obj = new PrimitiveModel(PRIM_SPHERE, 10.0);
    8080          break;
    81                                 case SDLK_3:
    82                                         obj = new PrimitiveModel(PRIM_PLANE, 10.0);
     81        case SDLK_3:
     82          obj = new PrimitiveModel(PRIM_PLANE, 10.0);
    8383          break;
    8484        }
Note: See TracChangeset for help on using the changeset viewer.