Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
23664624
Commit
23664624
authored
Jun 02, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace #ifdef + av_log() combinations by av_dlog().
parent
df96f22d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
34 deletions
+19
-34
ivi_common.c
libavcodec/ivi_common.c
+2
-2
svq1dec.c
libavcodec/svq1dec.c
+10
-18
vorbisdec.c
libavcodec/vorbisdec.c
+5
-8
dv1394.c
libavdevice/dv1394.c
+2
-6
No files found.
libavcodec/ivi_common.c
View file @
23664624
...
...
@@ -418,8 +418,8 @@ int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile)
break
;
pos
=
band
->
scan
[
scan_pos
];
if
(
IVI_DEBUG
&&
!
val
)
av_
log
(
NULL
,
AV_LOG_ERROR
,
"Val = 0 encountered!
\n
"
);
if
(
!
val
)
av_
dlog
(
NULL
,
"Val = 0 encountered!
\n
"
);
q
=
(
base_tab
[
pos
]
*
quant
)
>>
9
;
if
(
q
>
1
)
...
...
libavcodec/svq1dec.c
View file @
23664624
...
...
@@ -238,9 +238,9 @@ static int svq1_decode_block_intra (GetBitContext *bitbuf, uint8_t *pixels, int
}
if
((
stages
>
0
)
&&
(
level
>=
4
))
{
#ifdef DEBUG_SVQ1
av_log
(
s
->
avctx
,
AV_LOG_INFO
,
"Error (svq1_decode_block_intra): invalid vector: stages=%i level=%i
\n
"
,
stages
,
level
);
#endif
av_dlog
(
s
->
avctx
,
"Error (svq1_decode_block_intra): invalid vector: stages=%i level=%i
\n
"
,
stages
,
level
);
return
-
1
;
/* invalid vector */
}
...
...
@@ -288,9 +288,9 @@ static int svq1_decode_block_non_intra (GetBitContext *bitbuf, uint8_t *pixels,
if
(
stages
==
-
1
)
continue
;
/* skip vector */
if
((
stages
>
0
)
&&
(
level
>=
4
))
{
#ifdef DEBUG_SVQ1
av_log
(
s
->
avctx
,
AV_LOG_INFO
,
"Error (svq1_decode_block_non_intra): invalid vector: stages=%i level=%i
\n
"
,
stages
,
level
);
#endif
av_dlog
(
s
->
avctx
,
"Error (svq1_decode_block_non_intra): invalid vector: stages=%i level=%i
\n
"
,
stages
,
level
);
return
-
1
;
/* invalid vector */
}
...
...
@@ -499,9 +499,7 @@ static int svq1_decode_delta_block (MpegEncContext *s, GetBitContext *bitbuf,
if
(
result
!=
0
)
{
#ifdef DEBUG_SVQ1
av_log
(
s
->
avctx
,
AV_LOG_INFO
,
"Error in svq1_motion_inter_block %i
\n
"
,
result
);
#endif
av_dlog
(
s
->
avctx
,
"Error in svq1_motion_inter_block %i
\n
"
,
result
);
break
;
}
result
=
svq1_decode_block_non_intra
(
bitbuf
,
current
,
pitch
);
...
...
@@ -512,9 +510,7 @@ static int svq1_decode_delta_block (MpegEncContext *s, GetBitContext *bitbuf,
if
(
result
!=
0
)
{
#ifdef DEBUG_SVQ1
av_log
(
s
->
avctx
,
AV_LOG_INFO
,
"Error in svq1_motion_inter_4v_block %i
\n
"
,
result
);
#endif
av_dlog
(
s
->
avctx
,
"Error in svq1_motion_inter_4v_block %i
\n
"
,
result
);
break
;
}
result
=
svq1_decode_block_non_intra
(
bitbuf
,
current
,
pitch
);
...
...
@@ -660,9 +656,7 @@ static int svq1_decode_frame(AVCodecContext *avctx,
if
(
result
!=
0
)
{
#ifdef DEBUG_SVQ1
av_log
(
s
->
avctx
,
AV_LOG_INFO
,
"Error in svq1_decode_frame_header %i
\n
"
,
result
);
#endif
av_dlog
(
s
->
avctx
,
"Error in svq1_decode_frame_header %i
\n
"
,
result
);
return
result
;
}
...
...
@@ -729,9 +723,7 @@ static int svq1_decode_frame(AVCodecContext *avctx,
linesize
,
pmv
,
x
,
y
);
if
(
result
!=
0
)
{
#ifdef DEBUG_SVQ1
av_log
(
s
->
avctx
,
AV_LOG_INFO
,
"Error in svq1_decode_delta_block %i
\n
"
,
result
);
#endif
av_dlog
(
s
->
avctx
,
"Error in svq1_decode_delta_block %i
\n
"
,
result
);
goto
err
;
}
}
...
...
libavcodec/vorbisdec.c
View file @
23664624
...
...
@@ -370,9 +370,7 @@ static int vorbis_parse_setup_hdr_codebooks(vorbis_context *vc)
float
last
=
0
.
0
;
unsigned
lookup_offset
=
i
;
#ifdef V_DEBUG
av_log
(
vc
->
avccontext
,
AV_LOG_INFO
,
"Lookup offset %u ,"
,
i
);
#endif
av_dlog
(
vc
->
avccontext
,
"Lookup offset %u ,"
,
i
);
for
(
k
=
0
;
k
<
dim
;
++
k
)
{
unsigned
multiplicand_offset
=
lookup_offset
%
codebook_lookup_values
;
...
...
@@ -383,12 +381,11 @@ static int vorbis_parse_setup_hdr_codebooks(vorbis_context *vc)
}
tmp_vlc_bits
[
j
]
=
tmp_vlc_bits
[
i
];
#ifdef V_DEBUG
av_log
(
vc
->
avccontext
,
AV_LOG_INFO
,
"real lookup offset %u, vector: "
,
j
);
av_dlog
(
vc
->
avccontext
,
"real lookup offset %u, vector: "
,
j
);
for
(
k
=
0
;
k
<
dim
;
++
k
)
av_
log
(
vc
->
avccontext
,
AV_LOG_INFO
,
" %f "
,
codebook_setup
->
codevectors
[
j
*
dim
+
k
]);
av_log
(
vc
->
avccontext
,
AV_LOG_INFO
,
"
\n
"
);
#endif
av_
dlog
(
vc
->
avccontext
,
" %f "
,
codebook_setup
->
codevectors
[
j
*
dim
+
k
]
);
av_dlog
(
vc
->
avccontext
,
"
\n
"
);
++
j
;
}
...
...
libavdevice/dv1394.c
View file @
23664624
...
...
@@ -177,15 +177,13 @@ restart_poll:
av_log
(
context
,
AV_LOG_ERROR
,
"Failed to get status: %s
\n
"
,
strerror
(
errno
));
return
AVERROR
(
EIO
);
}
#ifdef DV1394_DEBUG
av_log
(
context
,
AV_LOG_DEBUG
,
"DV1394: status
\n
"
av_dlog
(
context
,
"DV1394: status
\n
"
"
\t
active_frame
\t
%d
\n
"
"
\t
first_clear_frame
\t
%d
\n
"
"
\t
n_clear_frames
\t
%d
\n
"
"
\t
dropped_frames
\t
%d
\n
"
,
s
.
active_frame
,
s
.
first_clear_frame
,
s
.
n_clear_frames
,
s
.
dropped_frames
);
#endif
dv
->
avail
=
s
.
n_clear_frames
;
dv
->
index
=
s
.
first_clear_frame
;
...
...
@@ -200,10 +198,8 @@ restart_poll:
}
}
#ifdef DV1394_DEBUG
av_log
(
context
,
AV_LOG_DEBUG
,
"index %d, avail %d, done %d
\n
"
,
dv
->
index
,
dv
->
avail
,
av_dlog
(
context
,
"index %d, avail %d, done %d
\n
"
,
dv
->
index
,
dv
->
avail
,
dv
->
done
);
#endif
size
=
dv_produce_packet
(
dv
->
dv_demux
,
pkt
,
dv
->
ring
+
(
dv
->
index
*
DV1394_PAL_FRAME_SIZE
),
...
...
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