Home
last modified time | relevance | path

Searched refs:enc_ctx (Results 1 - 12 of 12) sorted by relevance

/third_party/ffmpeg/libavfilter/
H A Dvf_mcdeint.c78 AVCodecContext *enc_ctx; member
107 AVCodecContext *enc_ctx; in config_props() local
119 mcdeint->enc_ctx = avcodec_alloc_context3(enc); in config_props()
120 if (!mcdeint->enc_ctx) in config_props()
122 enc_ctx = mcdeint->enc_ctx; in config_props()
123 enc_ctx->width = inlink->w; in config_props()
124 enc_ctx->height = inlink->h; in config_props()
125 enc_ctx->time_base = (AVRational){1,25}; // meaningless in config_props()
126 enc_ctx in config_props()
[all...]
/third_party/ffmpeg/doc/examples/
H A Dtranscoding.c53 AVCodecContext *enc_ctx; member
125 AVCodecContext *dec_ctx, *enc_ctx; in open_output_file() local
156 enc_ctx = avcodec_alloc_context3(encoder); in open_output_file()
157 if (!enc_ctx) { in open_output_file()
166 enc_ctx->height = dec_ctx->height; in open_output_file()
167 enc_ctx->width = dec_ctx->width; in open_output_file()
168 enc_ctx->sample_aspect_ratio = dec_ctx->sample_aspect_ratio; in open_output_file()
171 enc_ctx->pix_fmt = encoder->pix_fmts[0]; in open_output_file()
173 enc_ctx->pix_fmt = dec_ctx->pix_fmt; in open_output_file()
175 enc_ctx in open_output_file()
237 init_filter(FilteringContext* fctx, AVCodecContext *dec_ctx, AVCodecContext *enc_ctx, const char *filter_spec) init_filter() argument
[all...]
H A Dencode_video.c39 static void encode(AVCodecContext *enc_ctx, AVFrame *frame, AVPacket *pkt, in encode() argument
48 ret = avcodec_send_frame(enc_ctx, frame); in encode()
55 ret = avcodec_receive_packet(enc_ctx, pkt); in encode()
/third_party/ffmpeg/tests/api/
H A Dapi-flac-test.c52 static int init_encoder(const AVCodec *enc, AVCodecContext **enc_ctx, in init_encoder() argument
78 *enc_ctx = ctx; in init_encoder()
108 AVCodecContext *enc_ctx, AVCodecContext *dec_ctx) in run_test()
130 in_frame->nb_samples = enc_ctx->frame_size; in run_test()
131 in_frame->format = enc_ctx->sample_fmt; in run_test()
132 result = av_channel_layout_copy(&in_frame->ch_layout, &enc_ctx->ch_layout); in run_test()
163 generate_raw_frame((uint16_t*)(in_frame->data[0]), i, enc_ctx->sample_rate, in run_test()
164 enc_ctx->ch_layout.nb_channels, enc_ctx->frame_size); in run_test()
172 result = avcodec_send_frame(enc_ctx, in_fram in run_test()
107 run_test(const AVCodec *enc, const AVCodec *dec, AVCodecContext *enc_ctx, AVCodecContext *dec_ctx) run_test() argument
249 AVCodecContext *enc_ctx = NULL, *dec_ctx = NULL; main() local
[all...]
/third_party/ffmpeg/fftools/
H A Dffmpeg.c593 avcodec_free_context(&ost->enc_ctx); in ffmpeg_cleanup()
705 AVRational time_base = ost->stream_copy ? ost->mux_timebase : ost->enc_ctx->time_base; in close_output_stream()
756 av_compare_ts(ost->sync_opts - ost->first_pts, ost->enc_ctx->time_base, of->recording_time, in check_recording_time()
768 AVCodecContext *enc = ost->enc_ctx; in adjust_frame_pts_to_encoder_tb()
841 AVCodecContext *enc = ost->enc_ctx; in update_video_stats()
894 AVCodecContext *enc = ost->enc_ctx; in encode_frame()
1011 enc = ost->enc_ctx; in do_subtitle_out()
1083 AVCodecContext *enc = ost->enc_ctx; in do_video_out()
1297 AVRational time_base = ost->stream_copy ? ost->mux_timebase : ost->enc_ctx->time_base; in finish_output_stream()
1323 AVCodecContext *enc = ost->enc_ctx; in reap_filters()
2933 AVCodecContext *enc_ctx = ost->enc_ctx; init_encoder_time_base() local
2957 AVCodecContext *enc_ctx = ost->enc_ctx; init_output_stream_encode() local
[all...]
H A Dffmpeg_hw.c456 ost->enc_ctx->pix_fmt) { in hw_device_setup_for_encode()
471 config->pix_fmt == ost->enc_ctx->pix_fmt)) { in hw_device_setup_for_encode()
472 av_log(ost->enc_ctx, AV_LOG_VERBOSE, "Using input " in hw_device_setup_for_encode()
474 av_get_pix_fmt_name(ost->enc_ctx->pix_fmt), in hw_device_setup_for_encode()
476 ost->enc_ctx->hw_frames_ctx = av_buffer_ref(frames_ref); in hw_device_setup_for_encode()
477 if (!ost->enc_ctx->hw_frames_ctx) in hw_device_setup_for_encode()
488 av_log(ost->enc_ctx, AV_LOG_VERBOSE, "Using device %s " in hw_device_setup_for_encode()
491 ost->enc_ctx->hw_device_ctx = av_buffer_ref(dev->device_ref); in hw_device_setup_for_encode()
492 if (!ost->enc_ctx->hw_device_ctx) in hw_device_setup_for_encode()
H A Dffmpeg_filter.c55 static enum AVPixelFormat choose_pixel_fmt(AVStream *st, AVCodecContext *enc_ctx, in choose_pixel_fmt() argument
65 if (enc_ctx->strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL) { in choose_pixel_fmt()
95 av_opt_set(ost->enc_ctx, "strict", strict_dict->value, 0); in choose_pix_fmts()
100 if (ost->enc_ctx->pix_fmt == AV_PIX_FMT_NONE) in choose_pix_fmts()
102 return av_get_pix_fmt_name(ost->enc_ctx->pix_fmt); in choose_pix_fmts()
104 if (ost->enc_ctx->pix_fmt != AV_PIX_FMT_NONE) { in choose_pix_fmts()
105 return av_get_pix_fmt_name(choose_pixel_fmt(ost->st, ost->enc_ctx, ost->enc, ost->enc_ctx->pix_fmt)); in choose_pix_fmts()
110 if (ost->enc_ctx->strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL) { in choose_pix_fmts()
525 AVCodecContext *codec = ost->enc_ctx; in configure_output_audio_filter()
[all...]
H A Dffmpeg_opt.c1557 ost->enc_ctx = avcodec_alloc_context3(ost->enc); in new_output_stream()
1558 if (!ost->enc_ctx) { in new_output_stream()
1562 ost->enc_ctx->codec_type = type; in new_output_stream()
1617 ost->enc_ctx->flags |= AV_CODEC_FLAG_BITEXACT; in new_output_stream()
1672 ost->enc_ctx->codec_tag = tag; in new_output_stream()
1677 ost->enc_ctx->flags |= AV_CODEC_FLAG_QSCALE; in new_output_stream()
1678 ost->enc_ctx->global_quality = FF_QP2LAMBDA * qscale; in new_output_stream()
1696 ost->enc_ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; in new_output_stream()
1808 video_enc = ost->enc_ctx; in new_video_stream()
2047 audio_enc = ost->enc_ctx; in new_audio_stream()
[all...]
H A Dffmpeg_mux.c160 av_get_media_type_string(ost->enc_ctx->codec_type), in of_write_packet()
H A Dffmpeg.h479 AVCodecContext *enc_ctx; member
/third_party/ffmpeg/libavformat/
H A Davformat.c638 AVCodecContext *const enc_ctx = ffstream(ost)->avctx; in avformat_transfer_internal_stream_timing_info() local
640 enc_ctx->time_base = ist->time_base; in avformat_transfer_internal_stream_timing_info()
654 enc_ctx->time_base.num = ist->r_frame_rate.den; in avformat_transfer_internal_stream_timing_info()
655 enc_ctx->time_base.den = 2*ist->r_frame_rate.num; in avformat_transfer_internal_stream_timing_info()
656 enc_ctx->ticks_per_frame = 2; in avformat_transfer_internal_stream_timing_info()
662 enc_ctx->time_base = dec_ctx->time_base; in avformat_transfer_internal_stream_timing_info()
663 enc_ctx->time_base.num *= dec_ctx->ticks_per_frame; in avformat_transfer_internal_stream_timing_info()
664 enc_ctx->time_base.den *= 2; in avformat_transfer_internal_stream_timing_info()
665 enc_ctx->ticks_per_frame = 2; in avformat_transfer_internal_stream_timing_info()
673 enc_ctx in avformat_transfer_internal_stream_timing_info()
[all...]
/third_party/openssl/test/
H A Dbad_dtls_test.c286 EVP_CIPHER_CTX *enc_ctx = NULL; in send_record() local
335 || !TEST_ptr(enc_ctx = EVP_CIPHER_CTX_new()) in send_record()
336 || !TEST_true(EVP_CipherInit_ex(enc_ctx, EVP_aes_128_cbc(), NULL, in send_record()
338 || !TEST_int_ge(EVP_Cipher(enc_ctx, enc, enc, len), 0)) in send_record()
356 EVP_CIPHER_CTX_free(enc_ctx); in send_record()

Completed in 16 milliseconds