Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
3ce3af29
Commit
3ce3af29
authored
Dec 10, 2002
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: adapted to current cvs version. It should still compile with older
one (Please reports if it doesn't).
parent
da014eb8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
15 deletions
+33
-15
modules/codec/ffmpeg/ffmpeg.c
modules/codec/ffmpeg/ffmpeg.c
+9
-2
modules/codec/ffmpeg/ffmpeg.h
modules/codec/ffmpeg/ffmpeg.h
+5
-1
modules/codec/ffmpeg/video.c
modules/codec/ffmpeg/video.c
+14
-10
modules/codec/ffmpeg/video.h
modules/codec/ffmpeg/video.h
+5
-2
No files found.
modules/codec/ffmpeg/ffmpeg.c
View file @
3ce3af29
...
...
@@ -2,7 +2,7 @@
* ffmpeg.c: video decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: ffmpeg.c,v 1.2
0 2002/11/28 16:32:29
fenrir Exp $
* $Id: ffmpeg.c,v 1.2
1 2002/12/10 10:22:04
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -508,6 +508,14 @@ static int ffmpeg_GetFfmpegCodec( vlc_fourcc_t i_fourcc,
psz_name
=
"Motion JPEG B"
;
break
;
#endif
case
FOURCC_dvsl
:
case
FOURCC_dvsd
:
case
FOURCC_DVSD
:
case
FOURCC_dvhd
:
i_cat
=
VIDEO_ES
;
i_codec
=
CODEC_ID_DVVIDEO
;
psz_name
=
"DV video"
;
break
;
#if LIBAVCODEC_BUILD >= 4632
case
FOURCC_WMA1
:
...
...
@@ -523,7 +531,6 @@ static int ffmpeg_GetFfmpegCodec( vlc_fourcc_t i_fourcc,
psz_name
=
"Windows Media Audio 2"
;
break
;
#endif
default:
i_cat
=
UNKNOWN_ES
;
i_codec
=
CODEC_ID_NONE
;
...
...
modules/codec/ffmpeg/ffmpeg.h
View file @
3ce3af29
...
...
@@ -2,7 +2,7 @@
* ffmpeg_vdec.h: video decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: ffmpeg.h,v 1.1
0 2002/11/28 16:32:29
fenrir Exp $
* $Id: ffmpeg.h,v 1.1
1 2002/12/10 10:22:04
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -138,6 +138,10 @@ int E_( GetPESData )( u8 *p_buf, int i_max, pes_packet_t *p_pes );
#define FOURCC_WMV1 VLC_FOURCC('W','M','V','1')
#define FOURCC_WMV2 VLC_FOURCC('W','M','V','2')
#define FOURCC_dvsl VLC_FOURCC('d','v','s','l')
#define FOURCC_dvsd VLC_FOURCC('d','v','s','d')
#define FOURCC_DVSD VLC_FOURCC('D','V','S','D')
#define FOURCC_dvhd VLC_FOURCC('d','v','h','d')
/*****************************************************************************
* Audio codec fourcc
...
...
modules/codec/ffmpeg/video.c
View file @
3ce3af29
...
...
@@ -2,7 +2,7 @@
* video.c: video decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: video.c,v 1.1
1 2002/12/06 16:34:05 sam
Exp $
* $Id: video.c,v 1.1
2 2002/12/10 10:22:04 fenrir
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
...
...
@@ -50,7 +50,7 @@
* Local prototypes
*****************************************************************************/
#if LIBAVCODEC_BUILD >= 4641
static
void
ffmpeg_CopyPicture
(
picture_t
*
,
AV
Video
Frame
*
,
vdec_thread_t
*
);
static
void
ffmpeg_CopyPicture
(
picture_t
*
,
AVFrame
*
,
vdec_thread_t
*
);
#else
static
void
ffmpeg_CopyPicture
(
picture_t
*
,
AVPicture
*
,
vdec_thread_t
*
);
#endif
...
...
@@ -58,8 +58,8 @@ static void ffmpeg_CopyPicture( picture_t *, AVPicture *, vdec_thread_t * );
static
void
ffmpeg_PostProcPicture
(
vdec_thread_t
*
,
picture_t
*
);
#if LIBAVCODEC_BUILD >= 4641
static
int
ffmpeg_GetFrameBuf
(
struct
AVCodecContext
*
,
AV
Video
Frame
*
);
static
void
ffmpeg_ReleaseFrameBuf
(
struct
AVCodecContext
*
,
AV
Video
Frame
*
);
static
int
ffmpeg_GetFrameBuf
(
struct
AVCodecContext
*
,
AVFrame
*
);
static
void
ffmpeg_ReleaseFrameBuf
(
struct
AVCodecContext
*
,
AVFrame
*
);
#endif
/*****************************************************************************
...
...
@@ -152,7 +152,7 @@ static vout_thread_t *ffmpeg_CreateVout( vdec_thread_t *p_vdec,
*/
#if LIBAVCODEC_BUILD >= 4641
static
void
ffmpeg_ConvertPictureI410toI420
(
picture_t
*
p_pic
,
AV
Video
Frame
*
p_ff_pic
,
AVFrame
*
p_ff_pic
,
vdec_thread_t
*
p_vdec
)
#else
static
void
ffmpeg_ConvertPictureI410toI420
(
picture_t
*
p_pic
,
...
...
@@ -272,7 +272,9 @@ static void ffmpeg_ConvertPictureI410toI420( picture_t *p_pic,
int
E_
(
InitThread_Video
)(
vdec_thread_t
*
p_vdec
)
{
int
i_tmp
;
#if LIBAVCODEC_BUILD >= 4641
#if LIBAVCODEC_BUILD >= 4645
p_vdec
->
p_ff_pic
=
avcodec_alloc_frame
();
#elif LIBAVCODEC_BUILD >= 4641
p_vdec
->
p_ff_pic
=
avcodec_alloc_picture
();
#else
p_vdec
->
p_ff_pic
=
&
p_vdec
->
ff_pic
;
...
...
@@ -738,7 +740,7 @@ void E_( EndThread_Video )( vdec_thread_t *p_vdec )
*****************************************************************************/
#if LIBAVCODEC_BUILD >= 4641
static
void
ffmpeg_CopyPicture
(
picture_t
*
p_pic
,
AV
Video
Frame
*
p_ff_pic
,
AVFrame
*
p_ff_pic
,
vdec_thread_t
*
p_vdec
)
#else
static
void
ffmpeg_CopyPicture
(
picture_t
*
p_pic
,
...
...
@@ -823,7 +825,7 @@ static void ffmpeg_PostProcPicture( vdec_thread_t *p_vdec, picture_t *p_pic )
*****************************************************************************/
static
int
ffmpeg_GetFrameBuf
(
struct
AVCodecContext
*
p_context
,
AV
Video
Frame
*
p_ff_pic
)
AVFrame
*
p_ff_pic
)
{
vdec_thread_t
*
p_vdec
=
(
vdec_thread_t
*
)
p_context
->
opaque
;
picture_t
*
p_pic
;
...
...
@@ -850,7 +852,9 @@ static int ffmpeg_GetFrameBuf( struct AVCodecContext *p_context,
p_vdec
->
p_context
->
draw_horiz_band
=
NULL
;
p_ff_pic
->
opaque
=
(
void
*
)
p_pic
;
#if LIBAVCODEC_BUILD >= 4645
p_ff_pic
->
type
=
FF_BUFFER_TYPE_USER
;
#endif
p_ff_pic
->
data
[
0
]
=
p_pic
->
p
[
0
].
p_pixels
;
p_ff_pic
->
data
[
1
]
=
p_pic
->
p
[
1
].
p_pixels
;
p_ff_pic
->
data
[
2
]
=
p_pic
->
p
[
2
].
p_pixels
;
...
...
@@ -872,7 +876,7 @@ static int ffmpeg_GetFrameBuf( struct AVCodecContext *p_context,
}
static
void
ffmpeg_ReleaseFrameBuf
(
struct
AVCodecContext
*
p_context
,
AV
Video
Frame
*
p_ff_pic
)
AVFrame
*
p_ff_pic
)
{
vdec_thread_t
*
p_vdec
=
(
vdec_thread_t
*
)
p_context
->
opaque
;
picture_t
*
p_pic
;
...
...
modules/codec/ffmpeg/video.h
View file @
3ce3af29
...
...
@@ -2,7 +2,7 @@
* video.h: video decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: video.h,v 1.
5 2002/12/06 11:53:45
fenrir Exp $
* $Id: video.h,v 1.
6 2002/12/10 10:22:04
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -20,12 +20,15 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#if LIBAVCODEC_BUILD >= 4641 && LIBAVCODEC_BUILD < 4645
# define AVFrame AVVideoFrame
#endif
typedef
struct
vdec_thread_s
{
DECODER_THREAD_COMMON
#if LIBAVCODEC_BUILD >= 4641
AV
Video
Frame
*
p_ff_pic
;
AVFrame
*
p_ff_pic
;
#else
AVPicture
ff_pic
,
*
p_ff_pic
;
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment