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
97761da6
Commit
97761da6
authored
Mar 07, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DVBsub: split encoder from decoder
parent
dd55afb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
modules/codec/dvbsub.c
modules/codec/dvbsub.c
+6
-0
No files found.
modules/codec/dvbsub.c
View file @
97761da6
...
@@ -109,9 +109,11 @@ static int Open ( vlc_object_t * );
...
@@ -109,9 +109,11 @@ static int Open ( vlc_object_t * );
static
void
Close
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
subpicture_t
*
Decode
(
decoder_t
*
,
block_t
**
);
static
subpicture_t
*
Decode
(
decoder_t
*
,
block_t
**
);
#ifdef ENABLE_SOUT
static
int
OpenEncoder
(
vlc_object_t
*
);
static
int
OpenEncoder
(
vlc_object_t
*
);
static
void
CloseEncoder
(
vlc_object_t
*
);
static
void
CloseEncoder
(
vlc_object_t
*
);
static
block_t
*
Encode
(
encoder_t
*
,
subpicture_t
*
);
static
block_t
*
Encode
(
encoder_t
*
,
subpicture_t
*
);
#endif
vlc_module_begin
()
vlc_module_begin
()
# define DVBSUB_CFG_PREFIX "dvbsub-"
# define DVBSUB_CFG_PREFIX "dvbsub-"
...
@@ -127,6 +129,7 @@ vlc_module_begin ()
...
@@ -127,6 +129,7 @@ vlc_module_begin ()
add_integer
(
DVBSUB_CFG_PREFIX
"x"
,
-
1
,
POSX_TEXT
,
POSX_LONGTEXT
,
false
)
add_integer
(
DVBSUB_CFG_PREFIX
"x"
,
-
1
,
POSX_TEXT
,
POSX_LONGTEXT
,
false
)
add_integer
(
DVBSUB_CFG_PREFIX
"y"
,
-
1
,
POSY_TEXT
,
POSY_LONGTEXT
,
false
)
add_integer
(
DVBSUB_CFG_PREFIX
"y"
,
-
1
,
POSY_TEXT
,
POSY_LONGTEXT
,
false
)
#ifdef ENABLE_SOUT
# define ENC_CFG_PREFIX "sout-dvbsub-"
# define ENC_CFG_PREFIX "sout-dvbsub-"
add_submodule
()
add_submodule
()
set_description
(
N_
(
"DVB subtitles encoder"
)
)
set_description
(
N_
(
"DVB subtitles encoder"
)
)
...
@@ -135,6 +138,7 @@ vlc_module_begin ()
...
@@ -135,6 +138,7 @@ vlc_module_begin ()
add_integer
(
ENC_CFG_PREFIX
"x"
,
-
1
,
ENC_POSX_TEXT
,
ENC_POSX_LONGTEXT
,
false
)
add_integer
(
ENC_CFG_PREFIX
"x"
,
-
1
,
ENC_POSX_TEXT
,
ENC_POSX_LONGTEXT
,
false
)
add_integer
(
ENC_CFG_PREFIX
"y"
,
-
1
,
ENC_POSY_TEXT
,
ENC_POSY_LONGTEXT
,
false
)
add_integer
(
ENC_CFG_PREFIX
"y"
,
-
1
,
ENC_POSY_TEXT
,
ENC_POSY_LONGTEXT
,
false
)
#endif
vlc_module_end
()
vlc_module_end
()
static
const
char
*
const
ppsz_enc_options
[]
=
{
"x"
,
"y"
,
NULL
};
static
const
char
*
const
ppsz_enc_options
[]
=
{
"x"
,
"y"
,
NULL
};
...
@@ -1681,6 +1685,7 @@ struct encoder_sys_t
...
@@ -1681,6 +1685,7 @@ struct encoder_sys_t
int
i_offset_y
;
int
i_offset_y
;
};
};
#ifdef ENABLE_SOUT
static
void
encode_page_composition
(
encoder_t
*
,
bs_t
*
,
subpicture_t
*
);
static
void
encode_page_composition
(
encoder_t
*
,
bs_t
*
,
subpicture_t
*
);
static
void
encode_clut
(
encoder_t
*
,
bs_t
*
,
subpicture_t
*
);
static
void
encode_clut
(
encoder_t
*
,
bs_t
*
,
subpicture_t
*
);
static
void
encode_region_composition
(
encoder_t
*
,
bs_t
*
,
subpicture_t
*
);
static
void
encode_region_composition
(
encoder_t
*
,
bs_t
*
,
subpicture_t
*
);
...
@@ -2643,6 +2648,7 @@ static void encode_pixel_line_8bp( bs_t *s, subpicture_region_t *p_region,
...
@@ -2643,6 +2648,7 @@ static void encode_pixel_line_8bp( bs_t *s, subpicture_region_t *p_region,
bs_align_0
(
s
);
bs_align_0
(
s
);
}
}
#endif
static
void
default_dds_init
(
decoder_t
*
p_dec
)
static
void
default_dds_init
(
decoder_t
*
p_dec
)
{
{
...
...
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