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
f1588c97
Commit
f1588c97
authored
Apr 30, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fortune
parent
8865c5c7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
13 deletions
+35
-13
doc/fortunes.txt
doc/fortunes.txt
+6
-0
modules/demux/asf/asf.c
modules/demux/asf/asf.c
+2
-0
modules/mux/asf.c
modules/mux/asf.c
+7
-0
modules/mux/avi.c
modules/mux/avi.c
+20
-13
No files found.
doc/fortunes.txt
View file @
f1588c97
...
@@ -642,3 +642,9 @@ VLC is the greatest thing since sliced bread!
...
@@ -642,3 +642,9 @@ VLC is the greatest thing since sliced bread!
-- http://forum.videolan.org/
-- http://forum.videolan.org/
%
%
* E-bola is bouncing up and down while enjoying: HTTP/1.1 200 OK
* E-bola is bouncing up and down while enjoying: Content-type: text/html; charset=UTF-8
* E-bola is bouncing up and down while enjoying: Cache-Control: no-cache
* E-bola is bouncing up and down while enjoying: Content-Length: 25
* E-bola is bouncing up and down while enjoying: --
%
modules/demux/asf/asf.c
View file @
f1588c97
...
@@ -664,6 +664,8 @@ static int DemuxInit( demux_t *p_demux )
...
@@ -664,6 +664,8 @@ static int DemuxInit( demux_t *p_demux )
es_format_Init
(
&
fmt
,
AUDIO_ES
,
0
);
es_format_Init
(
&
fmt
,
AUDIO_ES
,
0
);
i_format
=
GetWLE
(
&
p_data
[
0
]
);
i_format
=
GetWLE
(
&
p_data
[
0
]
);
fprintf
(
stderr
,
"Wave format %i
\n
"
,
i_format
);
wf_tag_to_fourcc
(
i_format
,
&
fmt
.
i_codec
,
NULL
);
wf_tag_to_fourcc
(
i_format
,
&
fmt
.
i_codec
,
NULL
);
fmt
.
audio
.
i_channels
=
GetWLE
(
&
p_data
[
2
]
);
fmt
.
audio
.
i_channels
=
GetWLE
(
&
p_data
[
2
]
);
fmt
.
audio
.
i_rate
=
GetDWLE
(
&
p_data
[
4
]
);
fmt
.
audio
.
i_rate
=
GetDWLE
(
&
p_data
[
4
]
);
...
...
modules/mux/asf.c
View file @
f1588c97
static
int
i_global
=
0
,
i_passed
=
0
,
i_written
=
0
;
/*****************************************************************************
/*****************************************************************************
* asf.c: asf muxer module for vlc
* asf.c: asf muxer module for vlc
*****************************************************************************
*****************************************************************************
...
@@ -583,6 +584,8 @@ static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input )
...
@@ -583,6 +584,8 @@ static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input )
static
int
Mux
(
sout_mux_t
*
p_mux
)
static
int
Mux
(
sout_mux_t
*
p_mux
)
{
{
sout_mux_sys_t
*
p_sys
=
p_mux
->
p_sys
;
sout_mux_sys_t
*
p_sys
=
p_mux
->
p_sys
;
i_global
++
;
fprintf
(
stderr
,
"Called %i
\n
"
,
i_global
);
if
(
p_sys
->
b_write_header
)
if
(
p_sys
->
b_write_header
)
{
{
...
@@ -608,6 +611,8 @@ static int Mux( sout_mux_t *p_mux )
...
@@ -608,6 +611,8 @@ static int Mux( sout_mux_t *p_mux )
/* not enough data */
/* not enough data */
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
i_passed
++
;
fprintf
(
stderr
,
"Passed %i
\n
"
,
i_passed
);
if
(
p_sys
->
i_dts_first
<
0
)
if
(
p_sys
->
i_dts_first
<
0
)
{
{
...
@@ -625,6 +630,8 @@ static int Mux( sout_mux_t *p_mux )
...
@@ -625,6 +630,8 @@ static int Mux( sout_mux_t *p_mux )
if
(
(
pk
=
asf_packet_create
(
p_mux
,
tk
,
data
)
)
)
if
(
(
pk
=
asf_packet_create
(
p_mux
,
tk
,
data
)
)
)
{
{
i_written
++
;
fprintf
(
stderr
,
"Written %i
\n
"
,
i_written
);
sout_AccessOutWrite
(
p_mux
->
p_access
,
pk
);
sout_AccessOutWrite
(
p_mux
->
p_access
,
pk
);
}
}
}
}
...
...
modules/mux/avi.c
View file @
f1588c97
static
int
i_global
=
0
;
/*****************************************************************************
/*****************************************************************************
* avi.c
* avi.c
*****************************************************************************
*****************************************************************************
...
@@ -110,7 +111,7 @@ struct sout_mux_sys_t
...
@@ -110,7 +111,7 @@ struct sout_mux_sys_t
};
};
// FIXME FIXME
// FIXME FIXME
#define HDR_SIZE
10240
#define HDR_SIZE
4096
/* Flags in avih */
/* Flags in avih */
#define AVIF_HASINDEX 0x00000010 // Index at end of file?
#define AVIF_HASINDEX 0x00000010 // Index at end of file?
...
@@ -404,6 +405,7 @@ static int Mux ( sout_mux_t *p_mux )
...
@@ -404,6 +405,7 @@ static int Mux ( sout_mux_t *p_mux )
avi_stream_t
*
p_stream
;
avi_stream_t
*
p_stream
;
int
i_stream
;
int
i_stream
;
int
i
;
int
i
;
i_global
++
;
if
(
p_sys
->
b_write_header
)
if
(
p_sys
->
b_write_header
)
{
{
...
@@ -474,7 +476,6 @@ static int Mux ( sout_mux_t *p_mux )
...
@@ -474,7 +476,6 @@ static int Mux ( sout_mux_t *p_mux )
{
{
p_data
=
block_Realloc
(
p_data
,
0
,
p_data
->
i_buffer
+
1
);
p_data
=
block_Realloc
(
p_data
,
0
,
p_data
->
i_buffer
+
1
);
}
}
p_sys
->
i_movi_size
+=
p_data
->
i_buffer
;
p_sys
->
i_movi_size
+=
p_data
->
i_buffer
;
sout_AccessOutWrite
(
p_mux
->
p_access
,
p_data
);
sout_AccessOutWrite
(
p_mux
->
p_access
,
p_data
);
}
}
...
@@ -763,9 +764,9 @@ static int avi_HeaderAdd_strf( sout_mux_t *p_mux,
...
@@ -763,9 +764,9 @@ static int avi_HeaderAdd_strf( sout_mux_t *p_mux,
bo_AddDWordLE
(
p_bo
,
p_stream
->
p_bih
->
biYPelsPerMeter
);
bo_AddDWordLE
(
p_bo
,
p_stream
->
p_bih
->
biYPelsPerMeter
);
bo_AddDWordLE
(
p_bo
,
p_stream
->
p_bih
->
biClrUsed
);
bo_AddDWordLE
(
p_bo
,
p_stream
->
p_bih
->
biClrUsed
);
bo_AddDWordLE
(
p_bo
,
p_stream
->
p_bih
->
biClrImportant
);
bo_AddDWordLE
(
p_bo
,
p_stream
->
p_bih
->
biClrImportant
);
bo_AddMem
(
p_bo
,
//
bo_AddMem( p_bo,
p_stream
->
p_bih
->
biSize
-
sizeof
(
BITMAPINFOHEADER
),
//
p_stream->p_bih->biSize - sizeof( BITMAPINFOHEADER ),
(
uint8_t
*
)
&
p_stream
->
p_bih
[
1
]
);
//
(uint8_t*)&p_stream->p_bih[1] );
break
;
break
;
}
}
...
@@ -791,32 +792,38 @@ static block_t *avi_HeaderCreateRIFF( sout_mux_t *p_mux )
...
@@ -791,32 +792,38 @@ static block_t *avi_HeaderCreateRIFF( sout_mux_t *p_mux )
int
i_stream
;
int
i_stream
;
int
i_maxbytespersec
;
int
i_maxbytespersec
;
int
i_junk
;
int
i_junk
;
buffer_out_t
bo
;
buffer_out_t
bo
,
bo_save
;
p_hdr
=
block_New
(
p_mux
,
HDR_SIZE
);
/* Real header + LIST-movi */
memset
(
p_hdr
->
p_buffer
,
0
,
HDR_SIZE
);
p_hdr
=
block_New
(
p_mux
,
HDR_SIZE
+
12
);
memset
(
p_hdr
->
p_buffer
,
0
,
HDR_SIZE
+
12
);
bo_Init
(
&
bo
,
HDR_SIZE
,
p_hdr
->
p_buffer
);
bo_Init
(
&
bo
,
HDR_SIZE
+
12
,
p_hdr
->
p_buffer
);
bo_AddFCC
(
&
bo
,
"RIFF"
);
bo_AddFCC
(
&
bo
,
"RIFF"
);
bo_AddDWordLE
(
&
bo
,
p_sys
->
i_movi_size
+
HDR_SIZE
-
8
+
p_sys
->
i_idx1_size
);
bo_AddDWordLE
(
&
bo
,
p_sys
->
i_movi_size
+
HDR_SIZE
+
p_sys
->
i_idx1_size
);
bo_AddFCC
(
&
bo
,
"AVI "
);
bo_AddFCC
(
&
bo
,
"AVI "
);
bo_AddFCC
(
&
bo
,
"LIST"
);
bo_AddFCC
(
&
bo
,
"LIST"
);
bo_AddDWordLE
(
&
bo
,
HDR_SIZE
-
8
);
memcpy
(
&
bo_save
,
&
bo
,
sizeof
(
buffer_out_t
)
);
bo_AddDWordLE
(
&
bo
,
0
);
bo_AddFCC
(
&
bo
,
"hdrl"
);
bo_AddFCC
(
&
bo
,
"hdrl"
);
avi_HeaderAdd_avih
(
p_mux
,
&
bo
);
avi_HeaderAdd_avih
(
p_mux
,
&
bo
);
for
(
i_stream
=
0
,
i_maxbytespersec
=
0
;
i_stream
<
p_sys
->
i_streams
;
i_stream
++
)
for
(
i_stream
=
0
,
i_maxbytespersec
=
0
;
i_stream
<
p_sys
->
i_streams
;
i_stream
++
)
{
{
avi_HeaderAdd_strl
(
p_mux
,
&
bo
,
&
p_sys
->
stream
[
i_stream
]
);
avi_HeaderAdd_strl
(
p_mux
,
&
bo
,
&
p_sys
->
stream
[
i_stream
]
);
}
}
i_junk
=
HDR_SIZE
-
bo
.
i_buffer
-
8
-
12
;
bo_AddDWordLE
(
&
bo_save
,
bo
.
i_buffer
-
bo_save
.
i_buffer
-
4
);
i_junk
=
HDR_SIZE
-
bo
.
i_buffer
-
8
;
bo_AddFCC
(
&
bo
,
"JUNK"
);
bo_AddFCC
(
&
bo
,
"JUNK"
);
bo_AddDWordLE
(
&
bo
,
i_junk
);
bo_AddDWordLE
(
&
bo
,
i_junk
);
bo
.
i_buffer
+=
i_junk
;
bo
.
i_buffer
+=
i_junk
;
fprintf
(
stderr
,
"Writing list-movi at %i
\n
"
,
bo
.
i_buffer
);
bo_AddFCC
(
&
bo
,
"LIST"
);
bo_AddFCC
(
&
bo
,
"LIST"
);
bo_AddDWordLE
(
&
bo
,
p_sys
->
i_movi_size
+
4
);
bo_AddDWordLE
(
&
bo
,
p_sys
->
i_movi_size
+
4
);
bo_AddFCC
(
&
bo
,
"movi"
);
bo_AddFCC
(
&
bo
,
"movi"
);
...
...
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