From 37b6643df2df7d784a31ca73f7bb90dc109c2401 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 15 Dec 2005 07:26:47 +0000 Subject: removing PDP source (except debian files) before import of PDP 0.12.4 svn path=/trunk/externals/pdp/; revision=4217 --- include/pdp_image.h | 99 ----------------------------------------------------- 1 file changed, 99 deletions(-) delete mode 100644 include/pdp_image.h (limited to 'include/pdp_image.h') diff --git a/include/pdp_image.h b/include/pdp_image.h deleted file mode 100644 index f9689d7..0000000 --- a/include/pdp_image.h +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Pure Data Packet system implementation. Image packet interface - * Copyright (c) by Tom Schouten - * - * 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., 675 Mass Ave, Cambridge, MA 02139, USA. - * - */ - - -/* - This file contains methods for the image packets - pdp_packet_new_* methods are several image packet constructors - - It also contains some pdp_type_ methods, for type checking - and conversion. - -*/ - -#ifndef PDP_IMAGE_H -#define PDP_IMAGE_H - - - -/* image subheader */ -typedef struct _image -{ - /* standard images */ - unsigned int encoding; /* image encoding (data format) */ - unsigned int width; /* image width in pixels */ - unsigned int height; /* image height in pixels */ - unsigned int depth; /* number of colour planes if PDP_IMAGE_MCHP */ - unsigned int chanmask; /* channel bitmask to mask out inactive channels (0 == not used) */ - - /* sliced image extensions */ /* THIS IS EXPERIMENTAL, DON'T DEPEND ON IT */ - unsigned int slice_sync; /* slice synchro information */ - unsigned int slice_yoff; /* y offset of the slice in original image */ - unsigned int orig_height; /* height of original image (this is zero for ordinary images) */ - -} t_image; - - -/* image encodings */ -#define PDP_IMAGE_YV12 1 /* 24bbp: 16 bit Y plane followed by 16 bit 2x2 subsampled V and U planes.*/ -#define PDP_IMAGE_GREY 2 /* 16bbp: 16 bit Y plane */ -#define PDP_IMAGE_MCHP 4 /* generic 16bit multi channel planar (16 bit 3D tensor) */ - -/* slice synchro information */ -#define PDP_IMAGE_SLICE_FIRST (1<<0) -#define PDP_IMAGE_SLICE_LAST (1<<1) -#define PDP_IMAGE_SLICE_BODY (1<<2) - - - -/* all symbols are C style */ -#ifdef __cplusplus -extern "C" -{ -#endif - - - - -/* validate and compat check */ -bool pdp_packet_image_isvalid(int packet); -bool pdp_packet_image_compat(int packet0, int packet1); - -/* short cuts to create specific packets */ -int pdp_packet_new_image(u32 encoding, u32 width, u32 height); -int pdp_packet_new_image_YCrCb(u32 width, u32 height); -int pdp_packet_new_image_grey(u32 width, u32 height); -int pdp_packet_new_image_mchp(u32 width, u32 height, u32 depth); - -#define pdp_packet_new_image_multi pdp_packet_new_image_mchp - -/* get info */ -t_pdp_symbol *pdp_packet_image_get_description(int packet); -t_image *pdp_packet_image_info(int packet); - -/* set props */ -void pdp_packet_image_set_chanmask(int packet, unsigned int chanmask); - - -#ifdef __cplusplus -} -#endif - -#endif -- cgit v1.2.1