Make AltiVec code write alpha as 255 instead of 0 when converting to RGBA
[mplayer/glamo.git] / libmpdemux / mpeg_packetizer.h
blobe193761fc1642e9e69b6de31ba1ad40cee78136c
1 /*
2 * helper routines for building MPEG 1/2 PS/PES packets
4 * Copyright (C) 2006 Benjamin Zores
6 * based on code borrowed from vo_mpegpes/vo_dxr2:
7 * (C) 2000 Ralph Metzler <ralph@convergence.de>
8 * Marcus Metzler <marcus@convergence.de>
9 * Gerard Lantau
11 * This file is part of MPlayer.
13 * MPlayer is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * MPlayer is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License along
24 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
25 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 #ifndef MPLAYER_MPEG_PACKETIZER_H
29 #define MPLAYER_MPEG_PACKETIZER_H
31 #include <stdint.h>
33 /* Send MPEG <type> PES packet */
34 int send_mpeg_pes_packet (unsigned char *data, int len, int id, uint64_t pts,
35 int type, int my_write (const unsigned char *data, int len));
37 /* Send MPEG <type> PS packet */
38 int send_mpeg_ps_packet (unsigned char *data, int len, int id, uint64_t pts,
39 int type,int my_write (const unsigned char *data, int len));
41 /* Send MPEG 2 LPCM packet */
42 int send_mpeg_lpcm_packet (unsigned char *data, int len,
43 int id, uint64_t pts, int freq_id,
44 int my_write (const unsigned char *data, int len));
46 #endif /* MPLAYER_MPEG_PACKETIZER_H */