1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-02 22:26:45 +02:00

Progress on implementing v4l2 in video_device.*

This commit is contained in:
cnhenry
2015-07-19 09:51:35 -05:00
parent a33e5f4bec
commit 8f28f1d748
6 changed files with 364 additions and 28 deletions

43
src/video_call.h Normal file
View File

@ -0,0 +1,43 @@
/* video_call.h
*
*
* Copyright (C) 2014 Toxic All Rights Reserved.
*
* This file is part of Toxic.
*
* Toxic is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Toxic is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Toxic. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef VIDEO_CALL_H
#define VIDEO_CALL_H
#include <tox/toxav.h>
#include "video_device.h"
typedef enum _VideoError {
ve_None = 0,
ve_StartingCaptureDevice = 1 << 0,
ve_StartingOutputDevice = 1 << 1,
ve_StartingCoreAudio = 1 << 2
} VideoError;
/* You will have to pass pointer to first member of 'windows' declared in windows.c */
ToxAV *init_video(ToxWindow *self, Tox *tox);
void terminate_video();
//int start_video_transmission(ToxWindow *self, Call *call);
//int stop_video_transmission(Call *call, int friend_number);
#endif /* VIDEO_CALL_H */