Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
6c46174d
Commit
6c46174d
authored
Feb 13, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CrystalHD: comments
parent
15e31aa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
modules/codec/crystalhd.c
modules/codec/crystalhd.c
+8
-3
No files found.
modules/codec/crystalhd.c
View file @
6c46174d
...
...
@@ -32,6 +32,7 @@
#include <vlc_plugin.h>
#include <vlc_codec.h>
/* Workaround for some versions of libcrystalHD */
#if !defined(_WIN32) && !defined(__APPLE__)
# define __LINUX_USER__
#endif
...
...
@@ -168,6 +169,10 @@ static int OpenDecoder( vlc_object_t *p_this )
p_sys
->
i_sps_pps_size
=
0
;
p_sys
->
p_sps_pps_buf
=
NULL
;
/* Win32 code *
* We cannot link and ship BCM dll, even with LGPL license (too big)
* and if we don't ship it, the plugin would not work depending on the
* installation order => DLopen */
#ifdef USE_DL_OPENING
# define DLL_NAME "bcmDIL.dll"
# define PATHS_NB 3
...
...
@@ -270,7 +275,7 @@ static int OpenDecoder( vlc_object_t *p_this )
}
}
/* Always YUY2 color */
/* Always
use
YUY2 color */
if
(
BC_FUNC
(
DtsSetColorSpace
)(
p_sys
->
bcm_handle
,
OUTPUT_MODE422_YUY2
)
!=
BC_STS_SUCCESS
)
{
msg_Err
(
p_dec
,
"Couldn't set the color space. Please report this!"
);
...
...
@@ -557,8 +562,8 @@ static int crystal_insert_sps_pps(decoder_t *p_dec, uint8_t *p_buf, uint32_t i_b
/* Read infos in first 6 bytes */
i_profile
=
(
p_buf
[
1
]
<<
16
)
|
(
p_buf
[
2
]
<<
8
)
|
p_buf
[
3
];
p_sys
->
i_nal_size
=
(
p_buf
[
4
]
&
0x03
)
+
1
;
p_buf
+=
5
;
i_data_size
-=
5
;
p_buf
+=
5
;
i_data_size
-=
5
;
for
(
unsigned
int
j
=
0
;
j
<
2
;
j
++
)
{
...
...
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