Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
8156e036
Commit
8156e036
authored
Jul 16, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/snowdec: remove mpegvideoencdsp dependency
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b67a0e99
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
16 deletions
+20
-16
configure
configure
+1
-1
snow.c
libavcodec/snow.c
+0
-15
snowenc.c
libavcodec/snowenc.c
+19
-0
No files found.
configure
View file @
8156e036
...
@@ -2157,7 +2157,7 @@ rv30_decoder_select="error_resilience golomb h264chroma h264pred h264qpel mpeg_e
...
@@ -2157,7 +2157,7 @@ rv30_decoder_select="error_resilience golomb h264chroma h264pred h264qpel mpeg_e
rv40_decoder_select
=
"error_resilience golomb h264chroma h264pred h264qpel mpeg_er mpegvideo videodsp"
rv40_decoder_select
=
"error_resilience golomb h264chroma h264pred h264qpel mpeg_er mpegvideo videodsp"
shorten_decoder_select
=
"golomb"
shorten_decoder_select
=
"golomb"
sipr_decoder_select
=
"lsp"
sipr_decoder_select
=
"lsp"
snow_decoder_select
=
"dsputil dwt h264qpel hpeldsp rangecoder
mpegvideoenc
"
snow_decoder_select
=
"dsputil dwt h264qpel hpeldsp rangecoder"
snow_encoder_select
=
"aandcttables dsputil dwt h264qpel hpeldsp mpegvideoenc rangecoder"
snow_encoder_select
=
"aandcttables dsputil dwt h264qpel hpeldsp mpegvideoenc rangecoder"
sonic_decoder_select
=
"golomb rangecoder"
sonic_decoder_select
=
"golomb rangecoder"
sonic_encoder_select
=
"golomb rangecoder"
sonic_encoder_select
=
"golomb rangecoder"
...
...
libavcodec/snow.c
View file @
8156e036
...
@@ -433,7 +433,6 @@ av_cold int ff_snow_common_init(AVCodecContext *avctx){
...
@@ -433,7 +433,6 @@ av_cold int ff_snow_common_init(AVCodecContext *avctx){
ff_videodsp_init
(
&
s
->
vdsp
,
8
);
ff_videodsp_init
(
&
s
->
vdsp
,
8
);
ff_dwt_init
(
&
s
->
dwt
);
ff_dwt_init
(
&
s
->
dwt
);
ff_h264qpel_init
(
&
s
->
h264qpel
,
8
);
ff_h264qpel_init
(
&
s
->
h264qpel
,
8
);
ff_mpegvideoencdsp_init
(
&
s
->
mpvencdsp
,
avctx
);
#define mcf(dx,dy)\
#define mcf(dx,dy)\
s->qdsp.put_qpel_pixels_tab [0][dy+dx/4]=\
s->qdsp.put_qpel_pixels_tab [0][dy+dx/4]=\
...
@@ -642,20 +641,6 @@ int ff_snow_frame_start(SnowContext *s){
...
@@ -642,20 +641,6 @@ int ff_snow_frame_start(SnowContext *s){
int
w
=
s
->
avctx
->
width
;
//FIXME round up to x16 ?
int
w
=
s
->
avctx
->
width
;
//FIXME round up to x16 ?
int
h
=
s
->
avctx
->
height
;
int
h
=
s
->
avctx
->
height
;
if
(
s
->
current_picture
->
data
[
0
]
&&
!
(
s
->
avctx
->
flags
&
CODEC_FLAG_EMU_EDGE
))
{
s
->
mpvencdsp
.
draw_edges
(
s
->
current_picture
->
data
[
0
],
s
->
current_picture
->
linesize
[
0
],
w
,
h
,
EDGE_WIDTH
,
EDGE_WIDTH
,
EDGE_TOP
|
EDGE_BOTTOM
);
if
(
s
->
current_picture
->
data
[
2
])
{
s
->
mpvencdsp
.
draw_edges
(
s
->
current_picture
->
data
[
1
],
s
->
current_picture
->
linesize
[
1
],
w
>>
s
->
chroma_h_shift
,
h
>>
s
->
chroma_v_shift
,
EDGE_WIDTH
>>
s
->
chroma_h_shift
,
EDGE_WIDTH
>>
s
->
chroma_v_shift
,
EDGE_TOP
|
EDGE_BOTTOM
);
s
->
mpvencdsp
.
draw_edges
(
s
->
current_picture
->
data
[
2
],
s
->
current_picture
->
linesize
[
2
],
w
>>
s
->
chroma_h_shift
,
h
>>
s
->
chroma_v_shift
,
EDGE_WIDTH
>>
s
->
chroma_h_shift
,
EDGE_WIDTH
>>
s
->
chroma_v_shift
,
EDGE_TOP
|
EDGE_BOTTOM
);
}
}
ff_snow_release_buffer
(
s
->
avctx
);
ff_snow_release_buffer
(
s
->
avctx
);
tmp
=
s
->
last_picture
[
s
->
max_ref_frames
-
1
];
tmp
=
s
->
last_picture
[
s
->
max_ref_frames
-
1
];
...
...
libavcodec/snowenc.c
View file @
8156e036
...
@@ -64,6 +64,8 @@ static av_cold int encode_init(AVCodecContext *avctx)
...
@@ -64,6 +64,8 @@ static av_cold int encode_init(AVCodecContext *avctx)
ff_snow_common_end
(
avctx
->
priv_data
);
ff_snow_common_end
(
avctx
->
priv_data
);
return
ret
;
return
ret
;
}
}
ff_mpegvideoencdsp_init
(
&
s
->
mpvencdsp
,
avctx
);
ff_snow_alloc_blocks
(
s
);
ff_snow_alloc_blocks
(
s
);
s
->
version
=
0
;
s
->
version
=
0
;
...
@@ -1602,6 +1604,23 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
...
@@ -1602,6 +1604,23 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
s
->
lambda
=
0
;
s
->
lambda
=
0
;
}
//else keep previous frame's qlog until after motion estimation
}
//else keep previous frame's qlog until after motion estimation
if
(
s
->
current_picture
->
data
[
0
]
&&
!
(
s
->
avctx
->
flags
&
CODEC_FLAG_EMU_EDGE
))
{
int
w
=
s
->
avctx
->
width
;
int
h
=
s
->
avctx
->
height
;
s
->
mpvencdsp
.
draw_edges
(
s
->
current_picture
->
data
[
0
],
s
->
current_picture
->
linesize
[
0
],
w
,
h
,
EDGE_WIDTH
,
EDGE_WIDTH
,
EDGE_TOP
|
EDGE_BOTTOM
);
if
(
s
->
current_picture
->
data
[
2
])
{
s
->
mpvencdsp
.
draw_edges
(
s
->
current_picture
->
data
[
1
],
s
->
current_picture
->
linesize
[
1
],
w
>>
s
->
chroma_h_shift
,
h
>>
s
->
chroma_v_shift
,
EDGE_WIDTH
>>
s
->
chroma_h_shift
,
EDGE_WIDTH
>>
s
->
chroma_v_shift
,
EDGE_TOP
|
EDGE_BOTTOM
);
s
->
mpvencdsp
.
draw_edges
(
s
->
current_picture
->
data
[
2
],
s
->
current_picture
->
linesize
[
2
],
w
>>
s
->
chroma_h_shift
,
h
>>
s
->
chroma_v_shift
,
EDGE_WIDTH
>>
s
->
chroma_h_shift
,
EDGE_WIDTH
>>
s
->
chroma_v_shift
,
EDGE_TOP
|
EDGE_BOTTOM
);
}
}
ff_snow_frame_start
(
s
);
ff_snow_frame_start
(
s
);
avctx
->
coded_frame
=
s
->
current_picture
;
avctx
->
coded_frame
=
s
->
current_picture
;
...
...
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