| | |
| | | } |
| | | #endif |
| | | |
| | | #ifndef LIB_CFFMPEG |
| | | #include "csrc/all.hpp" |
| | | #endif |
| | | #include "csrc/wrapper.hpp" |
| | | |
| | | using namespace cffmpeg_wrap; |
| | | |
| | | cffmpeg c_ffmpeg_create(){ |
| | | return new Wrapper; |
| | | |
| | | return new Wrapper(); |
| | | } |
| | | |
| | | cffmpeg c_ffmpeg_create2(const char *logfile){ |
| | | return new Wrapper(logfile); |
| | | } |
| | | |
| | | void c_ffmpeg_destroy(const cffmpeg h){ |
| | |
| | | } |
| | | |
| | | /////////////////////test |
| | | void* c_ffmpeg_decode_jpeg(const char *file, int *wid, int *hei){ |
| | | uint8_t *p = DecodeJPEG(file, wid, hei); |
| | | if(!p){ |
| | | *wid = *hei = 0; |
| | | } |
| | | return p; |
| | | void* c_ffmpeg_decode(const char *file, const int gb, int *wid, int *hei){ |
| | | return Decode(file, gb, wid, hei); |
| | | } |
| | | |
| | | // pic encoder |