Mercurial > libavformat.hg
comparison avformat.h @ 241:3d92f793fd67 libavformat
64 bit pts for writing - more const usage
author | bellard |
---|---|
date | Wed, 10 Sep 2003 22:37:33 +0000 |
parents | b99548e3ab84 |
children | 4d5d04d45230 |
comparison
equal
deleted
inserted
replaced
240:e6f99d238179 | 241:3d92f793fd67 |
---|---|
5 extern "C" { | 5 extern "C" { |
6 #endif | 6 #endif |
7 | 7 |
8 #define LIBAVFORMAT_VERSION_INT 0x000408 | 8 #define LIBAVFORMAT_VERSION_INT 0x000408 |
9 #define LIBAVFORMAT_VERSION "0.4.8" | 9 #define LIBAVFORMAT_VERSION "0.4.8" |
10 #define LIBAVFORMAT_BUILD 4607 | 10 #define LIBAVFORMAT_BUILD 4608 |
11 #define LIBAVFORMAT_BUILD_STR "4607" | 11 #define LIBAVFORMAT_BUILD_STR "4608" |
12 | 12 |
13 #define LIBAVFORMAT_IDENT "FFmpeg" LIBAVFORMAT_VERSION "b" LIBAVFORMAT_BUILD_STR | 13 #define LIBAVFORMAT_IDENT "FFmpeg" LIBAVFORMAT_VERSION "b" LIBAVFORMAT_BUILD_STR |
14 | 14 |
15 #include <time.h> | 15 #include <time.h> |
16 | 16 |
122 int priv_data_size; | 122 int priv_data_size; |
123 /* output support */ | 123 /* output support */ |
124 enum CodecID audio_codec; /* default audio codec */ | 124 enum CodecID audio_codec; /* default audio codec */ |
125 enum CodecID video_codec; /* default video codec */ | 125 enum CodecID video_codec; /* default video codec */ |
126 int (*write_header)(struct AVFormatContext *); | 126 int (*write_header)(struct AVFormatContext *); |
127 /* XXX: change prototype for 64 bit pts */ | |
128 int (*write_packet)(struct AVFormatContext *, | 127 int (*write_packet)(struct AVFormatContext *, |
129 int stream_index, | 128 int stream_index, |
130 unsigned char *buf, int size, int force_pts); | 129 const uint8_t *buf, int size, int64_t pts); |
131 int (*write_trailer)(struct AVFormatContext *); | 130 int (*write_trailer)(struct AVFormatContext *); |
132 /* can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER */ | 131 /* can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER */ |
133 int flags; | 132 int flags; |
134 /* currently only used to set pixel format if not YUV420P */ | 133 /* currently only used to set pixel format if not YUV420P */ |
135 int (*set_parameters)(struct AVFormatContext *, AVFormatParameters *); | 134 int (*set_parameters)(struct AVFormatContext *, AVFormatParameters *); |