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
1b5635d9
Commit
1b5635d9
authored
Dec 18, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
araw: cosmetics
parent
c55da911
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
33 deletions
+29
-33
modules/codec/araw.c
modules/codec/araw.c
+29
-33
No files found.
modules/codec/araw.c
View file @
1b5635d9
...
@@ -85,8 +85,8 @@ static const uint16_t pi_channels_maps[] =
...
@@ -85,8 +85,8 @@ static const uint16_t pi_channels_maps[] =
AOUT_CHANS_7_0
,
AOUT_CHANS_7_1
,
AOUT_CHANS_8_1
,
AOUT_CHANS_7_0
,
AOUT_CHANS_7_1
,
AOUT_CHANS_8_1
,
};
};
static
void
DecodeS20B
(
void
*
,
const
uint8_t
*
,
unsigned
);
static
void
S20BDecode
(
void
*
,
const
uint8_t
*
,
unsigned
);
static
void
D
ecodeDAT12
(
void
*
,
const
uint8_t
*
,
unsigned
);
static
void
D
AT12Decode
(
void
*
,
const
uint8_t
*
,
unsigned
);
/*****************************************************************************
/*****************************************************************************
* DecoderOpen: probe the decoder and return score
* DecoderOpen: probe the decoder and return score
...
@@ -137,7 +137,7 @@ static int DecoderOpen( vlc_object_t *p_this )
...
@@ -137,7 +137,7 @@ static int DecoderOpen( vlc_object_t *p_this )
break
;
break
;
case
VLC_CODEC_S20B
:
case
VLC_CODEC_S20B
:
format
=
VLC_CODEC_S32N
;
format
=
VLC_CODEC_S32N
;
decode
=
DecodeS20B
;
decode
=
S20BDecode
;
bits
=
20
;
bits
=
20
;
break
;
break
;
case
VLC_CODEC_S16L
:
case
VLC_CODEC_S16L
:
...
@@ -146,7 +146,7 @@ static int DecoderOpen( vlc_object_t *p_this )
...
@@ -146,7 +146,7 @@ static int DecoderOpen( vlc_object_t *p_this )
break
;
break
;
case
VLC_CODEC_DAT12
:
case
VLC_CODEC_DAT12
:
format
=
VLC_CODEC_S16N
;
format
=
VLC_CODEC_S16N
;
decode
=
D
ecodeDAT12
;
decode
=
D
AT12Decode
;
bits
=
12
;
bits
=
12
;
break
;
break
;
case
VLC_CODEC_S8
:
case
VLC_CODEC_S8
:
...
@@ -274,7 +274,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
...
@@ -274,7 +274,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
return
p_out
;
return
p_out
;
}
}
static
void
DecodeS20B
(
void
*
outp
,
const
uint8_t
*
in
,
unsigned
samples
)
static
void
S20BDecode
(
void
*
outp
,
const
uint8_t
*
in
,
unsigned
samples
)
{
{
int32_t
*
out
=
outp
;
int32_t
*
out
=
outp
;
...
@@ -305,7 +305,7 @@ static int16_t dat12tos16( uint16_t y )
...
@@ -305,7 +305,7 @@ static int16_t dat12tos16( uint16_t y )
return
(
y
-
diff
[
d
])
<<
shift
[
d
];
return
(
y
-
diff
[
d
])
<<
shift
[
d
];
}
}
static
void
D
ecodeDAT12
(
void
*
outp
,
const
uint8_t
*
in
,
unsigned
samples
)
static
void
D
AT12Decode
(
void
*
outp
,
const
uint8_t
*
in
,
unsigned
samples
)
{
{
int32_t
*
out
=
outp
;
int32_t
*
out
=
outp
;
...
@@ -339,39 +339,35 @@ static int EncoderOpen( vlc_object_t *p_this )
...
@@ -339,39 +339,35 @@ static int EncoderOpen( vlc_object_t *p_this )
{
{
encoder_t
*
p_enc
=
(
encoder_t
*
)
p_this
;
encoder_t
*
p_enc
=
(
encoder_t
*
)
p_this
;
if
(
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_U8
||
switch
(
p_enc
->
fmt_out
.
i_codec
)
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_S8
)
{
{
case
VLC_CODEC_U8
:
case
VLC_CODEC_S8
:
p_enc
->
fmt_out
.
audio
.
i_bitspersample
=
8
;
p_enc
->
fmt_out
.
audio
.
i_bitspersample
=
8
;
}
break
;
else
if
(
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_U16L
||
case
VLC_CODEC_U16L
:
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_U16B
||
case
VLC_CODEC_U16B
:
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_S16L
||
case
VLC_CODEC_S16L
:
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_S16B
)
case
VLC_CODEC_S16B
:
{
p_enc
->
fmt_out
.
audio
.
i_bitspersample
=
16
;
p_enc
->
fmt_out
.
audio
.
i_bitspersample
=
16
;
}
break
;
else
if
(
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_U24L
||
case
VLC_CODEC_U24L
:
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_U24B
||
case
VLC_CODEC_U24B
:
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_S24L
||
case
VLC_CODEC_S24L
:
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_S24B
)
case
VLC_CODEC_S24B
:
{
p_enc
->
fmt_out
.
audio
.
i_bitspersample
=
24
;
p_enc
->
fmt_out
.
audio
.
i_bitspersample
=
24
;
}
break
;
else
if
(
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_U32L
||
case
VLC_CODEC_U32L
:
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_U32B
||
case
VLC_CODEC_U32B
:
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_S32L
||
case
VLC_CODEC_S32L
:
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_S32B
||
case
VLC_CODEC_S32B
:
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_FL32
)
case
VLC_CODEC_FL32
:
{
p_enc
->
fmt_out
.
audio
.
i_bitspersample
=
32
;
p_enc
->
fmt_out
.
audio
.
i_bitspersample
=
32
;
}
break
;
else
if
(
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_FL64
)
case
VLC_CODEC_FL64
:
{
p_enc
->
fmt_out
.
audio
.
i_bitspersample
=
64
;
p_enc
->
fmt_out
.
audio
.
i_bitspersample
=
64
;
}
break
;
else
default:
{
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
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