mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 21:40:20 +00:00
Bump to new GPUJPEG
This commit is contained in:
2
gpujpeg
2
gpujpeg
Submodule gpujpeg updated: 8a37dd1290...ec3043ef54
@@ -46,6 +46,7 @@
|
||||
#include "video_decompress.h"
|
||||
|
||||
#include "libgpujpeg/gpujpeg_decoder.h"
|
||||
#include "libgpujpeg/gpujpeg_reader.h"
|
||||
#include "libgpujpeg/gpujpeg_version.h"
|
||||
//#include "compat/platform_semaphore.h"
|
||||
#include <pthread.h>
|
||||
@@ -149,7 +150,11 @@ static int jpeg_decompress_reconfigure(void *state, struct video_desc desc,
|
||||
#if LIBGPUJPEG_API_VERSION >= 4
|
||||
static decompress_status jpeg_probe_internal_codec(unsigned char *buffer, size_t len, codec_t *internal_codec) {
|
||||
struct gpujpeg_image_parameters params = { 0 };
|
||||
#if LIBGPUJPEG_API_VERSION >= 5
|
||||
if (gpujpeg_reader_get_image_info(buffer, len, ¶ms, NULL) != 0) {
|
||||
#else
|
||||
if (gpujpeg_decoder_get_image_info(buffer, len, ¶ms) != 0) {
|
||||
#endif
|
||||
return DECODER_NO_FRAME;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user