42#define VIDEO_DECOMPRESS_ABI_VERSION 6
48#ifndef __video_decompress_h
49#define __video_decompress_h
63#define DECOMPRESS_PROPERTY_ACCEPTS_CORRUPTED_FRAME 1
68typedef void *(*decompress_init_t)();
82 int rshift, int gshift, int bshift, int pitch,
codec_t out_codec);
113 unsigned char *buffer,
114 unsigned int src_len,
193 unsigned int src_len,
int(* decompress_get_property_t)(void *state, int property, void *val, size_t *len)
decompress_status decompress_frame(struct state_decompress *, unsigned char *dst, unsigned char *src, unsigned int src_len, int frame_seq, struct video_frame_callbacks *callbacks, struct pixfmt_desc *internal_prop)
Decompresses video frame.
int(* decompress_get_priority_t)(codec_t compression, struct pixfmt_desc internal, codec_t ugc)
int decompress_get_property(struct state_decompress *state, int property, void *val, size_t *len)
void(* decompress_done_t)(void *)
void decompress_done(struct state_decompress *)
void *(* decompress_init_t)()
decompress_status(* decompress_decompress_t)(void *state, unsigned char *dst, unsigned char *buffer, unsigned int src_len, int frame_seq, struct video_frame_callbacks *callbacks, struct pixfmt_desc *internal_prop)
Decompresses video frame.
int(* decompress_reconfigure_t)(void *state, struct video_desc desc, int rshift, int gshift, int bshift, int pitch, codec_t out_codec)
int decompress_reconfigure(struct state_decompress *, struct video_desc, int rshift, int gshift, int bshift, int pitch, codec_t out_codec)
bool decompress_init_multi(codec_t compression, struct pixfmt_desc internal, codec_t to, struct state_decompress **out, int count)
Initializes (multiple) decompress states.
@ DECODER_GOT_CODEC
Internal pixel format was determined.
@ DECODER_UNSUPP_PIXFMT
Decoder can't decode to selected out_codec.
@ VDEC_PRIO_NA
decoder cannot handle the codec in any way
@ VDEC_PRIO_NOT_PREFERRED
@ VDEC_PRIO_PROBE_HI
decoder can probe
decompress_get_priority_t get_decompress_priority
decompress_get_property_t get_property
decompress_reconfigure_t reconfigure
decompress_decompress_t decompress
Struct containing callbacks of a video_frame.
This file contains some common data types.