mirror of
https://github.com/simon987/sist2.git
synced 2025-12-16 16:59:03 +00:00
Remove libscan git submodule
This commit is contained in:
31
third-party/libscan/libscan/comic/comic.h
vendored
Normal file
31
third-party/libscan/libscan/comic/comic.h
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef SCAN_CBR_H
|
||||
#define SCAN_CBR_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "../ebook/ebook.h"
|
||||
|
||||
typedef struct {
|
||||
log_callback_t log;
|
||||
logf_callback_t logf;
|
||||
store_callback_t store;
|
||||
|
||||
int tn_size;
|
||||
float tn_qscale;
|
||||
|
||||
unsigned int cbr_mime;
|
||||
unsigned int cbz_mime;
|
||||
} scan_comic_ctx_t;
|
||||
|
||||
__always_inline
|
||||
static int is_cbr(scan_comic_ctx_t *ctx, unsigned int mime) {
|
||||
return mime == ctx->cbr_mime;
|
||||
}
|
||||
|
||||
__always_inline
|
||||
static int is_cbz(scan_comic_ctx_t *ctx, unsigned int mime) {
|
||||
return mime == ctx->cbz_mime;
|
||||
}
|
||||
|
||||
void parse_comic(scan_comic_ctx_t *ctx, vfile_t *f, document_t *doc);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user