| | |
| | | ~cvbridge(); |
| | | |
| | | public: |
| | | bool copyPicture(uint8_t *out, AVFrame *in); |
| | | uint8_t* convert2Data(AVFrame *in); |
| | | AVFrame* convert2Frame(AVFrame *in); |
| | | |
| | | bool getAVFrame(uint8_t *in, const int w, const int h, AVFrame * &output); |
| | | AVFrame *getAVFrame(uint8_t *in, const int w, const int h); |
| | | |
| | | AVFrame *getAVFrame(AVFrame *in); |
| | | bool getAVFrame(AVFrame *in, AVFrame * &output); |
| | | static AVFrame *fillFrame(uint8_t *in, const int w, const int h, const int f); |
| | | static uint8_t* extractFrame(AVFrame *in, int *length); |
| | | |
| | | private: |
| | | ffwrapper::swscale_wrapper *scale_; |
| | | ffwrapper::PicData *pic_; |
| | | uint8_t *buff_fill_; |
| | | |
| | | }; |
| | | |