comparison libmpeg2/mpeg2.h @ 1:3b5f5d1c5041

Initial revision
author arpi_esp
date Sat, 24 Feb 2001 20:28:24 +0000
parents
children 846535ace7a2
comparison
equal deleted inserted replaced
0:c1bb2c071d63 1:3b5f5d1c5041
1 /*
2 * mpeg2.h
3 *
4 * Copyright (C) Aaron Holtzman <aholtzma@ess.engr.uvic.ca> - Mar 2000
5 *
6 * This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
7 *
8 * mpeg2dec is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
11 * any later version.
12 *
13 * mpeg2dec is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with GNU Make; see the file COPYING. If not, write to
20 * the Free Software Foundation,
21 *
22 */
23
24 #ifdef __OMS__
25 #include <oms/plugin/output_video.h>
26 #ifndef vo_functions_t
27 #define vo_functions_t plugin_output_video_t
28 #endif
29 #else
30 //FIXME normally I wouldn't nest includes, but we'll leave this here until I get
31 //another chance to move things around
32 #include "video_out.h"
33 #endif
34
35 #include <inttypes.h>
36 #ifdef __OMS__
37 #include <oms/accel.h>
38 #else
39 #include "mm_accel.h"
40 #endif
41
42 //config flags
43 #define MPEG2_MLIB_ENABLE MM_ACCEL_MLIB
44 #define MPEG2_MMX_ENABLE MM_ACCEL_X86_MMX
45 #define MPEG2_3DNOW_ENABLE MM_ACCEL_X86_3DNOW
46 #define MPEG2_SSE_ENABLE MM_ACCEL_X86_MMXEXT
47
48 //typedef struct mpeg2_config_s {
49 // //Bit flags that enable various things
50 // uint32_t flags;
51 //} mpeg2_config_t;
52
53 void mpeg2_init (void);
54 //void mpeg2_allocate_image_buffers (picture_t * picture);
55 int mpeg2_decode_data (vo_functions_t *, uint8_t * data_start, uint8_t * data_end);
56 //void mpeg2_close (vo_functions_t *);
57 void mpeg2_drop (int flag);