Commit 0be03035 authored by aymeric's avatar aymeric
Browse files

Be able video to open under a different YUV/RGB format than default one (for testing CPU load).

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@34 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 82eaba12
......@@ -1043,6 +1043,13 @@ static int v4w_set_fps(MSFilter *f, void *arg){
return 0;
}
static int v4w_set_pix_fmt(MSFilter *f,void *arg){
V4wState *s=(V4wState*)f->data;
s->pix_fmt=*((MSPixFmt*)arg);
return 0;
}
static int v4w_get_pix_fmt(MSFilter *f,void *arg){
V4wState *s=(V4wState*)f->data;
*((MSPixFmt*)arg) = (MSPixFmt)s->pix_fmt;
......@@ -1092,6 +1099,7 @@ static int v4w_set_image(MSFilter *f, void *arg){
static MSFilterMethod methods[]={
{ MS_FILTER_SET_FPS , v4w_set_fps },
{ MS_FILTER_SET_PIX_FMT , v4w_set_pix_fmt },
{ MS_FILTER_GET_PIX_FMT , v4w_get_pix_fmt },
{ MS_FILTER_SET_VIDEO_SIZE, v4w_set_vsize },
{ MS_FILTER_GET_VIDEO_SIZE, v4w_get_vsize },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment