From 0ef252ae90591c3a0ade18f1785325f3df165133 Mon Sep 17 00:00:00 2001 From: brian-ch Date: Sun, 28 Sep 2014 19:30:04 +0000 Subject: Fixes for ffmpeg-2.2 git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3080 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/lib/ffmpeg-2.2/libavutil/frame.pas | 30 +++++++++++++++++++++++++++--- src/lib/ffmpeg-2.2/libavutil/pixfmt.pas | 2 +- 2 files changed, 28 insertions(+), 4 deletions(-) (limited to 'src/lib/ffmpeg-2.2/libavutil') diff --git a/src/lib/ffmpeg-2.2/libavutil/frame.pas b/src/lib/ffmpeg-2.2/libavutil/frame.pas index f6b259ab..4a044ea3 100644 --- a/src/lib/ffmpeg-2.2/libavutil/frame.pas +++ b/src/lib/ffmpeg-2.2/libavutil/frame.pas @@ -56,7 +56,31 @@ type AVCOL_RANGE_NB ///< Not part of ABI ); - +(* Note: AVPanScan is defined in avcodec.h but is here to avoid reference problems - Brian-ch 28/09/2014 + * + * Pan Scan area. + * This specifies the area which should be displayed. + * Note there may be multiple such areas for one frame. + *) + PAVPanScan = ^TAVPanScan; + TAVPanScan = record {24} + (*** id. + * - encoding: set by user. + * - decoding: set by libavcodec. *) + id: cint; + + (*** width and height in 1/16 pel + * - encoding: set by user. + * - decoding: set by libavcodec. *) + width: cint; + height: cint; + + (*** position of the top left corner in 1/16 pel for up to 3 fields/frames. + * - encoding: set by user. + * - decoding: set by libavcodec. *) + position: array [0..2] of array [0..1] of cint16; + end; {TAVPanScan} + (** * @defgroup lavu_frame AVFrame * @ingroup lavu_data @@ -398,7 +422,7 @@ type * @deprecated this field is unused *) hwaccel_picture_private: pointer; {deprecated} - owner: PAVCodecContext; {deprecated} + owner: pointer; {deprecated} (** Note: Should be a PAVCodecContext, but a type pointer is used to avoid a reference problem. *) thread_opaque: pointer; {deprecated} (** @@ -746,7 +770,7 @@ function av_frame_make_writable(frame: PAVFrame): cint; * * @return >= 0 on success, a negative AVERROR on error. *) -function av_frame_copy(dst: PAVFrame, src: {const} PAVFrame): cint; +function av_frame_copy(dst: PAVFrame; src: {const} PAVFrame): cint; cdecl; external av__codec; (** diff --git a/src/lib/ffmpeg-2.2/libavutil/pixfmt.pas b/src/lib/ffmpeg-2.2/libavutil/pixfmt.pas index bd3cba6e..6b100b14 100644 --- a/src/lib/ffmpeg-2.2/libavutil/pixfmt.pas +++ b/src/lib/ffmpeg-2.2/libavutil/pixfmt.pas @@ -407,7 +407,7 @@ const {$IFDEF FF_API_PIX_FMT} type - PixelFormat = AVPixelFormat; + PixelFormat = TAVPixelFormat; const PIX_FMT_Y400A = AV_PIX_FMT_Y400A; -- cgit v1.2.3