- Timestamp:
- 03/04/09 12:59:15 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp
r9856 r9857 19 19 m_user_data(0), 20 20 m_publish_func(0), 21 m_exit(false), 22 m_swscale_ctx(0) 21 m_exit(false) 22 #ifdef USE_SWSCALE 23 ,m_swscale_ctx(0) 24 #endif 23 25 { 24 26 … … 35 37 } 36 38 39 #ifdef USE_SWSCALE 37 40 if (m_swscale_ctx) 38 41 { … … 40 43 m_swscale_ctx = 0; 41 44 } 45 #endif 42 46 } 43 47 … … 220 224 } 221 225 226 osg::notify(osg::NOTICE)<<"Using sws_scale"<<std::endl; 227 222 228 return sws_scale(m_swscale_ctx, 223 229 src->data, src->linesize, 0, src_height, 224 230 dst->data, dst->linesize); 225 231 #else 226 return im_convert(dst, dst_pix_fmt, src, 227 src_pix_fmt, src_width, src_height) 232 osg::notify(osg::NOTICE)<<"Using img_convert"<<std::endl; 233 234 return img_convert(dst, dst_pix_fmt, src, 235 src_pix_fmt, src_width, src_height); 228 236 #endif 229 237 }
