VLC
3.0.15
|
Variables | |
struct { | |
vlc_fourcc_t i_codec | |
const char psz_ext [7] | |
} | ext_table [] |
Misc functions. More... | |
struct { | |
vlc_fourcc_t i_codec | |
const char * psz_mime | |
} | mime_table [] |
This file contains the functions to handle the image_handler_t type
|
static |
References video_format_t::i_bmask, video_format_t::i_chroma, video_format_t::i_gmask, video_format_t::i_rmask, video_format_FixRgb(), VLC_CODEC_RGB15, VLC_CODEC_RGB16, VLC_CODEC_RGB24, and VLC_CODEC_RGB32.
Referenced by ImageWrite().
|
static |
References decoder_t::b_frame_drop_allowed, DeleteDecoder(), es_format_Init(), es_format_InitFromVideo(), decoder_t::fmt_in, decoder_t::fmt_out, es_format_t::i_codec, module_need, msg_Err, decoder_t::p_module, decoder_t::pf_vout_buffer_new, decoder_t::pf_vout_format_update, VIDEO_ES, video_new_buffer(), video_update_format(), and vlc_custom_create.
Referenced by ImageRead().
|
static |
References DeleteEncoder(), es_format_InitFromVideo(), encoder_t::fmt_in, encoder_t::fmt_out, video_format_t::i_chroma, es_format_t::i_codec, video_format_t::i_frame_rate, video_format_t::i_frame_rate_base, video_format_t::i_height, video_format_t::i_sar_den, video_format_t::i_sar_num, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, module_need, msg_Err, encoder_t::p_module, sout_EncoderCreate, and es_format_t::video.
Referenced by ImageWrite().
|
static |
References DeleteFilter(), es_format_Copy(), filter_new_picture(), filter_t::fmt_in, filter_t::fmt_out, video_format_t::i_chroma, es_format_t::i_codec, video_format_t::i_x_offset, video_format_t::i_y_offset, module_need, msg_Dbg, filter_t::owner, filter_t::p_module, filter_owner_t::video, es_format_t::video, video_format_Copy(), and vlc_custom_create.
Referenced by ImageConvert(), ImageRead(), and ImageWrite().
|
static |
References es_format_Clean(), decoder_t::fmt_in, decoder_t::fmt_out, module_unneed, decoder_t::p_description, decoder_t::p_module, vlc_meta_Delete(), and vlc_object_release.
Referenced by CreateDecoder(), image_HandlerDelete(), and ImageRead().
|
static |
References es_format_Clean(), encoder_t::fmt_in, encoder_t::fmt_out, module_unneed, encoder_t::p_module, and vlc_object_release.
Referenced by CreateEncoder(), image_HandlerDelete(), and ImageWrite().
|
static |
References es_format_Clean(), filter_t::fmt_in, filter_t::fmt_out, module_unneed, filter_t::p_module, and vlc_object_release.
Referenced by CreateFilter(), image_HandlerDelete(), ImageConvert(), ImageRead(), and ImageWrite().
References filter_t::fmt_out, picture_NewFromFormat(), and es_format_t::video.
Referenced by CreateFilter().
vlc_fourcc_t image_Ext2Fourcc | ( | const char * | psz_name | ) |
References image_Type2Fourcc(), and psz_name.
Referenced by ImageReadUrl(), and ImageWriteUrl().
image_handler_t* image_HandlerCreate | ( | vlc_object_t * | p_this | ) |
Create an image_handler_t instance.
References ImageConvert(), ImageRead(), ImageReadUrl(), ImageWrite(), ImageWriteUrl(), image_handler_t::outfifo, image_handler_t::p_parent, image_handler_t::pf_convert, image_handler_t::pf_read, image_handler_t::pf_read_url, image_handler_t::pf_write, image_handler_t::pf_write_url, and picture_fifo_New().
void image_HandlerDelete | ( | image_handler_t * | p_image | ) |
Delete the image_handler_t instance.
References DeleteDecoder(), DeleteEncoder(), DeleteFilter(), image_handler_t::outfifo, image_handler_t::p_dec, image_handler_t::p_enc, image_handler_t::p_filter, and picture_fifo_Delete().
Referenced by spuregion_CreateFromPicture(), and subpicture_NewFromPicture().
vlc_fourcc_t image_Mime2Fourcc | ( | const char * | psz_mime | ) |
References mime_table, and psz_mime.
Referenced by ImageReadUrl().
vlc_fourcc_t image_Type2Fourcc | ( | const char * | psz_type | ) |
References ARRAY_SIZE, ext_table, i_codec, psz_ext, and strcasecmp().
Referenced by image_Ext2Fourcc().
|
static |
Convert an image to a different format.
References CreateFilter(), DeleteFilter(), es_format_Init(), filter_NewPicture(), filter_t::fmt_in, filter_t::fmt_out, video_format_t::i_chroma, video_format_t::i_height, video_format_t::i_sar_den, video_format_t::i_sar_num, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, image_handler_t::p_filter, image_handler_t::p_parent, filter_t::pf_video_filter, picture_Copy(), picture_Hold(), picture_Release(), es_format_t::video, and VIDEO_ES.
Referenced by image_HandlerCreate().
Read an image.
References image_handler_t::outfifo, decoder_t::p_queue_ctx, and picture_fifo_Push().
Referenced by ImageRead().
|
static |
< No error
References block_Release(), COLOR_PRIMARIES_UNDEF, COLOR_SPACE_UNDEF, CreateDecoder(), CreateFilter(), DeleteDecoder(), DeleteFilter(), decoder_t::fmt_in, filter_t::fmt_in, decoder_t::fmt_out, filter_t::fmt_out, es_format_t::i_cat, video_format_t::i_chroma, es_format_t::i_codec, block_t::i_dts, video_format_t::i_height, block_t::i_pts, video_format_t::i_sar_den, video_format_t::i_sar_num, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, ImageQueueVideo(), mdate(), msg_Warn, image_handler_t::outfifo, image_handler_t::p_dec, image_handler_t::p_filter, image_handler_t::p_parent, decoder_t::p_queue_ctx, decoder_t::pf_decode, decoder_t::pf_queue_video, filter_t::pf_video_filter, picture_fifo_Pop(), picture_Release(), video_format_t::primaries, video_format_t::space, video_format_t::transfer, TRANSFER_FUNC_UNDEF, es_format_t::video, VIDEO_ES, video_format_Clean(), video_format_Copy(), and VLCDEC_SUCCESS.
Referenced by image_HandlerCreate(), and ImageReadUrl().
|
static |
|
static |
Write an image.
References BitMapFormatIsSimilar(), CreateEncoder(), CreateFilter(), DeleteEncoder(), DeleteFilter(), es_format_Init(), filter_t::fmt_in, encoder_t::fmt_in, filter_t::fmt_out, encoder_t::fmt_out, video_format_t::i_chroma, es_format_t::i_codec, video_format_t::i_height, video_format_t::i_width, likely, msg_Dbg, image_handler_t::p_enc, image_handler_t::p_filter, image_handler_t::p_parent, encoder_t::pf_encode_video, filter_t::pf_video_filter, picture_Hold(), picture_Release(), es_format_t::video, and VIDEO_ES.
Referenced by image_HandlerCreate(), and ImageWriteUrl().
|
static |
< Unspecified error
< Unspecified error
< No error
References block_Release(), block_t::i_buffer, video_format_t::i_chroma, image_Ext2Fourcc(), ImageWrite(), msg_Err, block_t::p_buffer, image_handler_t::p_parent, VLC_EGENERIC, vlc_fopen(), vlc_strerror_c(), and VLC_SUCCESS.
Referenced by image_HandlerCreate().
References decoder_t::fmt_out, picture_NewFromFormat(), and es_format_t::video.
Referenced by CreateDecoder().
|
static |
References decoder_t::fmt_out, video_format_t::i_chroma, es_format_t::i_codec, and es_format_t::video.
Referenced by CreateDecoder().
const { ... } ext_table[] |
Misc functions.
Referenced by image_Type2Fourcc().
vlc_fourcc_t i_codec |
Referenced by es_format_Change(), and image_Type2Fourcc().
const { ... } mime_table[] |
Referenced by image_Mime2Fourcc().
const char psz_ext[7] |
const char* psz_mime |
Referenced by image_Mime2Fourcc(), and ImageReadUrl().