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
7a0c49ac
Commit
7a0c49ac
authored
Feb 14, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
All decoders/encoders MUST set output format category (AUDIO/VIDEO/SPU_ES)
parent
4d7d9ec2
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
39 additions
and
15 deletions
+39
-15
modules/codec/cc.c
modules/codec/cc.c
+3
-0
modules/codec/cmml/cmml.c
modules/codec/cmml/cmml.c
+3
-0
modules/codec/csri.c
modules/codec/csri.c
+3
-0
modules/codec/cvdsub.c
modules/codec/cvdsub.c
+3
-2
modules/codec/dvbsub.c
modules/codec/dvbsub.c
+2
-1
modules/codec/libass.c
modules/codec/libass.c
+3
-0
modules/codec/libmpeg2.c
modules/codec/libmpeg2.c
+3
-3
modules/codec/quicktime.c
modules/codec/quicktime.c
+2
-0
modules/codec/shine/shine_mod.c
modules/codec/shine/shine_mod.c
+2
-2
modules/codec/subtitles/subsdec.c
modules/codec/subtitles/subsdec.c
+3
-2
modules/codec/subtitles/subsusf.c
modules/codec/subtitles/subsusf.c
+2
-0
modules/codec/subtitles/t140.c
modules/codec/subtitles/t140.c
+1
-0
modules/codec/telx.c
modules/codec/telx.c
+3
-3
modules/codec/twolame.c
modules/codec/twolame.c
+2
-0
modules/codec/x264.c
modules/codec/x264.c
+1
-0
modules/codec/xvmc/xxmc.c
modules/codec/xvmc/xxmc.c
+3
-2
No files found.
modules/codec/cc.c
View file @
7a0c49ac
...
...
@@ -209,6 +209,9 @@ static int Open( vlc_object_t *p_this )
Eia608Init
(
&
p_sys
->
eia608
);
p_dec
->
fmt_out
.
i_cat
=
SPU_ES
;
p_dec
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'T'
,
'E'
,
'X'
,
'T'
);
return
VLC_SUCCESS
;
}
...
...
modules/codec/cmml/cmml.c
View file @
7a0c49ac
...
...
@@ -128,6 +128,9 @@ static int OpenDecoder( vlc_object_t *p_this )
if
(
p_sys
->
p_intf
)
intf_RunThread
(
p_sys
->
p_intf
);
p_dec
->
fmt_out
.
i_cat
=
SPU_ES
;
p_dec
->
fmt_out
.
i_codec
=
0
;
return
VLC_SUCCESS
;
}
...
...
modules/codec/csri.c
View file @
7a0c49ac
...
...
@@ -130,6 +130,9 @@ static int Create( vlc_object_t *p_this )
p_dec
->
fmt_in
.
p_extra
,
p_dec
->
fmt_in
.
p_extra
?
strnlen
(
p_dec
->
fmt_in
.
p_extra
,
p_dec
->
fmt_in
.
i_extra
)
:
0
,
NULL
);
p_dec
->
fmt_out
.
i_cat
=
SPU_ES
;
p_dec
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'R'
,
'G'
,
'B'
,
'A'
);
return
VLC_SUCCESS
;
}
...
...
modules/codec/cvdsub.c
View file @
7a0c49ac
...
...
@@ -125,11 +125,12 @@ static int DecoderOpen( vlc_object_t *p_this )
p_sys
->
i_state
=
SUBTITLE_BLOCK_EMPTY
;
p_sys
->
p_spu
=
NULL
;
es_format_Init
(
&
p_dec
->
fmt_out
,
SPU_ES
,
VLC_FOURCC
(
'c'
,
'v'
,
'd'
,
' '
)
);
p_dec
->
pf_decode_sub
=
Decode
;
p_dec
->
pf_packetize
=
Packetize
;
p_dec
->
fmt_out
.
i_cat
=
SPU_ES
;
p_dec
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'Y'
,
'U'
,
'V'
,
'P'
);
return
VLC_SUCCESS
;
}
...
...
modules/codec/dvbsub.c
View file @
7a0c49ac
...
...
@@ -340,7 +340,8 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_spu_y
=
i_posy
;
}
es_format_Init
(
&
p_dec
->
fmt_out
,
SPU_ES
,
VLC_FOURCC
(
'd'
,
'v'
,
'b'
,
's'
)
);
p_dec
->
fmt_out
.
i_cat
=
SPU_ES
;
p_dec
->
fmt_out
.
i_codec
=
0
;
default_clut_init
(
p_dec
);
...
...
modules/codec/libass.c
View file @
7a0c49ac
...
...
@@ -167,6 +167,9 @@ static int Create( vlc_object_t *p_this )
ass_process_codec_private
(
p_track
,
p_dec
->
fmt_in
.
p_extra
,
p_dec
->
fmt_in
.
i_extra
);
vlc_mutex_unlock
(
&
libass_lock
);
p_dec
->
fmt_out
.
i_cat
=
SPU_ES
;
p_dec
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'R'
,
'G'
,
'B'
,
'A'
);
return
VLC_SUCCESS
;
}
...
...
modules/codec/libmpeg2.c
View file @
7a0c49ac
...
...
@@ -129,12 +129,10 @@ static int OpenDecoder( vlc_object_t *p_this )
}
/* Allocate the memory needed to store the decoder's structure */
if
(
(
p_dec
->
p_sys
=
p_sys
=
(
decoder_sys_t
*
)
malloc
(
sizeof
(
decoder_sys_t
))
)
==
NULL
)
if
(
(
p_dec
->
p_sys
=
p_sys
=
calloc
(
1
,
sizeof
(
*
p_sys
))
)
==
NULL
)
return
VLC_ENOMEM
;
/* Initialize the thread properties */
memset
(
p_sys
,
0
,
sizeof
(
decoder_sys_t
)
);
p_sys
->
p_mpeg2dec
=
NULL
;
p_sys
->
p_synchro
=
NULL
;
p_sys
->
p_info
=
NULL
;
...
...
@@ -200,6 +198,8 @@ static int OpenDecoder( vlc_object_t *p_this )
p_sys
->
p_info
=
mpeg2_info
(
p_sys
->
p_mpeg2dec
);
p_dec
->
pf_decode_video
=
DecodeBlock
;
p_dec
->
fmt_out
.
i_cat
=
VIDEO_ES
;
p_dec
->
fmt_out
.
i_codec
=
0
;
return
VLC_SUCCESS
;
}
...
...
modules/codec/quicktime.c
View file @
7a0c49ac
...
...
@@ -265,6 +265,7 @@ static int Open( vlc_object_t *p_this )
#ifdef LOADER
p_dec
->
p_sys
=
NULL
;
p_dec
->
pf_decode_video
=
DecodeVideo
;
p_dec
->
fmt_out
.
i_cat
=
VIDEO_ES
;
return
VLC_SUCCESS
;
#else
return
OpenVideo
(
p_dec
);
...
...
@@ -303,6 +304,7 @@ static int Open( vlc_object_t *p_this )
#ifdef LOADER
p_dec
->
p_sys
=
NULL
;
p_dec
->
pf_decode_audio
=
DecodeAudio
;
p_dec
->
fmt_out
.
i_cat
=
AUDIO_ES
;
return
VLC_SUCCESS
;
#else
...
...
modules/codec/shine/shine_mod.c
View file @
7a0c49ac
...
...
@@ -96,10 +96,9 @@ static int OpenEncoder( vlc_object_t *p_this )
p_enc
->
fmt_out
.
i_bitrate
,
p_enc
->
fmt_out
.
audio
.
i_rate
,
p_enc
->
fmt_out
.
audio
.
i_channels
);
p_
sys
=
p_enc
->
p_sys
=
malloc
(
sizeof
(
encoder_sys_t
)
);
p_
enc
->
p_sys
=
p_sys
=
calloc
(
1
,
sizeof
(
*
p_sys
)
);
if
(
!
p_sys
)
return
VLC_ENOMEM
;
memset
(
p_sys
,
0
,
sizeof
(
encoder_sys_t
)
);
if
(
!
(
p_sys
->
p_fifo
=
block_FifoNew
()
)
)
{
...
...
@@ -111,6 +110,7 @@ static int OpenEncoder( vlc_object_t *p_this )
p_enc
->
fmt_out
.
audio
.
i_channels
,
p_enc
->
fmt_out
.
i_bitrate
/
1000
);
p_enc
->
pf_encode_audio
=
EncodeFrame
;
p_enc
->
fmt_out
.
i_cat
=
AUDIO_ES
;
return
VLC_SUCCESS
;
}
...
...
modules/codec/subtitles/subsdec.c
View file @
7a0c49ac
...
...
@@ -156,14 +156,15 @@ static int OpenDecoder( vlc_object_t *p_this )
}
p_dec
->
pf_decode_sub
=
DecodeBlock
;
p_dec
->
fmt_out
.
i_cat
=
SPU_ES
;
p_dec
->
fmt_out
.
i_codec
=
0
;
/* Allocate the memory needed to store the decoder's structure */
p_dec
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
*
p_sys
)
);
p_dec
->
p_sys
=
p_sys
=
calloc
(
1
,
sizeof
(
*
p_sys
)
);
if
(
p_sys
==
NULL
)
return
VLC_ENOMEM
;
/* init of p_sys */
memset
(
p_sys
,
0
,
sizeof
(
*
p_sys
)
);
p_sys
->
i_align
=
0
;
p_sys
->
iconv_handle
=
(
vlc_iconv_t
)
-
1
;
p_sys
->
b_autodetect_utf8
=
false
;
...
...
modules/codec/subtitles/subsusf.c
View file @
7a0c49ac
...
...
@@ -76,6 +76,8 @@ static int OpenDecoder( vlc_object_t *p_this )
return
VLC_ENOMEM
;
p_dec
->
pf_decode_sub
=
DecodeBlock
;
p_dec
->
fmt_out
.
i_cat
=
SPU_ES
;
p_dec
->
fmt_out
.
i_codec
=
0
;
/* Unused fields of p_sys - not needed for USF decoding */
p_sys
->
b_ass
=
false
;
...
...
modules/codec/subtitles/t140.c
View file @
7a0c49ac
...
...
@@ -70,6 +70,7 @@ static int Open( vlc_object_t *p_this )
p_enc
->
p_sys
=
NULL
;
p_enc
->
pf_encode_sub
=
Encode
;
p_enc
->
fmt_out
.
i_cat
=
SPU_ES
;
return
VLC_SUCCESS
;
}
...
...
modules/codec/telx.c
View file @
7a0c49ac
...
...
@@ -181,11 +181,11 @@ static int Open( vlc_object_t *p_this )
}
p_dec
->
pf_decode_sub
=
Decode
;
p_sys
=
p_dec
->
p_sys
=
malloc
(
sizeof
(
decoder_sys_t
)
);
p_sys
=
p_dec
->
p_sys
=
calloc
(
1
,
sizeof
(
*
p_sys
)
);
if
(
p_sys
==
NULL
)
return
VLC_ENOMEM
;
memset
(
p_sys
,
0
,
sizeof
(
decoder_sys_t
)
)
;
p_dec
->
fmt_out
.
i_cat
=
SPU_ES
;
p_dec
->
fmt_out
.
i_codec
=
0
;
p_sys
->
i_align
=
0
;
for
(
i
=
0
;
i
<
9
;
i
++
)
...
...
modules/codec/twolame.c
View file @
7a0c49ac
...
...
@@ -165,6 +165,8 @@ static int OpenEncoder( vlc_object_t *p_this )
p_enc
->
pf_encode_audio
=
Encode
;
p_enc
->
fmt_in
.
i_codec
=
AOUT_FMT_S16_NE
;
p_enc
->
fmt_out
.
i_cat
=
AUDIO_ES
;
p_enc
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'a'
);
config_ChainParse
(
p_enc
,
ENC_CFG_PREFIX
,
ppsz_enc_options
,
p_enc
->
p_cfg
);
...
...
modules/codec/x264.c
View file @
7a0c49ac
...
...
@@ -780,6 +780,7 @@ static int Open ( vlc_object_t *p_this )
config_ChainParse
(
p_enc
,
SOUT_CFG_PREFIX
,
ppsz_sout_options
,
p_enc
->
p_cfg
);
p_enc
->
fmt_out
.
i_cat
=
VIDEO_ES
;
p_enc
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'h'
,
'2'
,
'6'
,
'4'
);
p_enc
->
fmt_in
.
i_codec
=
VLC_FOURCC
(
'I'
,
'4'
,
'2'
,
'0'
);
...
...
modules/codec/xvmc/xxmc.c
View file @
7a0c49ac
...
...
@@ -137,12 +137,11 @@ static int OpenDecoder( vlc_object_t *p_this )
msg_Dbg
(
p_dec
,
"OpenDecoder Entering"
);
/* Allocate the memory needed to store the decoder's structure */
p_dec
->
p_sys
=
p_sys
=
(
decoder_sys_t
*
)
malloc
(
sizeof
(
decoder_sys_t
)
);
p_dec
->
p_sys
=
p_sys
=
calloc
(
1
,
sizeof
(
*
p_sys
)
);
if
(
!
p_sys
)
return
VLC_ENOMEM
;
/* Initialize the thread properties */
memset
(
p_sys
,
0
,
sizeof
(
decoder_sys_t
)
);
p_sys
->
p_mpeg2dec
=
NULL
;
p_sys
->
p_synchro
=
NULL
;
p_sys
->
p_info
=
NULL
;
...
...
@@ -199,6 +198,8 @@ static int OpenDecoder( vlc_object_t *p_this )
p_sys
->
p_info
=
mpeg2_info
(
p_sys
->
p_mpeg2dec
);
p_dec
->
pf_decode_video
=
DecodeBlock
;
p_dec
->
fmt_out
.
i_cat
=
VIDEO_ES
;
p_dec
->
fmt_out
.
i_codec
=
0
;
f_wd_dec
=
fopen
(
"/vlc/dec_pid"
,
"w"
);
if
(
f_wd_dec
!=
NULL
)
...
...
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