Пример #1
0
static int encode_win(struct vidfilt_enc_st *st, struct vidframe *frame)
{
	struct selfview_enc *enc = (struct selfview_enc *)st;
	int err;

	if (!frame)
		return 0;

	if (!enc->disp) {

		err = vidisp_alloc(&enc->disp, NULL, NULL, NULL, NULL, NULL);
		if (err)
			return err;
	}

	return vidisp_display(enc->disp, "Selfview", frame);
}
Пример #2
0
static int encode_win(struct vidfilt_st *st, struct vidframe *frame)
{
	struct selfview *pip = (struct selfview *)st;
	int err;

	if (!frame)
		return 0;

	if (!pip->disp) {

		err = vidisp_alloc(&pip->disp, NULL, NULL,
				   NULL, NULL, NULL, NULL, NULL);
		if (err)
			return err;
	}

	return vidisp_display(pip->disp, "Selfview", frame);
}