
| #define ENC_FRAMERATE (25 * 1000 + .5) |
Referenced by transcode_video_encoder_init(), and transcode_video_new().
| #define ENC_FRAMERATE_BASE 1000 |
Referenced by transcode_video_add(), transcode_video_encoder_init(), and transcode_video_new().
| static void* EncoderThread | ( | vlc_object_t * | p_this | ) | [static] |
References sout_stream_sys_t::b_error, block_ChainAppend(), block_ChainRelease(), sout_stream_sys_t::cond, sout_stream_sys_t::i_first_pic, sout_stream_sys_t::i_last_pic, sout_stream_sys_t::id_video, sout_stream_sys_t::lock_out, sout_stream_sys_t::p_buffers, sout_stream_id_t::p_encoder, p_sys, picture_Release(), PICTURE_RING_SIZE, sout_stream_sys_t::pp_pics, video_timer_start(), video_timer_stop(), vlc_cond_wait(), vlc_mutex_lock(), vlc_mutex_unlock(), vlc_object_alive, vlc_restorecancel(), and vlc_savecancel().
Referenced by transcode_video_new().
| bool transcode_video_add | ( | sout_stream_t * | p_stream, | |
| es_format_t * | p_fmt, | |||
| sout_stream_id_t * | id | |||
| ) |
| void transcode_video_close | ( | sout_stream_t * | p_stream, | |
| sout_stream_id_t * | id | |||
| ) |
References sout_stream_sys_t::cond, filter_chain_Delete(), sout_stream_sys_t::i_threads, sout_stream_sys_t::lock_out, module_unneed, sout_stream_id_t::p_decoder, decoder_t::p_description, sout_stream_id_t::p_encoder, sout_stream_id_t::p_f_chain, encoder_t::p_module, decoder_t::p_module, decoder_t::p_owner, sout_stream_t::p_sys, sout_stream_id_t::p_uf_chain, video_timer_close(), vlc_cond_destroy(), vlc_cond_signal(), vlc_meta_Delete(), vlc_mutex_destroy(), vlc_mutex_lock(), vlc_mutex_unlock(), vlc_object_kill, and vlc_thread_join.
Referenced by Del(), and transcode_video_process().
| static void transcode_video_encoder_init | ( | sout_stream_t * | p_stream, | |
| sout_stream_id_t * | id | |||
| ) | [static] |
References __MAX, date_Init(), ENC_FRAMERATE, ENC_FRAMERATE_BASE, sout_stream_sys_t::f_scale, encoder_t::fmt_out, decoder_t::fmt_out, video_format_t::i_frame_rate, video_format_t::i_frame_rate_base, video_format_t::i_height, sout_stream_sys_t::i_maxheight, sout_stream_sys_t::i_maxwidth, video_format_t::i_sar_den, video_format_t::i_sar_num, video_format_t::i_width, sout_stream_id_t::interpolated_pts, msg_Dbg, sout_stream_id_t::p_decoder, sout_stream_sys_t::p_decoder, sout_stream_id_t::p_encoder, sout_stream_t::p_sys, p_sys, es_format_t::video, and vlc_ureduce().
Referenced by transcode_video_process().
| static int transcode_video_encoder_open | ( | sout_stream_t * | p_stream, | |
| sout_stream_id_t * | id | |||
| ) | [static] |
References encoder_t::fmt_in, encoder_t::fmt_out, es_format_t::i_codec, video_format_t::i_height, sout_stream_sys_t::i_vcodec, video_format_t::i_width, sout_stream_id_t::id, module_need, msg_Dbg, msg_Err, sout_stream_id_t::p_encoder, encoder_t::p_module, sout_stream_t::p_next, sout_stream_t::p_sys, p_sys, sout_stream_sys_t::psz_venc, sout_StreamIdAdd(), es_format_t::video, VIDEO_ES, VLC_EGENERIC, vlc_fourcc_GetCodec(), and VLC_SUCCESS.
Referenced by transcode_video_process().
| static void transcode_video_filter_allocation_clear | ( | filter_t * | p_filter | ) | [static] |
| static int transcode_video_filter_allocation_init | ( | filter_t * | p_filter, | |
| void * | p_data | |||
| ) | [static] |
References transcode_video_filter_buffer_del(), transcode_video_filter_buffer_new(), VLC_SUCCESS, and VLC_UNUSED.
Referenced by transcode_video_filter_init().
References picture_Release(), and VLC_UNUSED.
Referenced by transcode_video_filter_allocation_init().
References filter_t::fmt_out, video_format_t::i_chroma, es_format_t::i_codec, picture_NewFromFormat(), and es_format_t::video.
Referenced by transcode_video_filter_allocation_init().
| static void transcode_video_filter_init | ( | sout_stream_t * | p_stream, | |
| sout_stream_id_t * | id | |||
| ) | [static] |
References sout_stream_sys_t::b_deinterlace, es_format_Copy(), filter_chain_AppendFilter(), filter_chain_AppendFromString(), filter_chain_GetFmtOut(), filter_chain_New, filter_chain_Reset(), encoder_t::fmt_in, decoder_t::fmt_out, video_format_t::i_chroma, video_format_t::i_height, video_format_t::i_width, sout_stream_id_t::p_decoder, sout_stream_sys_t::p_deinterlace_cfg, sout_stream_id_t::p_encoder, sout_stream_id_t::p_f_chain, sout_stream_t::p_sys, sout_stream_id_t::p_uf_chain, sout_stream_sys_t::psz_deinterlace, sout_stream_sys_t::psz_vf2, transcode_video_filter_allocation_clear(), transcode_video_filter_allocation_init(), and es_format_t::video.
Referenced by transcode_video_process().
| int transcode_video_new | ( | sout_stream_t * | p_stream, | |
| sout_stream_id_t * | id | |||
| ) |
References sout_stream_sys_t::b_die, sout_stream_sys_t::b_error, sout_stream_sys_t::b_high_priority, sout_stream_sys_t::cond, ENC_FRAMERATE, ENC_FRAMERATE_BASE, EncoderThread(), es_format_Init(), decoder_t::fmt_in, encoder_t::fmt_in, encoder_t::fmt_out, decoder_t::fmt_out, es_format_t::i_cat, es_format_t::i_codec, es_format_t::i_extra, sout_stream_sys_t::i_first_pic, sout_stream_sys_t::i_last_pic, sout_stream_sys_t::i_threads, sout_stream_sys_t::i_vcodec, sout_stream_sys_t::id_video, sout_stream_sys_t::lock_out, module_need, module_unneed, msg_Err, sout_stream_sys_t::p_buffers, sout_stream_id_t::p_decoder, sout_stream_sys_t::p_decoder, sout_stream_id_t::p_encoder, es_format_t::p_extra, encoder_t::p_module, decoder_t::p_module, decoder_t::p_owner, sout_stream_t::p_sys, p_sys, sout_stream_sys_t::p_video_cfg, sout_stream_sys_t::pp_pics, sout_stream_sys_t::psz_venc, video_del_buffer_decoder(), video_link_picture_decoder(), video_new_buffer_decoder(), video_unlink_picture_decoder(), vlc_cond_init(), VLC_EGENERIC, vlc_mutex_init(), VLC_SUCCESS, vlc_thread_create, VLC_THREAD_PRIORITY_OUTPUT, and VLC_THREAD_PRIORITY_VIDEO.
Referenced by transcode_video_add().
| int transcode_video_process | ( | sout_stream_t * | p_stream, | |
| sout_stream_id_t * | id, | |||
| block_t * | in, | |||
| block_t ** | out | |||
| ) |
References sout_stream_sys_t::b_hurry_up, sout_stream_sys_t::b_master_sync, block_ChainAppend(), sout_stream_sys_t::cond, picture_t::date, date_Get(), date_Increment(), date_Set(), filter_chain_GetFmtOut(), filter_chain_GetLength(), filter_chain_VideoFilter(), decoder_t::fmt_out, sout_stream_sys_t::i_last_pic, sout_stream_sys_t::i_master_drift, sout_instance_t::i_out_pace_nocontrol, sout_stream_sys_t::i_threads, sout_stream_id_t::interpolated_pts, sout_stream_sys_t::lock_out, MASTER_SYNC_MAX_DRIFT, mdate(), msg_Dbg, sout_stream_sys_t::p_buffers, sout_stream_id_t::p_decoder, sout_stream_id_t::p_encoder, sout_stream_id_t::p_f_chain, encoder_t::p_module, sout_stream_t::p_sout, sout_stream_sys_t::p_spu, sout_stream_t::p_sys, p_sys, sout_stream_id_t::p_uf_chain, decoder_t::pf_decode_video, picture_Copy(), picture_IsReferenced(), picture_Release(), PICTURE_RING_SIZE, sout_stream_sys_t::pp_pics, SOUT_STATISTIC_DECODED_VIDEO, sout_UpdateStatistic(), spu_RenderSubpictures(), spu_SortSubpictures(), transcode_video_close(), transcode_video_encoder_init(), transcode_video_encoder_open(), transcode_video_filter_init(), unlikely, es_format_t::video, video_new_buffer_decoder(), video_timer_start(), video_timer_stop(), vlc_cond_signal(), VLC_EGENERIC, vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_SUCCESS.
Referenced by Send().
References picture_Release(), and VLC_UNUSED.
References picture_Hold(), and VLC_UNUSED.
| static void video_timer_close | ( | encoder_t * | p_encoder | ) | [inline, static] |
References STATS_TIMER_VIDEO_FRAME_ENCODING, stats_TimerClean, and stats_TimerDump.
Referenced by transcode_video_close().
| static void video_timer_start | ( | encoder_t * | p_encoder | ) | [inline, static] |
References STATS_TIMER_VIDEO_FRAME_ENCODING, and stats_TimerStart.
Referenced by EncoderThread(), and transcode_video_process().
| static void video_timer_stop | ( | encoder_t * | p_encoder | ) | [inline, static] |
References STATS_TIMER_VIDEO_FRAME_ENCODING, and stats_TimerStop.
Referenced by EncoderThread(), and transcode_video_process().
References picture_Release(), and VLC_UNUSED.
1.5.6