Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
16fdb28e
Commit
16fdb28e
authored
Oct 02, 2015
by
Hugo Beauzée-Luyssen
Browse files
Prepare for future libjpeg versions
parent
ef637827
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
3
2"
);
strcpy
(
chroma
,
"RV2
4
"
);
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
Supports
Markdown
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