![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include "debug.h"#include "host.h"#include "lib_common.h"#include "tv.h"#include "video.h"#include "video_decompress.h"#include "utils/macros.h"#include "CFHDTypes.h"#include "CFHDDecoder.h"#include <vector>
Go to the source code of this file.
Classes | |
| struct | state_cineform_decompress |
Functions | |
| static void | abgr_to_rgba (unsigned char *dst_buffer, unsigned char *src_buffer, int width, int height, int pitch) |
| static void | bgr_to_rgb_invert (unsigned char *dst_buffer, unsigned char *src_buffer, int width, int height, int pitch) |
| static decompress_status | cineform_decompress (void *state, unsigned char *dst, unsigned char *src, unsigned int src_len, int frame_seq, struct video_frame_callbacks *callbacks, struct pixfmt_desc *internal_prop) |
| static void | cineform_decompress_done (void *state) |
| static int | cineform_decompress_get_priority (codec_t compression, struct pixfmt_desc internal, codec_t ugc) |
| static int | cineform_decompress_get_property (void *state, int property, void *val, size_t *len) |
| static void * | cineform_decompress_init (void) |
| static int | cineform_decompress_reconfigure (void *state, struct video_desc desc, int rshift, int gshift, int bshift, int pitch, codec_t out_codec) |
| static bool | configure_with (struct state_cineform_decompress *s, struct video_desc desc) |
| static bool | prepare (struct state_cineform_decompress *s, unsigned char *src, unsigned int src_len) |
| static decompress_status | probe_internal (struct state_cineform_decompress *s, unsigned char *src, unsigned src_len, struct pixfmt_desc *internal_prop) |
| static decompress_status | probe_internal_cineform (struct state_cineform_decompress *s, unsigned char *src, unsigned src_len, struct pixfmt_desc *internal_prop) |
| REGISTER_MODULE (cineform, &cineform_info, LIBRARY_CLASS_VIDEO_DECOMPRESS, VIDEO_DECOMPRESS_ABI_VERSION) | |
| static void | rg48_to_r12l (unsigned char *dst_buffer, unsigned char *src_buffer, int width, int height, int pitch) |
| static void | write_fcc (char *out, int pixelformat) |
Variables | ||
| static const struct video_decompress_info | cineform_info | |
| struct { | ||
| CFHD_PixelFormat cfhd_pixfmt | ||
| void(* convert )(unsigned char *dst_buffer, unsigned char *src_buffer, int width, int height, int pitch) | ||
| codec_t ug_codec | ||
| } | decode_codecs [] | |
Definition in file cineform.cpp.
|
static |
Definition at line 129 of file cineform.cpp.
References state_cineform_decompress::height, state_cineform_decompress::pitch, RGBA, vc_copylineRGBA, vc_get_linesize(), and state_cineform_decompress::width.

|
static |
Definition at line 142 of file cineform.cpp.
References BGR, get_decoder_from_to(), state_cineform_decompress::height, state_cineform_decompress::pitch, RGB, vc_copylineBGRtoRGB(), vc_get_linesize(), and state_cineform_decompress::width.

|
static |
Definition at line 353 of file cineform.cpp.
References state_cineform_decompress::conv_buf, state_cineform_decompress::convert, state_cineform_decompress::decode_linesize, DECODER_GOT_FRAME, DECODER_NO_FRAME, state_cineform_decompress::decoderRef, state_cineform_decompress::height, LOG_LEVEL_ERROR, log_msg(), state_cineform_decompress::out_codec, state_cineform_decompress::pitch, prepare(), probe_internal(), state, UNUSED, VIDEO_CODEC_NONE, and state_cineform_decompress::width.

|
static |
Definition at line 104 of file cineform.cpp.
References state_cineform_decompress::decoderRef, state_cineform_decompress::metadataRef, and state.
|
static |
Definition at line 419 of file cineform.cpp.
References CFHD, R10k, R12L, RG48, RGBA, UNUSED, UYVY, v210, VDEC_PRIO_PREFERRED, and VIDEO_CODEC_NONE.
|
static |
Definition at line 393 of file cineform.cpp.
References DECOMPRESS_PROPERTY_ACCEPTS_CORRUPTED_FRAME, FALSE, len, property, state, TRUE, UNUSED, and val.
|
static |
Definition at line 80 of file cineform.cpp.
References state_cineform_decompress::convert, state_cineform_decompress::decode_linesize, state_cineform_decompress::decoderRef, state_cineform_decompress::height, LOG_LEVEL_ERROR, log_msg(), state_cineform_decompress::metadataRef, state_cineform_decompress::pitch, state_cineform_decompress::prepared_to_decode, and state_cineform_decompress::width.

|
static |
Definition at line 199 of file cineform.cpp.
References state_cineform_decompress::bshift, video_desc::color_spec, configure_with(), desc, state_cineform_decompress::gshift, state_cineform_decompress::height, video_desc::height, state_cineform_decompress::in_codec, state_cineform_decompress::out_codec, state_cineform_decompress::pitch, state_cineform_decompress::rshift, state, state_cineform_decompress::width, and video_desc::width.

|
static |
Definition at line 173 of file cineform.cpp.
References state_cineform_decompress::convert, state_cineform_decompress::decode_codec, decode_codecs, state_cineform_decompress::decode_linesize, desc, LOG_LEVEL_DEBUG, LOG_LEVEL_NOTICE, log_msg(), state_cineform_decompress::out_codec, state_cineform_decompress::prepared_to_decode, R12L, state_cineform_decompress::saved_desc, VIDEO_CODEC_NONE, and video_desc::width.

|
static |
Definition at line 217 of file cineform.cpp.
References state_cineform_decompress::conv_buf, state_cineform_decompress::convert, state_cineform_decompress::decode_codec, state_cineform_decompress::decode_linesize, state_cineform_decompress::decoderRef, state_cineform_decompress::height, video_desc::height, LOG_LEVEL_ERROR, log_msg(), state_cineform_decompress::prepared_to_decode, state_cineform_decompress::saved_desc, state_cineform_decompress::width, and video_desc::width.
Referenced by cineform_decompress().

|
static |
Definition at line 309 of file cineform.cpp.
References DECODER_GOT_CODEC, DECODER_NO_FRAME, get_codec_name(), get_pixfmt_desc(), LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_NOTICE, log_msg(), state_cineform_decompress::metadataRef, probe_internal_cineform(), to_fourcc, type, and write_fcc().
Referenced by cineform_decompress().

|
static |
Definition at line 262 of file cineform.cpp.
References count, decode_codecs, DECODER_GOT_CODEC, DECODER_NO_FRAME, state_cineform_decompress::decoderRef, get_pixfmt_desc(), LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, log_msg(), and UYVY.
Referenced by probe_internal().

| REGISTER_MODULE | ( | cineform | , |
| & | cineform_info, | ||
| LIBRARY_CLASS_VIDEO_DECOMPRESS | , | ||
| VIDEO_DECOMPRESS_ABI_VERSION | ) |
|
static |
Definition at line 114 of file cineform.cpp.
References get_decoder_from_to(), state_cineform_decompress::height, state_cineform_decompress::pitch, R12L, RG48, vc_copylineRG48toR12L(), vc_get_linesize(), and state_cineform_decompress::width.

|
static |
Definition at line 300 of file cineform.cpp.
Referenced by probe_internal().
| CFHD_PixelFormat cfhd_pixfmt |
Definition at line 159 of file cineform.cpp.
|
static |
Definition at line 440 of file cineform.cpp.
| void(* convert) (unsigned char *dst_buffer, unsigned char *src_buffer, int width, int height, int pitch) | ( | unsigned char * | dst_buffer, |
| unsigned char * | src_buffer, | ||
| int | width, | ||
| int | height, | ||
| int | pitch ) |
Definition at line 160 of file cineform.cpp.
| const struct { ... } decode_codecs[] |
Referenced by configure_with(), and probe_internal_cineform().
| codec_t ug_codec |
Definition at line 158 of file cineform.cpp.