Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
da112653
Commit
da112653
authored
Sep 26, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Theora: split encoder from decoder
parent
6a3525f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
modules/codec/theora.c
modules/codec/theora.c
+6
-0
No files found.
modules/codec/theora.c
View file @
da112653
...
@@ -91,9 +91,11 @@ static picture_t *DecodePacket( decoder_t *, ogg_packet * );
...
@@ -91,9 +91,11 @@ static picture_t *DecodePacket( decoder_t *, ogg_packet * );
static
void
ParseTheoraComments
(
decoder_t
*
);
static
void
ParseTheoraComments
(
decoder_t
*
);
static
void
theora_CopyPicture
(
picture_t
*
,
th_ycbcr_buffer
);
static
void
theora_CopyPicture
(
picture_t
*
,
th_ycbcr_buffer
);
#ifdef ENABLE_SOUT
static
int
OpenEncoder
(
vlc_object_t
*
p_this
);
static
int
OpenEncoder
(
vlc_object_t
*
p_this
);
static
void
CloseEncoder
(
vlc_object_t
*
p_this
);
static
void
CloseEncoder
(
vlc_object_t
*
p_this
);
static
block_t
*
Encode
(
encoder_t
*
p_enc
,
picture_t
*
p_pict
);
static
block_t
*
Encode
(
encoder_t
*
p_enc
,
picture_t
*
p_pict
);
#endif
/*****************************************************************************
/*****************************************************************************
* Module descriptor
* Module descriptor
...
@@ -118,6 +120,7 @@ vlc_module_begin ()
...
@@ -118,6 +120,7 @@ vlc_module_begin ()
set_callbacks
(
OpenPacketizer
,
CloseDecoder
)
set_callbacks
(
OpenPacketizer
,
CloseDecoder
)
add_shortcut
(
"theora"
)
add_shortcut
(
"theora"
)
#ifdef ENABLE_SOUT
add_submodule
()
add_submodule
()
set_description
(
N_
(
"Theora video encoder"
)
)
set_description
(
N_
(
"Theora video encoder"
)
)
set_capability
(
"encoder"
,
150
)
set_capability
(
"encoder"
,
150
)
...
@@ -127,6 +130,7 @@ vlc_module_begin ()
...
@@ -127,6 +130,7 @@ vlc_module_begin ()
# define ENC_CFG_PREFIX "sout-theora-"
# define ENC_CFG_PREFIX "sout-theora-"
add_integer
(
ENC_CFG_PREFIX
"quality"
,
2
,
ENC_QUALITY_TEXT
,
add_integer
(
ENC_CFG_PREFIX
"quality"
,
2
,
ENC_QUALITY_TEXT
,
ENC_QUALITY_LONGTEXT
,
false
)
ENC_QUALITY_LONGTEXT
,
false
)
#endif
vlc_module_end
()
vlc_module_end
()
static
const
char
*
const
ppsz_enc_options
[]
=
{
static
const
char
*
const
ppsz_enc_options
[]
=
{
...
@@ -598,6 +602,7 @@ static void theora_CopyPicture( picture_t *p_pic,
...
@@ -598,6 +602,7 @@ static void theora_CopyPicture( picture_t *p_pic,
}
}
}
}
#ifdef ENABLE_SOUT
/*****************************************************************************
/*****************************************************************************
* encoder_sys_t : theora encoder descriptor
* encoder_sys_t : theora encoder descriptor
*****************************************************************************/
*****************************************************************************/
...
@@ -871,3 +876,4 @@ static void CloseEncoder( vlc_object_t *p_this )
...
@@ -871,3 +876,4 @@ static void CloseEncoder( vlc_object_t *p_this )
p_sys
->
tcx
=
NULL
;
p_sys
->
tcx
=
NULL
;
free
(
p_sys
);
free
(
p_sys
);
}
}
#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