Changeset 9960
- Timestamp:
- 03/23/09 17:45:10 (4 years ago)
- Location:
- OpenSceneGraph/trunk/src/osgPlugins/ffmpeg
- Files:
-
- 2 modified
-
FFmpegDecoderVideo.cpp (modified) (4 diffs)
-
FFmpegDecoderVideo.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp
r9933 r9960 234 234 } 235 235 236 int FFmpegDecoderVideo::convert(AVPicture *dst, int dst_pix_fmt, constAVPicture *src,236 int FFmpegDecoderVideo::convert(AVPicture *dst, int dst_pix_fmt, AVPicture *src, 237 237 int src_pix_fmt, int src_width, int src_height) 238 238 { … … 248 248 249 249 osg::notify(osg::INFO)<<"Using sws_scale "; 250 250 251 251 int result = sws_scale(m_swscale_ctx, 252 ( const uint8_t**)(src->data), (src->linesize), 0, src_height,252 (src->data), (src->linesize), 0, src_height, 253 253 (dst->data), (dst->linesize)); 254 254 #else … … 277 277 return; 278 278 279 const AVPicture * const src = (constAVPicture *) m_frame.get();279 AVPicture * const src = (AVPicture *) m_frame.get(); 280 280 AVPicture * const dst = (AVPicture *) m_frame_rgba.get(); 281 281 … … 313 313 314 314 315 void FFmpegDecoderVideo::yuva420pToRgba(AVPicture * const dst, constAVPicture * const src, int width, int height)315 void FFmpegDecoderVideo::yuva420pToRgba(AVPicture * const dst, AVPicture * const src, int width, int height) 316 316 { 317 317 convert(dst, PIX_FMT_RGB32, src, m_context->pix_fmt, width, height); -
OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.hpp
r9910 r9960 88 88 void publishFrame(double delay); 89 89 double synchronizeVideo(double pts); 90 void yuva420pToRgba(AVPicture *dst, constAVPicture *src, int width, int height);90 void yuva420pToRgba(AVPicture *dst, AVPicture *src, int width, int height); 91 91 92 int convert(AVPicture *dst, int dst_pix_fmt, constAVPicture *src,92 int convert(AVPicture *dst, int dst_pix_fmt, AVPicture *src, 93 93 int src_pix_fmt, int src_width, int src_height); 94 94
