fix documentation of get_host_info()
[paraslash.git] / aac.h
1 /*
2  * Copyright (C) 2006 Andre Noll <maan@systemlinux.org>
3  *
4  *     This program is free software; you can redistribute it and/or modify
5  *     it under the terms of the GNU General Public License as published by
6  *     the Free Software Foundation; either version 2 of the License, or
7  *     (at your option) any later version.
8  *
9  *     This program is distributed in the hope that it will be useful,
10  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *     GNU General Public License for more details.
13  *
14  *     You should have received a copy of the GNU General Public License
15  *     along with this program; if not, write to the Free Software
16  *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
17  */
18
19 /** \file aac.h exported symbols from aac_common.c */
20
21 #include <neaacdec.h>
22
23 NeAACDecHandle aac_open(void);
24 ssize_t aac_find_esds(unsigned char *buf, size_t buflen, size_t *skip);
25 ssize_t aac_find_entry_point(unsigned char *buf, size_t buflen, size_t *skip);
26
27 static inline unsigned aac_read_int32(unsigned char *buf)
28 {
29         uint8_t *d = (uint8_t*)buf;
30         return (d[0] << 24) | (d[1] << 16) | (d[2] << 8) | d[3];
31 }