Exemplo n.º 1
0
static int h264_dec_get_fps(MSFilter *f, float *fps) {
	VTH264DecCtx *ctx = (VTH264DecCtx *)f->data;
	ms_filter_lock(f);
	*fps = ms_average_fps_get(&ctx->fps);
	ms_filter_unlock(f);
	return 0;
}
Exemplo n.º 2
0
static int bb10capture_get_fps(MSFilter *f, void *arg) {
    BB10Capture *d = (BB10Capture*) f->data;
    if (f->ticker) {
        *(float*)arg=ms_average_fps_get(&d->avgfps);
    } else {
        *(float*)arg = d->framerate;
    }
    return 0;
}
Exemplo n.º 3
0
static int video_capture_get_fps(MSFilter *f, void *arg){
	AndroidReaderContext* d = (AndroidReaderContext*) f->data;
	*((float*)arg) = ms_average_fps_get(&d->averageFps);
	return 0;
}
static int dec_get_fps(MSFilter *f, void *data){
	DecData *s = (DecData *)f->data;
	*(float*)data= ms_average_fps_get(&s->fps);
	return 0;
}