summaryrefslogtreecommitdiffstats
blob: d36ec5c7ba1f45d9a88f3c95187d6c87774b375a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Copyright (c) 2012 Yoann Blein
 * Licensed under the simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

#include <Swiften/ScreenSharing/VideoFrame.h>

namespace Swift {

VideoFrame::VideoFrame(int width, int height, uint8_t *rgb24data)
	: width(width), height(height)
{
	int len = width * height;
	data.insert(data.begin(), rgb24data, rgb24data + len);
}

}