47#ifndef __video_codec_h
48#define __video_codec_h
66#define PIX_BLOCK_LCM 24
104void vc_deinterlace(
unsigned char *src,
long src_linesize,
int lines);
110void uyvy_to_i422(
int width,
int height,
const unsigned char *in,
112void y416_to_i444(
int width,
int height,
const unsigned char *in,
113 unsigned char *out,
int depth);
115 unsigned char *out,
int in_depth);
117 unsigned char *out,
int in_depth);
119 unsigned char *out,
int in_depth);
120void i420_8_to_uyvy(
int width,
int height,
const unsigned char *in,
122void i422_8_to_uyvy(
int width,
int height,
const unsigned char *in,
124void i444_8_to_uyvy(
int width,
int height,
const unsigned char *in,
struct __attribute__((packed))
This file contains some common data types.
void vc_deinterlace(unsigned char *src, long src_linesize, int lines)
Deinterlaces framebuffer.
const char * get_codec_name_long(codec_t codec) __attribute__((const))
void i420_8_to_uyvy(int width, int height, const unsigned char *in, unsigned char *out)
codec_t get_codec_from_fcc(uint32_t fourcc) __attribute__((const))
bool codec_is_const_size(codec_t codec) __attribute__((const))
void codec_get_planes_subsampling(codec_t pix_fmt, int *sub)
void y416_to_i444(int width, int height, const unsigned char *in, unsigned char *out, int depth)
int vc_get_size(unsigned int width, codec_t codec) __attribute__((const))
struct pixfmt_desc get_pixfmt_desc(codec_t pixfmt)
bool is_codec_opaque(codec_t codec) __attribute__((const))
uint32_t get_fourcc(codec_t codec) __attribute__((const))
int get_pf_block_pixels(codec_t codec) __attribute__((const))
bool vc_deinterlace_ex(codec_t codec, unsigned char *src, size_t src_linesize, unsigned char *dst, size_t dst_pitch, size_t lines)
void uyvy_to_i422(int width, int height, const unsigned char *in, unsigned char *out)
void i444_8_to_uyvy(int width, int height, const unsigned char *in, unsigned char *out)
void i422_16_to_y416(int width, int height, const unsigned char *in, unsigned char *out, int in_depth)
double get_bpp(codec_t codec) __attribute__((const))
const char * get_pixdesc_desc(struct pixfmt_desc)
const char * get_codec_name(codec_t codec) __attribute__((const))
codec_t get_codec_from_file_extension(const char *ext) __attribute__((const))
bool pixdesc_equals(struct pixfmt_desc desc_a, struct pixfmt_desc desc_b)
void watch_pixfmt_degrade(const char *mod_name, struct pixfmt_desc desc_src, struct pixfmt_desc desc_dst)
const char * get_codec_file_extension(codec_t codec) __attribute__((const))
size_t vc_get_datalen(unsigned int width, unsigned int height, codec_t codec) __attribute__((const))
void i420_16_to_y416(int width, int height, const unsigned char *in, unsigned char *out, int in_depth)
bool codec_is_hw_accelerated(codec_t codec) __attribute__((const))
void show_codec_help(const char *module, const codec_t *codecs8, const codec_t *codecs10, const codec_t *codecs_ge12)
Prints list of suppored codecs for video module.
bool codec_is_planar(codec_t codec) __attribute__((const))
int get_pf_block_bytes(codec_t codec) __attribute__((const))
codec_t get_codec_from_name(const char *name) __attribute__((const))
void i422_8_to_uyvy(int width, int height, const unsigned char *in, unsigned char *out)
bool clear_video_buffer(unsigned char *data, size_t linesize, size_t pitch, size_t height, codec_t color_spec)
int compare_pixdesc(const struct pixfmt_desc *desc_a, const struct pixfmt_desc *desc_b, const struct pixfmt_desc *src_desc)
bool is_codec_interframe(codec_t codec) __attribute__((const))
int get_subsampling(codec_t codec) __attribute__((const))
int vc_get_linesize(unsigned int width, codec_t codec) __attribute__((const))
bool codec_is_in_set(codec_t codec, const codec_t *set) __attribute__((pure))
int get_bits_per_component(codec_t codec) __attribute__((const))
bool codec_is_a_rgb(codec_t codec) __attribute__((const))
void i444_16_to_y416(int width, int height, const unsigned char *in, unsigned char *out, int in_depth)
bool codec_is_420(codec_t pix_fmt)