• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/

Lines Matching defs:ost

100 static char *choose_pix_fmts(OutputStream *ost)
102 AVDictionaryEntry *strict_dict = av_dict_get(ost->encoder_opts, "strict", NULL, 0);
105 av_opt_set(ost->enc_ctx, "strict", strict_dict->value, 0);
107 if (ost->keep_pix_fmt) {
108 if (ost->filter)
109 avfilter_graph_set_auto_convert(ost->filter->graph->graph,
111 if (ost->enc_ctx->pix_fmt == AV_PIX_FMT_NONE)
113 return av_strdup(av_get_pix_fmt_name(ost->enc_ctx->pix_fmt));
115 if (ost->enc_ctx->pix_fmt != AV_PIX_FMT_NONE) {
116 return av_strdup(av_get_pix_fmt_name(choose_pixel_fmt(ost->st, ost->enc_ctx, ost->enc, ost->enc_ctx->pix_fmt)));
117 } else if (ost->enc && ost->enc->pix_fmts) {
126 p = ost->enc->pix_fmts;
127 if (ost->enc_ctx->strict_std_compliance <= FF_COMPLIANCE_UNOFFICIAL) {
128 if (ost->enc_ctx->codec_id == AV_CODEC_ID_MJPEG) {
130 } else if (ost->enc_ctx->codec_id == AV_CODEC_ID_LJPEG) {
150 static char *choose_ ## var ## s(OutputStream *ost) \
152 if (ost->enc_ctx->var != none) { \
153 get_name(ost->enc_ctx->var); \
155 } else if (ost->enc && ost->enc->supported_list) { \
164 for (p = ost->enc->supported_list; *p != none; p++) { \
187 FilterGraph *init_simple_filtergraph(InputStream *ist, OutputStream *ost)
198 fg->outputs[0]->ost = ost;
201 ost->filter = fg->outputs[0];
345 OutputStream *ost = ofilter->ost;
346 OutputFile *of = output_files[ost->file_index];
347 AVCodecContext *codec = ost->enc_ctx;
353 snprintf(name, sizeof(name), "output stream %d:%d", ost->file_index, ost->index);
368 (unsigned)ost->sws_flags);
370 ost->file_index, ost->index);
381 if ((pix_fmts = choose_pix_fmts(ost))) {
384 ost->file_index, ost->index);
399 if (ost->frame_rate.num && 0) {
403 snprintf(args, sizeof(args), "fps=%d/%d", ost->frame_rate.num,
404 ost->frame_rate.den);
406 ost->file_index, ost->index);
420 ost->file_index, ost->index);
435 OutputStream *ost = ofilter->ost;
436 OutputFile *of = output_files[ost->file_index];
437 AVCodecContext *codec = ost->enc_ctx;
444 snprintf(name, sizeof(name), "output stream %d:%d", ost->file_index, ost->index);
472 if (ost->audio_channels_mapped) {
477 av_get_default_channel_layout(ost->audio_channels_mapped));
478 for (i = 0; i < ost->audio_channels_mapped; i++)
479 if (ost->audio_channels_map[i] != -1)
480 av_bprintf(&pan_buf, ":c%d=c%d", i, ost->audio_channels_map[i]);
489 sample_fmts = choose_sample_fmts(ost);
490 sample_rates = choose_sample_rates(ost);
491 channel_layouts = choose_channel_layouts(ost);
512 ost->file_index, ost->index);
534 if (ost->apad && of->shortest) {
543 snprintf(args, sizeof(args), "%s", ost->apad);
549 ost->file_index, ost->index);
791 // if (ost->audio_channels_mapped) {
796 // av_get_default_channel_layout(ost->audio_channels_mapped));
797 // for (i = 0; i < ost->audio_channels_mapped; i++)
798 // if (ost->audio_channels_map[i] != -1)
799 // av_bprintf(&pan_buf, ":c%d=c%d", i, ost->audio_channels_map[i]);
844 const char *graph_desc = simple ? fg->outputs[0]->ost->avfilter :
852 OutputStream *ost = fg->outputs[0]->ost;
856 snprintf(args, sizeof(args), "flags=0x%X", (unsigned)ost->sws_flags);
860 while ((e = av_dict_get(ost->swr_opts, "", e,
869 while ((e = av_dict_get(fg->outputs[0]->ost->resample_opts, "", e,
877 e = av_dict_get(ost->encoder_opts, "threads", NULL, 0);
924 OutputStream *ost = fg->outputs[i]->ost;
925 if (ost &&
926 ost->enc->type == AVMEDIA_TYPE_AUDIO &&
927 !(ost->enc->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE))
928 av_buffersink_set_frame_size(ost->filter->filter,
929 ost->enc_ctx->frame_size);