- Timestamp:
- 03/04/09 12:05:55 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.hpp
r9840 r9854 90 90 void yuva420pToRgba(AVPicture *dst, const AVPicture *src, int width, int height); 91 91 92 int convert(AVPicture *dst, int dst_pix_fmt, const AVPicture *src, 93 int src_pix_fmt, int src_width, int src_height); 94 95 92 96 static int getBuffer(AVCodecContext * context, AVFrame * picture); 93 97 static void releaseBuffer(AVCodecContext * context, AVFrame * picture); 94 98 95 PacketQueue & m_packets;96 FFmpegClocks & m_clocks;97 AVStream * m_stream;98 AVCodecContext * m_context;99 AVCodec * m_codec;100 const uint8_t * m_packet_data;101 int m_bytes_remaining;102 int64_t m_packet_pts;99 PacketQueue & m_packets; 100 FFmpegClocks & m_clocks; 101 AVStream * m_stream; 102 AVCodecContext * m_context; 103 AVCodec * m_codec; 104 const uint8_t * m_packet_data; 105 int m_bytes_remaining; 106 int64_t m_packet_pts; 103 107 104 FramePtr m_frame;105 FramePtr m_frame_rgba;106 Buffer m_buffer_rgba;107 Buffer m_buffer_rgba_public;108 FramePtr m_frame; 109 FramePtr m_frame_rgba; 110 Buffer m_buffer_rgba; 111 Buffer m_buffer_rgba_public; 108 112 109 void * m_user_data;110 PublishFunc m_publish_func;113 void * m_user_data; 114 PublishFunc m_publish_func; 111 115 112 double m_frame_rate;113 double m_aspect_ratio;114 int m_width;115 int m_height;116 size_t m_next_frame_index;117 bool m_alpha_channel;116 double m_frame_rate; 117 double m_aspect_ratio; 118 int m_width; 119 int m_height; 120 size_t m_next_frame_index; 121 bool m_alpha_channel; 118 122 119 volatile bool m_exit; 123 volatile bool m_exit; 124 125 #if USE_SWSCALE 126 struct SwsContext * m_swscale_ctx; 127 #endif 120 128 }; 121 129
