1 /*
2 * a64 muxer
3 * Copyright (c) 2009 Tobias Bindhammer
4 *
5 * This file is part of FFmpeg.
6 *
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
26
28 {
31 0x00, //load
32 0x40, //address
33 0x00, //mode
34 0x00, //charset_lifetime (multi only)
35 0x00 //fps in 50/fps;
36 };
37
41 }
42
45 header[2] = 0x00;
47 header[4] = 2;
48 break;
50 header[2] = 0x01;
52 header[4] = 3;
53 break;
54 default:
56 }
58 return 0;
59 }
60
64 .extensions = "a64, A64",
68 };
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
AVOutputFormat ff_a64_muxer
This struct describes the properties of an encoded stream.
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_RB32
AVStream ** streams
A list of all streams in the file.
static const uint8_t header[24]
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
static int a64_write_header(AVFormatContext *s)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int extradata_size
Size of the extradata content in bytes.
Libavcodec external API header.
AVIOContext * pb
I/O context.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
AVCodecParameters * codecpar