Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
dbde1f5f
Commit
dbde1f5f
authored
Feb 21, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg/encoder.c: make it ffmpeg-0.4.8 friendly.
parent
e15880cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
modules/codec/ffmpeg/encoder.c
modules/codec/ffmpeg/encoder.c
+10
-5
No files found.
modules/codec/ffmpeg/encoder.c
View file @
dbde1f5f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* encoder.c: video and audio encoder using the ffmpeg library
* encoder.c: video and audio encoder using the ffmpeg library
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: encoder.c,v 1.2
2 2004/02/20 18:34:28 massiot
Exp $
* $Id: encoder.c,v 1.2
3 2004/02/21 22:41:49 gbazin
Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
* Gildas Bazin <gbazin@netcourrier.com>
...
@@ -114,8 +114,8 @@ struct encoder_sys_t
...
@@ -114,8 +114,8 @@ struct encoder_sys_t
/*****************************************************************************
/*****************************************************************************
* OpenEncoder: probe the encoder
* OpenEncoder: probe the encoder
*****************************************************************************/
*****************************************************************************/
extern
const
int16_t
ff_mpeg4_default_intra_matrix
[];
extern
int16_t
ff_mpeg4_default_intra_matrix
[];
extern
const
int16_t
ff_mpeg4_default_non_intra_matrix
[];
extern
int16_t
ff_mpeg4_default_non_intra_matrix
[];
int
E_
(
OpenEncoder
)(
vlc_object_t
*
p_this
)
int
E_
(
OpenEncoder
)(
vlc_object_t
*
p_this
)
{
{
...
@@ -260,7 +260,9 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
...
@@ -260,7 +260,9 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
p_context
->
i_quant_factor
=
p_enc
->
f_i_quant_factor
;
p_context
->
i_quant_factor
=
p_enc
->
f_i_quant_factor
;
}
}
#if LIBAVCODEC_BUILD >= 4690
p_context
->
noise_reduction
=
p_enc
->
i_noise_reduction
;
p_context
->
noise_reduction
=
p_enc
->
i_noise_reduction
;
#endif
if
(
p_enc
->
b_mpeg4_matrix
)
if
(
p_enc
->
b_mpeg4_matrix
)
{
{
...
@@ -287,10 +289,12 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
...
@@ -287,10 +289,12 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
p_context
->
flags
|=
CODEC_FLAG_TRELLIS_QUANT
;
p_context
->
flags
|=
CODEC_FLAG_TRELLIS_QUANT
;
}
}
#if LIBAVCODEC_BUILD >= 4702
if
(
p_enc
->
i_threads
>=
1
)
if
(
p_enc
->
i_threads
>=
1
)
{
{
p_context
->
thread_count
=
p_enc
->
i_threads
;
p_context
->
thread_count
=
p_enc
->
i_threads
;
}
}
#endif
if
(
p_enc
->
i_vtolerance
>
0
)
if
(
p_enc
->
i_vtolerance
>
0
)
{
{
...
@@ -566,6 +570,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
...
@@ -566,6 +570,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
}
}
}
}
#if LIBAVCODEC_BUILD >= 4690
if
(
frame
.
pts
&&
current_date
+
HURRY_UP_GUARD1
>
frame
.
pts
)
if
(
frame
.
pts
&&
current_date
+
HURRY_UP_GUARD1
>
frame
.
pts
)
{
{
p_sys
->
p_context
->
noise_reduction
=
p_enc
->
i_noise_reduction
p_sys
->
p_context
->
noise_reduction
=
p_enc
->
i_noise_reduction
...
@@ -575,6 +580,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
...
@@ -575,6 +580,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
{
{
p_sys
->
p_context
->
noise_reduction
=
p_enc
->
i_noise_reduction
;
p_sys
->
p_context
->
noise_reduction
=
p_enc
->
i_noise_reduction
;
}
}
#endif
}
}
}
}
else
else
...
@@ -585,10 +591,9 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
...
@@ -585,10 +591,9 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
/* Let ffmpeg select the frame type */
/* Let ffmpeg select the frame type */
frame
.
pict_type
=
0
;
frame
.
pict_type
=
0
;
frame
.
interlaced_frame
=
!
p_pict
->
b_progressive
;
frame
.
repeat_pict
=
p_pict
->
i_nb_fields
;
frame
.
repeat_pict
=
p_pict
->
i_nb_fields
;
#if LIBAVCODEC_BUILD >= 4685
#if LIBAVCODEC_BUILD >= 4685
frame
.
interlaced_frame
=
!
p_pict
->
b_progressive
;
frame
.
top_field_first
=
p_pict
->
b_top_field_first
;
frame
.
top_field_first
=
p_pict
->
b_top_field_first
;
#endif
#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