Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
medialibrary
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
57
Issues
57
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
medialibrary
Commits
16fdb28e
Commit
16fdb28e
authored
Oct 02, 2015
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare for future libjpeg versions
parent
ef637827
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/metadata_services/vlc/VLCThumbnailer.cpp
src/metadata_services/vlc/VLCThumbnailer.cpp
+5
-1
src/metadata_services/vlc/VLCThumbnailer.h
src/metadata_services/vlc/VLCThumbnailer.h
+1
-1
No files found.
src/metadata_services/vlc/VLCThumbnailer.cpp
View file @
16fdb28e
...
...
@@ -118,7 +118,7 @@ void VLCThumbnailer::setupVout( VLC::MediaPlayer& mp )
mp
.
setVideoFormatCallbacks
(
// Setup
[
this
,
&
mp
](
char
*
chroma
,
unsigned
int
*
width
,
unsigned
int
*
height
,
unsigned
int
*
pitches
,
unsigned
int
*
lines
)
{
strcpy
(
chroma
,
"RV
32
"
);
strcpy
(
chroma
,
"RV
24
"
);
const
float
inputAR
=
(
float
)
*
width
/
*
height
;
...
...
@@ -239,7 +239,11 @@ bool VLCThumbnailer::compress(uint8_t* buff, FilePtr file, void *data)
compInfo
.
image_width
=
Width
;
compInfo
.
image_height
=
m_height
;
compInfo
.
input_components
=
Bpp
;
#if JPEG_LIB_VERSION <= 80
compInfo
.
in_color_space
=
JCS_EXT_BGRX
;
#else
compInfo
.
in_color_space
=
JCS_RGB
;
#endif
jpeg_set_defaults
(
&
compInfo
);
jpeg_set_quality
(
&
compInfo
,
85
,
TRUE
);
...
...
src/metadata_services/vlc/VLCThumbnailer.h
View file @
16fdb28e
...
...
@@ -24,7 +24,7 @@ private:
private:
// Force a base width, let height be computed depending on A/R
static
const
uint32_t
Width
=
320
;
static
const
uint8_t
Bpp
=
4
;
static
const
uint8_t
Bpp
=
3
;
private:
VLC
::
Instance
m_instance
;
...
...
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