Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
b71bd0ed
Commit
b71bd0ed
authored
16 years ago
by
Diego Biurrun
Browse files
Options
Downloads
Patches
Plain Diff
Merge some declarations and initializations.
Originally committed as revision 17288 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
013cebfb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/mpegvideo_xvmc.c
+4
-9
4 additions, 9 deletions
libavcodec/mpegvideo_xvmc.c
with
4 additions
and
9 deletions
libavcodec/mpegvideo_xvmc.c
+
4
−
9
View file @
b71bd0ed
...
@@ -34,8 +34,7 @@
...
@@ -34,8 +34,7 @@
//set s->block
//set s->block
void
ff_xvmc_init_block
(
MpegEncContext
*
s
)
void
ff_xvmc_init_block
(
MpegEncContext
*
s
)
{
{
struct
xvmc_render_state
*
render
;
struct
xvmc_render_state
*
render
=
(
struct
xvmc_render_state
*
)
s
->
current_picture
.
data
[
2
];
render
=
(
struct
xvmc_render_state
*
)
s
->
current_picture
.
data
[
2
];
assert
(
render
);
assert
(
render
);
if
(
!
render
||
render
->
magic
!=
AV_XVMC_RENDER_MAGIC
)
{
if
(
!
render
||
render
->
magic
!=
AV_XVMC_RENDER_MAGIC
)
{
assert
(
0
);
assert
(
0
);
...
@@ -46,10 +45,9 @@ void ff_xvmc_init_block(MpegEncContext *s)
...
@@ -46,10 +45,9 @@ void ff_xvmc_init_block(MpegEncContext *s)
void
ff_xvmc_pack_pblocks
(
MpegEncContext
*
s
,
int
cbp
)
void
ff_xvmc_pack_pblocks
(
MpegEncContext
*
s
,
int
cbp
)
{
{
int
i
,
j
;
int
i
,
j
=
0
;
const
int
mb_block_count
=
4
+
(
1
<<
s
->
chroma_format
);
const
int
mb_block_count
=
4
+
(
1
<<
s
->
chroma_format
);
j
=
0
;
cbp
<<=
12
-
mb_block_count
;
cbp
<<=
12
-
mb_block_count
;
for
(
i
=
0
;
i
<
mb_block_count
;
i
++
)
{
for
(
i
=
0
;
i
<
mb_block_count
;
i
++
)
{
if
(
cbp
&
(
1
<<
11
))
if
(
cbp
&
(
1
<<
11
))
...
@@ -64,11 +62,9 @@ void ff_xvmc_pack_pblocks(MpegEncContext *s, int cbp)
...
@@ -64,11 +62,9 @@ void ff_xvmc_pack_pblocks(MpegEncContext *s, int cbp)
// They should be safe if they are called a few times for the same field!
// They should be safe if they are called a few times for the same field!
int
ff_xvmc_field_start
(
MpegEncContext
*
s
,
AVCodecContext
*
avctx
)
int
ff_xvmc_field_start
(
MpegEncContext
*
s
,
AVCodecContext
*
avctx
)
{
{
struct
xvmc_render_state
*
render
,
*
last
,
*
next
;
struct
xvmc_render_state
*
last
,
*
next
,
*
render
=
(
struct
xvmc_render_state
*
)
s
->
current_picture
.
data
[
2
]
;
assert
(
avctx
);
assert
(
avctx
);
render
=
(
struct
xvmc_render_state
*
)
s
->
current_picture
.
data
[
2
];
assert
(
render
);
assert
(
render
);
if
(
!
render
||
render
->
magic
!=
AV_XVMC_RENDER_MAGIC
)
if
(
!
render
||
render
->
magic
!=
AV_XVMC_RENDER_MAGIC
)
return
-
1
;
// make sure that this is a render packet
return
-
1
;
// make sure that this is a render packet
...
@@ -113,8 +109,7 @@ return -1;
...
@@ -113,8 +109,7 @@ return -1;
void
ff_xvmc_field_end
(
MpegEncContext
*
s
)
void
ff_xvmc_field_end
(
MpegEncContext
*
s
)
{
{
struct
xvmc_render_state
*
render
;
struct
xvmc_render_state
*
render
=
(
struct
xvmc_render_state
*
)
s
->
current_picture
.
data
[
2
];
render
=
(
struct
xvmc_render_state
*
)
s
->
current_picture
.
data
[
2
];
assert
(
render
);
assert
(
render
);
if
(
render
->
filled_mv_blocks_num
>
0
)
if
(
render
->
filled_mv_blocks_num
>
0
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment