1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
/*
* Copyright (C) 2000-2003 Damien Douxchamps <ddouxchamps@users.sf.net>
*
* This program 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 2 of the License, or
* (at your option) any later version.
*
* This program 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 this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __THREAD_BASE_H__
#define __THREAD_BASE_H__
#define GUID_YUV12_PLANAR 0x32315659
#define GUID_YUY2_PACKED 0x32595559
#define GUID_UYVY_PACKED 0x59565955
chain_t*
GetService(camera_t* cam, service_t service);
void
CommonChainSetup(camera_t* cam, chain_t* chain, service_t req_service);
int
RollBuffers(chain_t* chain);
void
InsertChain(camera_t* cam, chain_t* chain);
void
RemoveChain(camera_t* cam, chain_t* chain);
void
InitChain(camera_t* cam, chain_t *chain, service_t service);
void
FreeChain(chain_t* chain);
void
convert_to_rgb(buffer_t *buffer, unsigned char *dest);
void
InitBuffer(buffer_t *buffer);
#endif // __THREAD_BASE_H__
|