| | |
| | | |
| | | using namespace cffmpeg_wrap; |
| | | |
| | | cffmpeg c_ffmpeg_create(){ |
| | | return new Wrapper; |
| | | cffmpeg c_ffmpeg_create(const int log, const char *logfile){ |
| | | bool logit = false; |
| | | if (log != 0) logit = true; |
| | | return new Wrapper(logit, 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 |