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
628e6d01
Commit
628e6d01
authored
Aug 23, 2012
by
Joseph Artsimovich
Committed by
Michael Niedermayer
Aug 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix partially hidden macroblocks for 10-bit DNxHD.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
15acfa21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
dnxhdenc.c
libavcodec/dnxhdenc.c
+12
-4
No files found.
libavcodec/dnxhdenc.c
View file @
628e6d01
...
...
@@ -71,13 +71,21 @@ static void dnxhd_8bit_get_pixels_8x4_sym(DCTELEM *restrict block, const uint8_t
static
av_always_inline
void
dnxhd_10bit_get_pixels_8x4_sym
(
DCTELEM
*
restrict
block
,
const
uint8_t
*
pixels
,
int
line_size
)
{
int
i
;
block
+=
32
;
const
uint16_t
*
pixels16
=
pixels
;
line_size
>>=
1
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
memcpy
(
block
+
i
*
8
,
pixels
+
i
*
line_size
,
8
*
sizeof
(
*
block
));
memcpy
(
block
-
(
i
+
1
)
*
8
,
pixels
+
i
*
line_size
,
8
*
sizeof
(
*
block
));
block
[
0
]
=
pixels16
[
0
];
block
[
1
]
=
pixels16
[
1
];
block
[
2
]
=
pixels16
[
2
];
block
[
3
]
=
pixels16
[
3
];
block
[
4
]
=
pixels16
[
4
];
block
[
5
]
=
pixels16
[
5
];
block
[
6
]
=
pixels16
[
6
];
block
[
7
]
=
pixels16
[
7
];
pixels16
+=
line_size
;
block
+=
8
;
}
memcpy
(
block
,
block
-
8
,
sizeof
(
*
block
)
*
8
);
memcpy
(
block
+
8
,
block
-
16
,
sizeof
(
*
block
)
*
8
);
memcpy
(
block
+
16
,
block
-
24
,
sizeof
(
*
block
)
*
8
);
memcpy
(
block
+
24
,
block
-
32
,
sizeof
(
*
block
)
*
8
);
}
static
int
dnxhd_10bit_dct_quantize
(
MpegEncContext
*
ctx
,
DCTELEM
*
block
,
...
...
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