/third_party/ffmpeg/libavfilter/ |
D | vf_mcdeint.c | 78 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->gop_size = INT_MAX; in config_props() 127 enc_ctx->max_b_frames = 0; in config_props() [all …]
|
/third_party/ffmpeg/doc/examples/ |
D | transcoding.c | 52 AVCodecContext *enc_ctx; member 124 AVCodecContext *dec_ctx, *enc_ctx; in open_output_file() local 155 enc_ctx = avcodec_alloc_context3(encoder); in open_output_file() 156 if (!enc_ctx) { in open_output_file() 165 enc_ctx->height = dec_ctx->height; in open_output_file() 166 enc_ctx->width = dec_ctx->width; in open_output_file() 167 enc_ctx->sample_aspect_ratio = dec_ctx->sample_aspect_ratio; in open_output_file() 170 enc_ctx->pix_fmt = encoder->pix_fmts[0]; in open_output_file() 172 enc_ctx->pix_fmt = dec_ctx->pix_fmt; in open_output_file() 174 enc_ctx->time_base = av_inv_q(dec_ctx->framerate); in open_output_file() [all …]
|
D | encode_video.c | 39 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/ |
D | api-flac-test.c | 51 static int init_encoder(AVCodec *enc, AVCodecContext **enc_ctx, in init_encoder() argument 77 *enc_ctx = ctx; in init_encoder() 108 static int run_test(AVCodec *enc, AVCodec *dec, AVCodecContext *enc_ctx, in run_test() argument 131 in_frame->nb_samples = enc_ctx->frame_size; in run_test() 132 in_frame->format = enc_ctx->sample_fmt; in run_test() 133 in_frame->channel_layout = enc_ctx->channel_layout; in run_test() 162 generate_raw_frame((uint16_t*)(in_frame->data[0]), i, enc_ctx->sample_rate, in run_test() 163 enc_ctx->channels, enc_ctx->frame_size); in run_test() 171 result = avcodec_send_frame(enc_ctx, in_frame); in run_test() 178 result = avcodec_receive_packet(enc_ctx, enc_pkt); in run_test() [all …]
|
/third_party/ffmpeg/fftools/ |
D | ffmpeg.c | 609 avcodec_free_context(&ost->enc_ctx); in ffmpeg_cleanup() 859 av_get_media_type_string(ost->enc_ctx->codec_type), in write_packet() 881 …int64_t end = av_rescale_q(ost->sync_opts - ost->first_pts, ost->enc_ctx->time_base, AV_TIME_BASE_… in close_output_stream() 928 av_compare_ts(ost->sync_opts - ost->first_pts, ost->enc_ctx->time_base, of->recording_time, in check_recording_time() 940 AVCodecContext *enc = ost->enc_ctx; in adjust_frame_pts_to_encoder_tb() 1007 AVCodecContext *enc = ost->enc_ctx; in do_audio_out() 1079 enc = ost->enc_ctx; in do_subtitle_out() 1151 AVCodecContext *enc = ost->enc_ctx; in do_video_out() 1455 enc = ost->enc_ctx; in do_video_stats() 1512 AVCodecContext *enc = ost->enc_ctx; in reap_filters() [all …]
|
D | ffmpeg_hw.c | 430 ost->enc_ctx->pix_fmt) { in hw_device_setup_for_encode() 445 config->pix_fmt == ost->enc_ctx->pix_fmt)) { in hw_device_setup_for_encode() 446 av_log(ost->enc_ctx, AV_LOG_VERBOSE, "Using input " in hw_device_setup_for_encode() 448 av_get_pix_fmt_name(ost->enc_ctx->pix_fmt), in hw_device_setup_for_encode() 450 ost->enc_ctx->hw_frames_ctx = av_buffer_ref(frames_ref); in hw_device_setup_for_encode() 451 if (!ost->enc_ctx->hw_frames_ctx) in hw_device_setup_for_encode() 462 av_log(ost->enc_ctx, AV_LOG_VERBOSE, "Using device %s " in hw_device_setup_for_encode() 465 ost->enc_ctx->hw_device_ctx = av_buffer_ref(dev->device_ref); in hw_device_setup_for_encode() 466 if (!ost->enc_ctx->hw_device_ctx) in hw_device_setup_for_encode()
|
D | ffmpeg_filter.c | 63 static enum AVPixelFormat choose_pixel_fmt(AVStream *st, AVCodecContext *enc_ctx, in choose_pixel_fmt() argument 73 if (enc_ctx->strict_std_compliance <= FF_COMPLIANCE_UNOFFICIAL) { in choose_pixel_fmt() 74 p = get_compliance_unofficial_pix_fmts(enc_ctx->codec_id, p); in choose_pixel_fmt() 100 av_opt_set(ost->enc_ctx, "strict", strict_dict->value, 0); in choose_pix_fmts() 105 if (ost->enc_ctx->pix_fmt == AV_PIX_FMT_NONE) in choose_pix_fmts() 107 return av_strdup(av_get_pix_fmt_name(ost->enc_ctx->pix_fmt)); in choose_pix_fmts() 109 if (ost->enc_ctx->pix_fmt != AV_PIX_FMT_NONE) { in choose_pix_fmts() 110 …av_strdup(av_get_pix_fmt_name(choose_pixel_fmt(ost->st, ost->enc_ctx, ost->enc, ost->enc_ctx->pix_… in choose_pix_fmts() 121 if (ost->enc_ctx->strict_std_compliance <= FF_COMPLIANCE_UNOFFICIAL) { in choose_pix_fmts() 122 p = get_compliance_unofficial_pix_fmts(ost->enc_ctx->codec_id, p); in choose_pix_fmts() [all …]
|
D | ffmpeg_opt.c | 1460 ost->enc_ctx = avcodec_alloc_context3(ost->enc); in new_output_stream() 1461 if (!ost->enc_ctx) { in new_output_stream() 1465 ost->enc_ctx->codec_type = type; in new_output_stream() 1511 ost->enc_ctx->flags |= AV_CODEC_FLAG_BITEXACT; in new_output_stream() 1563 ost->enc_ctx->codec_tag = tag; in new_output_stream() 1568 ost->enc_ctx->flags |= AV_CODEC_FLAG_QSCALE; in new_output_stream() 1569 ost->enc_ctx->global_quality = FF_QP2LAMBDA * qscale; in new_output_stream() 1585 ost->enc_ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; in new_output_stream() 1699 video_enc = ost->enc_ctx; in new_video_stream() 1911 audio_enc = ost->enc_ctx; in new_audio_stream() [all …]
|
D | ffmpeg.h | 474 AVCodecContext *enc_ctx; member
|
/third_party/openssl/test/ |
D | bad_dtls_test.c | 282 EVP_CIPHER_CTX *enc_ctx; in send_record() local 324 enc_ctx = EVP_CIPHER_CTX_new(); in send_record() 325 EVP_CipherInit_ex(enc_ctx, EVP_aes_128_cbc(), NULL, enc_key, iv, 1); in send_record() 326 EVP_Cipher(enc_ctx, enc, enc, len); in send_record() 327 EVP_CIPHER_CTX_free(enc_ctx); in send_record()
|
/third_party/ffmpeg/libavformat/ |
D | utils.c | 5818 AVCodecContext *enc_ctx; local 5823 enc_ctx = ost->codec; 5827 enc_ctx = ost->internal->avctx; 5830 enc_ctx->time_base = ist->time_base; 5844 enc_ctx->time_base.num = ist->r_frame_rate.den; 5845 enc_ctx->time_base.den = 2*ist->r_frame_rate.num; 5846 enc_ctx->ticks_per_frame = 2; 5852 enc_ctx->time_base = dec_ctx->time_base; 5853 enc_ctx->time_base.num *= dec_ctx->ticks_per_frame; 5854 enc_ctx->time_base.den *= 2; [all …]
|