- Timestamp:
- Dec 30, 2005, 1:36:40 PM (19 years ago)
- Location:
- branches/avi_play/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/graphics/importer/media_container.cc
r6339 r6350 142 142 void MediaContainer::loadFrames() 143 143 { 144 // empty texture list 145 this->clearLists(); 146 144 147 // go to the begin of the video 145 148 av_seek_frame(format_context, video_stream, 0, AVSEEK_FLAG_BACKWARD); … … 152 155 GLuint MediaContainer::getNextFrame() 153 156 { 157 //if (glIsTexture(texture)) 158 // glDeleteTextures(1, &texture); 159 154 160 // get next frame 155 161 if(av_read_frame(format_context, &packet) >= 0) -
branches/avi_play/src/lib/graphics/importer/texture_sequence.cc
r6339 r6350 47 47 TextureSequence::~TextureSequence() 48 48 { 49 this->clearLists(); 50 } 51 52 void TextureSequence::clearLists() 53 { 49 54 // delete all images 50 55 while(!this->images.empty()) … … 54 59 } 55 60 56 this->setTexture(0);57 61 // delete all textures. 58 62 while(!this->textures.empty()) … … 63 67 } 64 68 } 65 66 69 67 70 /** -
branches/avi_play/src/lib/graphics/importer/texture_sequence.h
r6339 r6350 31 31 bool addFrame(GLuint texture); 32 32 33 void clearLists(); 34 33 35 virtual bool rebuild(); 34 36 -
branches/avi_play/src/subprojects/importer/multitex.cc
r6339 r6350 74 74 obj = new PrimitiveModel(PRIM_PLANE, 10.0); 75 75 break; 76 case SDLK_5: 77 media_container->loadFrames(); 78 counter = 0; 79 timer = 0; 80 PRINTF(0)("total_frames: %i\n", media_container->getFrameCount()); 81 SDL_Delay(1000); 82 break; 76 83 // increase fps 77 84 case SDLK_9: … … 101 108 timer = 0; 102 109 counter = 0; 110 PRINTF(0)("BEGIN\n"); 103 111 } 104 112 }
Note: See TracChangeset
for help on using the changeset viewer.