X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=tools_common.h;h=558413ea43407ba8ec1cbdd899916835297e3fbd;hb=6e0748e1423270b5b57177ee8941fa890d217b50;hp=549e895ec19dea0390e01fef080102de2ac2c9f0;hpb=6ca6073b6d3474f4470a02aa041e9ecab5c83723;p=libvpx diff --git a/tools_common.h b/tools_common.h index 549e895ec..558413ea4 100644 --- a/tools_common.h +++ b/tools_common.h @@ -25,15 +25,10 @@ /* MSVS uses _f{seek,tell}i64. */ #define fseeko _fseeki64 #define ftello _ftelli64 -typedef long _off_t; // NOLINT - MSVS compatible type -typedef __int64 off_t; // fseeki64 compatible type -#define _OFF_T_DEFINED #elif defined(_WIN32) -/* MinGW defines off_t as long and uses f{seek,tell}o64/off64_t for large - * files. */ +/* MinGW uses f{seek,tell}o64 for large files. */ #define fseeko fseeko64 #define ftello ftello64 -#define off_t off64_t #endif /* _WIN32 */ #if CONFIG_OS_SUPPORT @@ -50,7 +45,6 @@ typedef __int64 off_t; // fseeki64 compatible type /* Use 32-bit file operations in WebM file format when building ARM * executables (.axf) with RVCT. */ #if !CONFIG_OS_SUPPORT -typedef long off_t; /* NOLINT */ #define fseeko fseek #define ftello ftell #endif /* CONFIG_OS_SUPPORT */ @@ -90,12 +84,13 @@ struct VpxRational { struct VpxInputContext { const char *filename; FILE *file; - off_t length; + int64_t length; struct FileTypeDetectionBuffer detect; enum VideoFileType file_type; uint32_t width; uint32_t height; - int use_i420; + vpx_img_fmt_t fmt; + vpx_bit_depth_t bit_depth; int only_i420; uint32_t fourcc; struct VpxRational framerate; @@ -125,7 +120,7 @@ int read_yuv_frame(struct VpxInputContext *input_ctx, vpx_image_t *yuv_frame); typedef struct VpxInterface { const char *const name; const uint32_t fourcc; - vpx_codec_iface_t *(*const interface)(); + vpx_codec_iface_t *(*const codec_interface)(); } VpxInterface; int get_vpx_encoder_count();