Hi,
I'm developing an FFmpeg interface for a 3D app using Mono on Linux/32/64
bit as part of an open source training and robotics solution, specifically for
video4linux integration, and for streaming OpenGL applications. As part of this
project, I have an issue with the new(er) versions of FFmpeg swscaler using
datatypes not "friendly" to marshalling, specifically: uint8_t* dst[]. I've not
been able to make it work, so I keep having to put in an overload of sws_scale
to make it Mono-friendly:
in swscale.h:
int sws_scale2(struct SwsContext *context, struct AVFrame *source, int
srcSliceY,
int srcSliceH, struct AVFrame *dest);
in swscale.c:
/**
* sws_scale wrapper where two Frame structures are readily available
*/
int sws_scale2(SwsContext *context, AVFrame *source, int srcSliceY,
int srcSliceH, AVFrame *dest){
return sws_scale(context,source->data, source->linesize, srcSliceY,
srcSliceH,dest->data, dest->linesize);
}
I was wondering if it would be possible to include this in the next revision of
FFmpeg, so that end users can use established rpms of ffmpeg without needing to
recompile with source amendments.
Alternatviely, if somebody out there has figured out a working marshalling
structure for sws_scale, then I'd prefer that if it's available, but none of
the reference mono code out there has (as I last checked) solved this issue.
Best Regards,
Euan.
___________________________________________________________
Yahoo! For Good helps you make a difference
http://uk.promotions.yahoo.com/forgood/
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user