VLC 4.0.0-dev
|
This file contains the functions to handle the image_handler_t type. More...
Data Structures | |
struct | decoder_owner |
Variables | ||
struct { | ||
vlc_fourcc_t i_codec | ||
const char psz_ext [7] | ||
} | ext_table [] | |
Misc functions. | ||
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 DeleteConverter(), es_format_Copy(), 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, msg_Dbg, filter_t::ops, filter_t::p_module, filter_t::vctx_in, es_format_t::video, video_format_Copy(), vlc_custom_create, and vlc_filter_LoadModule().
Referenced by ImageConvert(), ImageRead(), and ImageWrite().
|
static |
References decoder_t::cbs, decoder_owner::dec, decoder_Destroy(), decoder_Init(), es_format_Clean(), decoder_t::fmt_in, decoder_owner::fmt_in, decoder_owner_callbacks::get_device, es_format_t::i_codec, image_get_device(), ImageQueueVideo(), module_need_var, msg_Err, decoder_owner::p_image, decoder_t::p_module, image_handler_t::p_parent, decoder_owner_callbacks::video, and vlc_custom_create.
Referenced by ImageRead().
|
static |
References 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_visible_height, video_format_t::i_visible_width, video_format_t::i_width, module_need, msg_Err, encoder_t::ops, encoder_t::p_module, sout_EncoderCreate, es_format_t::video, and vlc_encoder_Destroy().
Referenced by ImageWrite().
|
inlinestatic |
References container_of, and decoder_owner::dec.
Referenced by image_HandlerDelete(), ImageQueueVideo(), and ImageRead().
|
static |
References es_format_Clean(), filter_t::fmt_in, filter_t::fmt_out, vlc_filter_UnloadModule(), and vlc_object_delete.
Referenced by CreateConverter(), image_HandlerDelete(), ImageConvert(), ImageRead(), and ImageWrite().
vlc_fourcc_t image_Ext2Fourcc | ( | const char * | psz_name | ) |
References image_Type2Fourcc(), and psz_name.
Referenced by ImageReadUrl(), and ImageWriteUrl().
|
static |
References VLC_UNUSED.
Referenced by CreateDecoder().
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, decoder_owner::p_image, 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 dec_get_owner(), decoder_Destroy(), DeleteConverter(), es_format_Clean(), decoder_owner::fmt_in, image_handler_t::outfifo, image_handler_t::p_converter, image_handler_t::p_dec, image_handler_t::p_enc, decoder_owner::p_image, picture_fifo_Delete(), and vlc_encoder_Destroy().
Referenced by picture_Export(), 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(), and vout_GetSnapshot().
|
static |
Convert an image to a different format.
References CreateConverter(), DeleteConverter(), es_format_Clean(), es_format_Init(), es_format_InitFromVideo(), vlc_filter_operations::filter_video, filter_t::fmt_in, decoder_owner::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, filter_t::ops, image_handler_t::p_converter, decoder_owner::p_image, image_handler_t::p_parent, picture_GetVideoContext(), picture_HasChainedPics(), picture_Hold(), es_format_t::video, VIDEO_ES, and video_format_IsSameChroma().
Referenced by image_HandlerCreate().
Read an image.
References dec_get_owner(), image_handler_t::outfifo, decoder_owner::p_image, and picture_fifo_Push().
Referenced by CreateDecoder().
|
static |
References block_Release, COLOR_PRIMARIES_UNDEF, COLOR_SPACE_UNDEF, CreateConverter(), CreateDecoder(), dec_get_owner(), decoder_Destroy(), DeleteConverter(), es_format_Clean(), es_format_Copy(), vlc_filter_operations::filter_video, decoder_t::fmt_in, filter_t::fmt_in, decoder_owner::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, vlc_frame_t::i_dts, video_format_t::i_height, vlc_frame_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, msg_Warn, filter_t::ops, image_handler_t::outfifo, image_handler_t::p_converter, image_handler_t::p_dec, decoder_owner::p_image, image_handler_t::p_parent, decoder_t::pf_decode, picture_fifo_Pop(), picture_GetVideoContext(), picture_HasChainedPics(), 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(), video_format_IsSameChroma(), vlc_tick_now(), and VLCDEC_SUCCESS.
Referenced by image_HandlerCreate(), and ImageReadUrl().
|
static |
References es_format_Clean(), es_format_Init(), image_Ext2Fourcc(), image_Mime2Fourcc(), ImageRead(), msg_Dbg, decoder_owner::p_image, image_handler_t::p_parent, psz_mime, stream_MimeType(), VIDEO_ES, vlc_stream_Block(), vlc_stream_Delete(), vlc_stream_GetSize(), and vlc_stream_NewURL.
Referenced by image_HandlerCreate().
|
static |
Write an image.
References CreateConverter(), CreateEncoder(), DeleteConverter(), es_format_Clean(), es_format_Copy(), es_format_Init(), es_format_InitFromVideo(), vlc_filter_operations::filter_video, encoder_t::fmt_in, filter_t::fmt_in, decoder_owner::fmt_in, encoder_t::fmt_out, filter_t::fmt_out, video_format_t::i_chroma, es_format_t::i_codec, video_format_t::i_height, video_format_t::i_width, msg_Dbg, filter_t::ops, image_handler_t::p_converter, image_handler_t::p_enc, decoder_owner::p_image, image_handler_t::p_parent, picture_GetVideoContext(), picture_HasChainedPics(), picture_Hold(), picture_Release(), es_format_t::video, VIDEO_ES, video_format_IsSameChroma(), vlc_encoder_Destroy(), and vlc_encoder_EncodeVideo().
Referenced by image_HandlerCreate(), and ImageWriteUrl().
|
static |
References block_Release, vlc_frame_t::i_buffer, image_Ext2Fourcc(), ImageWrite(), msg_Err, vlc_frame_t::p_buffer, decoder_owner::p_image, image_handler_t::p_parent, VLC_EGENERIC, vlc_fopen(), vlc_strerror_c(), and VLC_SUCCESS.
Referenced by image_HandlerCreate().
const struct { ... } ext_table[] |
Misc functions.
Referenced by image_Type2Fourcc().
vlc_fourcc_t i_codec |
Referenced by es_format_Change(), es_format_Init(), image_Type2Fourcc(), and picture_Export().
const struct { ... } mime_table[] |
Referenced by image_Mime2Fourcc().
const char psz_ext[7] |
const char* psz_mime |
Referenced by httpd_FileNew(), httpd_StreamNew(), image_Mime2Fourcc(), ImageReadUrl(), and vlc_input_attachment_New().