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
c55c4fb6
Commit
c55c4fb6
authored
Jan 06, 2010
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
davinci: implement audio encoder (not tested)
parent
305d2ca1
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
289 additions
and
62 deletions
+289
-62
modules/codec/davinci/davinci.c
modules/codec/davinci/davinci.c
+12
-6
modules/codec/davinci/davinci.h
modules/codec/davinci/davinci.h
+2
-2
modules/codec/davinci/encoder.c
modules/codec/davinci/encoder.c
+273
-53
modules/codec/davinci/fourcc.c
modules/codec/davinci/fourcc.c
+2
-1
No files found.
modules/codec/davinci/davinci.c
View file @
c55c4fb6
...
@@ -108,14 +108,20 @@ vlc_module_begin()
...
@@ -108,14 +108,20 @@ vlc_module_begin()
set_callbacks
(
OpenAudioDecoder
,
CloseAudioDecoder
);
set_callbacks
(
OpenAudioDecoder
,
CloseAudioDecoder
);
#ifdef ENABLE_SOUT
#ifdef ENABLE_SOUT
/*
video
encoder */
/* encoder */
add_submodule
()
add_submodule
()
add_shortcut
(
"davinci"
)
add_shortcut
(
"davinci"
)
set_description
(
N_
(
"DaVinci DSP
video
encoder"
)
)
set_description
(
N_
(
"DaVinci DSP encoder"
)
)
set_capability
(
"encoder"
,
1337
)
set_capability
(
"encoder"
,
1337
)
set_section
(
N_
(
"Encoding"
)
,
NULL
)
set_section
(
N_
(
"Encoding"
)
,
NULL
)
set_callbacks
(
Open
VideoEncoder
,
CloseVideo
Encoder
)
set_callbacks
(
Open
Encoder
,
Close
Encoder
)
/* encoder settings */
add_integer
(
ENC_CFG_PREFIX
"quality"
,
0
,
NULL
,
ENC_QUALITY_TEXT
,
ENC_QUALITY_LONGTEXT
,
true
)
change_integer_range
(
0
,
3
)
/* video encoder settings */
add_integer
(
ENC_CFG_PREFIX
"keyint"
,
0
,
NULL
,
ENC_KEYINT_TEXT
,
add_integer
(
ENC_CFG_PREFIX
"keyint"
,
0
,
NULL
,
ENC_KEYINT_TEXT
,
ENC_KEYINT_LONGTEXT
,
false
)
ENC_KEYINT_LONGTEXT
,
false
)
add_bool
(
ENC_CFG_PREFIX
"interlace"
,
false
,
NULL
,
ENC_INTERLACE_TEXT
,
add_bool
(
ENC_CFG_PREFIX
"interlace"
,
false
,
NULL
,
ENC_INTERLACE_TEXT
,
...
@@ -125,9 +131,9 @@ vlc_module_begin()
...
@@ -125,9 +131,9 @@ vlc_module_begin()
change_integer_range
(
0
,
5
)
change_integer_range
(
0
,
5
)
add_integer
(
ENC_CFG_PREFIX
"tolerance"
,
0
,
NULL
,
ENC_VT_TEXT
,
add_integer
(
ENC_CFG_PREFIX
"tolerance"
,
0
,
NULL
,
ENC_VT_TEXT
,
ENC_VT_LONGTEXT
,
true
)
ENC_VT_LONGTEXT
,
true
)
add_integer
(
ENC_CFG_PREFIX
"quality"
,
0
,
NULL
,
ENC_QUALITY_TEXT
,
ENC_QUALITY_LONGTEXT
,
true
)
/* audio encoder settings */
change_integer_range
(
0
,
3
)
#endif
#endif
#if 0
#if 0
/* video filter submodule */
/* video filter submodule */
...
...
modules/codec/davinci/davinci.h
View file @
c55c4fb6
...
@@ -44,8 +44,8 @@ void CloseVideoDecoder( vlc_object_t * );
...
@@ -44,8 +44,8 @@ void CloseVideoDecoder( vlc_object_t * );
int
OpenAudioDecoder
(
vlc_object_t
*
);
int
OpenAudioDecoder
(
vlc_object_t
*
);
void
CloseAudioDecoder
(
vlc_object_t
*
);
void
CloseAudioDecoder
(
vlc_object_t
*
);
int
Open
Video
Encoder
(
vlc_object_t
*
);
int
OpenEncoder
(
vlc_object_t
*
);
void
Close
Video
Encoder
(
vlc_object_t
*
);
void
CloseEncoder
(
vlc_object_t
*
);
/*****************************************************************************
/*****************************************************************************
* Common stuff
* Common stuff
...
...
modules/codec/davinci/encoder.c
View file @
c55c4fb6
This diff is collapsed.
Click to expand it.
modules/codec/davinci/fourcc.c
View file @
c55c4fb6
...
@@ -34,7 +34,8 @@
...
@@ -34,7 +34,8 @@
* Codec fourcc -> davinic_id mapping
* Codec fourcc -> davinic_id mapping
*****************************************************************************/
*****************************************************************************/
/* Enable codecs by changing #undef in #define here below */
/* Enable codecs by changing #undef in #define here below
* NOTE: Make sure it matches the codec pack you are using. */
#undef DAVINCI_HAS_MPEG1_CODEC
#undef DAVINCI_HAS_MPEG1_CODEC
#define DAVINCI_HAS_MPEG2_CODEC
#define DAVINCI_HAS_MPEG2_CODEC
...
...
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