source: trunk/src/testing/app/svc/include/SVC_codecs.h @ 4

Revision 4, 3.1 KB checked in by ajaworski, 13 years ago (diff)

Added modified SAGE sources

Line 
1/******************************************************************************
2 * SAGE - Scalable Adaptive Graphics Environment
3 *
4 * Copyright (C) 2004 Electronic Visualization Laboratory,
5 * University of Illinois at Chicago
6 *
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are met:
11 *
12 *  * Redistributions of source code must retain the above copyright
13 *    notice, this list of conditions and the following disclaimer.
14 *  * Redistributions in binary form must reproduce the above
15 *    copyright notice, this list of conditions and the following disclaimer
16 *    in the documentation and/or other materials provided with the distribution.
17 *  * Neither the name of the University of Illinois at Chicago nor
18 *    the names of its contributors may be used to endorse or promote
19 *    products derived from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
25 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
28 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33 * Direct questions, comments etc about SAGE to http://www.evl.uic.edu/cavern/forum/
34 *
35 *****************************************************************************/
36
37#ifndef SVC_CODEC_H
38#define SVC_CODEC_H
39
40#include <inttypes.h>
41#include <stdio.h>
42/* Codec Define */
43#define DV        77
44#define MPEG2     78
45#define UNCOM     79
46
47/* Output Pixel Format Define */
48#define RGB16     90
49#define RGB24     91
50#define RGB32     92
51#define YUV       93
52
53static int convert_format2pixelbyte(int color_mode)
54{
55        switch(color_mode)
56        {
57         case RGB16:
58                return 2;
59         case RGB24:
60                return 3;
61         case RGB32:
62                return 4;
63         case YUV:
64                return 2;
65         default:
66                fprintf(stderr,"Incorrect color_mode in convert_format2pixelbyte()\n");
67        }
68}
69
70/* RTP Enable Option Define */
71#define RTP_ENABLE  100
72#define RTP_DISABLE 101
73
74/* Global Constant Define */
75#define VLC_SEND_BUFFER_SIZE            1316    /* MPEG2TS x 7*/
76#define STD_MPEG2TS_READ_BUFFER_SIZE    1316    /* MPEG2TS x 14*/
77#define SVC_MAX_INPUTNET_BUFFER_SIZE    3000
78#define CAPTURE1394_SEND_BUFFER_SIZE    188     /* MPEG2TS * 1 */
79#define RTP_HEADER_SIZE                 12
80#define MPEG2TS_PACKET_SIZE             188
81#define SVC_INPUT_NET_PORT              9090
82#define SVC_OUTPUT_NET_PORT             9090
83#define DEFAULT_INPUT_ADDRESS           NULL
84#define DEFAULT_OUTPUT_ADDRESS          "127.0.0.1"
85/* Callback Function Define */
86typedef void (*DECODEOUTPUT_CALLBACK) (void* output_obj, uint8_t * const * buf, void * id, int width, int height);
87
88#endif
Note: See TracBrowser for help on using the repository browser.