<commit_before>//
// C++ Interface: videodevicelistitem
//
// Description: 
//
//
// Author: <NAME> <<EMAIL>>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KOPETE_AVVIDEODEVICELISTITEM_H
#define KOPETE_AVVIDEODEVICELISTITEM_H

#include <sys/time.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>

#ifdef __linux__

#undef __STRICT_ANSI__
#include <asm/types.h>
#include <linux/fs.h>
#include <linux/kernel.h>

#ifndef __u64 //required by videodev.h
#define __u64 unsigned long long
#endif // __u64

#include <linux/videodev.h>
#define __STRICT_ANSI__

#endif // __linux__

#include <qstring.h>
#include <qfile.h>
#include <qimage.h>
#include <qvaluevector.h>
#include <kcombobox.h>

#include "videoinput.h"

namespace Kopete {

namespace AV {

/**
@author Kopete Developers
*/
typedef enum
{
	VIDEODEV_DRIVER_NONE,
#ifdef __linux__
	VIDEODEV_DRIVER_V4L,
#ifdef HAVE_V4L2
	VIDEODEV_DRIVER_V4L2,
#endif
#endif
} videodev_driver;

typedef enum
{
	PIXELFORMAT_NONE,
	PIXELFORMAT_GREY,
	PIXELFORMAT_RGB332,
	PIXELFORMAT_RGB555,
	PIXELFORMAT_RGB555X,
	PIXELFORMAT_RGB565,
	PIXELFORMAT_RGB565X,
	PIXELFORMAT_RGB24,
	PIXELFORMAT_BGR24,
	PIXELFORMAT_RGB32,
	PIXELFORMAT_BGR32,
} pixel_format;

typedef enum
{
	IO_METHOD_NONE,
	IO_METHOD_READ,
	IO_METHOD_MMAP,
	IO_METHOD_USERPTR,
} io_method;

struct buffer2
{
	int height;
	int width;
	pixel_format pixelformat;
	size_t size;
	QValueVector <uchar> data;
};
struct buffer
{
	uchar * start;
	size_t length;
};


class VideoDevice{
public:
	VideoDevice();<commit_msg>once again fix compile<commit_after>//
// C++ Interface: videodevicelistitem
//
// Description: 
//
//
// Author: <NAME> <<EMAIL>>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KOPETE_AVVIDEODEVICELISTITEM_H
#define KOPETE_AVVIDEODEVICELISTITEM_H

#include <sys/time.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>

#ifdef __linux__

#undef __STRICT_ANSI__
#include <asm/types.h>
#include <linux/fs.h>
#include <linux/kernel.h>

#ifndef __u64 //required by videodev.h
#define __u64 unsigned long long
#endif // __u64

#include <linux/videodev.h>
#define __STRICT_ANSI__

#endif // __linux__

#include <qstring.h>
#include <qfile.h>
#include <qimage.h>
#include <qvaluevector.h>
#include <kcombobox.h>

#include "videoinput.h"

namespace Kopete {

namespace AV {

/**
@author Kopete Developers
*/
typedef enum
{
	VIDEODEV_DRIVER_NONE,
#ifdef __linux__
	VIDEODEV_DRIVER_V4L,
#ifdef HAVE_V4L2
	VIDEODEV_DRIVER_V4L2
#endif
#endif
} videodev_driver;

typedef enum
{
	PIXELFORMAT_NONE,
	PIXELFORMAT_GREY,
	PIXELFORMAT_RGB332,
	PIXELFORMAT_RGB555,
	PIXELFORMAT_RGB555X,
	PIXELFORMAT_RGB565,
	PIXELFORMAT_RGB565X,
	PIXELFORMAT_RGB24,
	PIXELFORMAT_BGR24,
	PIXELFORMAT_RGB32,
	PIXELFORMAT_BGR32
} pixel_format;

typedef enum
{
	IO_METHOD_NONE,
	IO_METHOD_READ,
	IO_METHOD_MMAP,
	IO_METHOD_USERPTR
} io_method;

struct buffer2
{
	int height;
	int width;
	pixel_format pixelformat;
	size_t size;
	QValueVector <uchar> data;
};
struct buffer
{
	uchar * start;
	size_t length;
};


class VideoDevice{
public:
	VideoDevice();
{'fraction_non_alphanumeric': 0.1179843089921545, 'fraction_numerical': 0.023536511768255886, 'mean_word_length': 5.1162361623616235, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7369260', 'n_tokens_mistral': 1461, 'n_tokens_neox': 1396, 'n_words': 286}