diff options
author | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2013-12-08 10:27:23 +0000 |
---|---|---|
committer | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2013-12-08 10:27:23 +0000 |
commit | 5d7461da5cfa51d9fdeec9ea2f45afc22b205871 (patch) | |
tree | eb84754eb67129813aaca4e710b547512175be72 | |
parent | 4a4a3158f030afc662fc732f415315975ea90286 (diff) | |
download | usdx-5d7461da5cfa51d9fdeec9ea2f45afc22b205871.tar.gz usdx-5d7461da5cfa51d9fdeec9ea2f45afc22b205871.tar.xz usdx-5d7461da5cfa51d9fdeec9ea2f45afc22b205871.zip |
fixing ffmpeg-1.2: next part.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3023 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | src/lib/ffmpeg-1.2/avformat.pas | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/src/lib/ffmpeg-1.2/avformat.pas b/src/lib/ffmpeg-1.2/avformat.pas index 9470b6f4..348c43a9 100644 --- a/src/lib/ffmpeg-1.2/avformat.pas +++ b/src/lib/ffmpeg-1.2/avformat.pas @@ -465,7 +465,7 @@ const increasing timestamps, but they must still be monotonic *) - AVFMT_SEEK_TO_PTS = $4000000 (**< Seeking is based on PTS *) + AVFMT_SEEK_TO_PTS = $4000000; (**< Seeking is based on PTS *) // used by AVIndexEntry AVINDEX_KEYFRAME = $0001; @@ -475,8 +475,8 @@ const MAX_STREAMS = 20; - AVFMT_FLAG_GENPTS = $0001; ///< Generate missing pts even if it requires parsing future frames. - AVFMT_FLAG_IGNIDX = $0002; ///< Ignore index. + AVFMT_FLAG_GENPTS = $0001; ///< Generate missing pts even if it requires parsing future frames. + AVFMT_FLAG_IGNIDX = $0002; ///< Ignore index. AVFMT_FLAG_NONBLOCK = $0004; ///< Do not block when reading packets from input. AVFMT_FLAG_IGNDTS = $0008; ///< Ignore DTS on frames that contain both DTS & PTS AVFMT_FLAG_NOFILLIN = $0010; ///< Do not infer any values from other values, just return what is stored in the container @@ -511,9 +511,9 @@ const * even when user did not explicitly ask for subtitles. *) AV_DISPOSITION_FORCED = $0040; - AV_DISPOSITION_HEARING_IMPAIRED = $0080; /**< stream for hearing impaired audiences */ - AV_DISPOSITION_VISUAL_IMPAIRED = $0100; /**< stream for visual impaired audiences */ - AV_DISPOSITION_CLEAN_EFFECTS = $0200; /**< stream without voice */ + AV_DISPOSITION_HEARING_IMPAIRED = $0080; (**< stream for hearing impaired audiences *) + AV_DISPOSITION_VISUAL_IMPAIRED = $0100; (**< stream for visual impaired audiences *) + AV_DISPOSITION_CLEAN_EFFECTS = $0200; (**< stream without voice *) (** * The stream is stored in the file as an attached picture/"cover art" (e.g. * APIC frame in ID3v2). The single packet associated with it will be returned @@ -548,6 +548,11 @@ type PPAVStream = ^PAVStream; PAVStream = ^TAVStream; PAVPacketList = ^TAVPacketList; + TAVPacketList = record + pkt: TAVPacket; + next: PAVPacketList; + end; (*AVPacketList*) + PPAVProgram = ^PAVProgram; PAVProgram = ^TAVProgram; @@ -571,7 +576,7 @@ type (** * @addtogroup lavf_encoding - * @{ + * @ *) TAVOutputFormat = record name: PAnsiChar; @@ -775,17 +780,14 @@ type max_ts: cint64; flags: cint): cint; cdecl; end; -(** - * @} - *) TAVStreamParseType = ( AVSTREAM_PARSE_NONE, AVSTREAM_PARSE_FULL, (**< full parsing and repack *) AVSTREAM_PARSE_HEADERS, (**< Only parse headers, do not repack. *) AVSTREAM_PARSE_TIMESTAMPS, (**< full parsing and interpolation of timestamps for frames not starting on a packet boundary *) - AVSTREAM_PARSE_FULL_ONCE (**< full parsing and repack of the first frame only, only implemented for H.264 currently *) - AVSTREAM_PARSE_FULL_RAW = $57415230; // MKTAG(0,'R','A','W'), + AVSTREAM_PARSE_FULL_ONCE, (**< full parsing and repack of the first frame only, only implemented for H.264 currently *) + AVSTREAM_PARSE_FULL_RAW = $57415230 // MKTAG(0,'R','A','W'), (**< full parsing and repack with timestamp and position generation by parser for raw this assumes that each packet in the file contains no demuxer level headers and just codec level data, otherwise position generation would fail *) @@ -812,7 +814,7 @@ type last_dts: cint64; duration_gcd: cint64; duration_count: cint; - duration_error: ^array[0..1] of array[0..MAX_STD_TIMEBASES - 1] of cdouble; + duration_error: array[0..1] of array[0..1] of array[0..MAX_STD_TIMEBASES - 1] of cdouble; codec_info_duration: cint64; codec_info_duration_fields: cint64; found_decoder: cint; @@ -1137,7 +1139,7 @@ type * iformat/oformat.flags. In such a case, the (de)muxer will handle * I/O in some other way and this field will be NULL. *) - pb: PByteIOContext; + pb: PAVIOContext; (* stream info *) ctx_flags: cint; (**< Format-specific flags, see AVFMTCTX_xx *) @@ -1400,7 +1402,7 @@ type *) raw_packet_buffer_remaining_size: cint; -end; + end; (** * Returns the method used to set ctx->duration. @@ -1410,18 +1412,13 @@ end; function av_fmt_ctx_get_duration_estimation_method(ctx: {const} PAVFormatContext): TAVDurationEstimationMethod; cdecl; external av__format; - TAVPacketList = record - pkt: TAVPacket; - next: PAVPacketList; - end; (*AVPacketList*) - (** * @defgroup lavf_core Core functions * @ingroup libavf * * Functions for querying libavformat capabilities, allocating core structures, * etc. - * @{ + * @ *) (** @@ -1579,7 +1576,7 @@ function avformat_alloc_output_context2(ctx: PPAVFormatContext; oformat: PAVOutp (** * @addtogroup lavf_decoding - * @{ + * @ *) (** @@ -1638,7 +1635,8 @@ function av_probe_input_format3(pd: PAVProbeData; is_opened: cint; score_ret: Pc *) function av_probe_input_buffer(pb: PAVIOContext; var fmt: PAVInputFormat; filename: {const} PAnsiChar; logctx: pointer; - offset: cuint; max_probe_size: cuint); + offset: cuint; max_probe_size: cuint): cint; + cdecl; external av__format; (** * Open an input stream and read the header. The codecs are not opened. @@ -2089,7 +2087,7 @@ function av_codec_get_tag(var tags: PAVCodecTag; id: TAVCodecID): cuint; * @param tag A pointer to the found tag * @return 0 if id was not found in tags, > 0 if it was found *) -function av_codec_get_tag2(var tags: PAVCodecTag; id: TAVCodecID, +function av_codec_get_tag2(var tags: PAVCodecTag; id: TAVCodecID; tag: Pcuint): cint; cdecl; external av__format; |