/*****************************************************************************
* input.h: file input
*****************************************************************************
- * Copyright (C) 2003-2011 x264 project
+ * Copyright (C) 2003-2015 x264 project
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Loren Merritt <lorenm@u.washington.edu>
int seek;
int progress;
int output_csp; /* convert to this csp, if applicable */
+ int output_range; /* user desired output range */
+ int input_range; /* user override input range */
} cli_input_opt_t;
/* properties of the source given by the demuxer */
int csp; /* colorspace of the input */
uint32_t fps_num;
uint32_t fps_den;
+ int fullrange; /* has 2^bit_depth-1 instead of 219*2^(bit_depth-8) ranges (YUV only) */
+ int width;
int height;
int interlaced;
int num_frames;
uint32_t timebase_num;
uint32_t timebase_den;
int vfr;
- int width;
} video_info_t;
/* image data type used by x264cli */
extern cli_input_t cli_input;
/* extended colorspace list that isn't supported by libx264 but by the cli */
-#define X264_CSP_I422 X264_CSP_MAX /* yuv 4:2:2 planar */
-#define X264_CSP_CLI_MAX (X264_CSP_MAX+1) /* end of list */
+#define X264_CSP_CLI_MAX X264_CSP_MAX /* end of list */
#define X264_CSP_OTHER 0x4000 /* non x264 colorspace */
typedef struct
int x264_cli_csp_is_invalid( int csp );
int x264_cli_csp_depth_factor( int csp );
int x264_cli_pic_alloc( cli_pic_t *pic, int csp, int width, int height );
+int x264_cli_pic_alloc_aligned( cli_pic_t *pic, int csp, int width, int height );
void x264_cli_pic_clean( cli_pic_t *pic );
uint64_t x264_cli_pic_plane_size( int csp, int width, int height, int plane );
uint64_t x264_cli_pic_size( int csp, int width, int height );