/third_party/ffmpeg/libavcodec/ |
H A D | encode.c | 35 int ff_alloc_packet(AVCodecContext *avctx, AVPacket *avpkt, int64_t size) in ff_alloc_packet() argument 38 av_log(avctx, AV_LOG_ERROR, "Invalid minimum required packet size %"PRId64" (max allowed is %d)\n", in ff_alloc_packet() 45 av_fast_padded_malloc(&avctx->internal->byte_buffer, in ff_alloc_packet() 46 &avctx->internal->byte_buffer_size, size); in ff_alloc_packet() 47 avpkt->data = avctx->internal->byte_buffer; in ff_alloc_packet() 49 av_log(avctx, AV_LOG_ERROR, "Failed to allocate packet of size %"PRId64"\n", size); in ff_alloc_packet() 57 int avcodec_default_get_encode_buffer(AVCodecContext *avctx, AVPacket *avpkt, int flags) in avcodec_default_get_encode_buffer() argument 65 av_log(avctx, AV_LOG_ERROR, "avpkt->{data,buf} != NULL in avcodec_default_get_encode_buffer()\n"); in avcodec_default_get_encode_buffer() 71 av_log(avctx, AV_LOG_ERROR, "Failed to allocate packet of size %d\n", avpkt->size); in avcodec_default_get_encode_buffer() 79 int ff_get_encode_buffer(AVCodecContext *avctx, AVPacke argument 146 avcodec_encode_subtitle(AVCodecContext *avctx, uint8_t *buf, int buf_size, const AVSubtitle *sub) avcodec_encode_subtitle() argument 160 ff_encode_get_frame(AVCodecContext *avctx, AVFrame *frame) ff_encode_get_frame() argument 175 encode_simple_internal(AVCodecContext *avctx, AVPacket *avpkt) encode_simple_internal() argument 264 encode_simple_receive_packet(AVCodecContext *avctx, AVPacket *avpkt) encode_simple_receive_packet() argument 277 encode_receive_packet_internal(AVCodecContext *avctx, AVPacket *avpkt) encode_receive_packet_internal() argument 311 encode_send_frame_internal(AVCodecContext *avctx, const AVFrame *src) encode_send_frame_internal() argument 357 avcodec_send_frame(AVCodecContext *avctx, const AVFrame *frame) avcodec_send_frame() argument 390 avcodec_receive_packet(AVCodecContext *avctx, AVPacket *avpkt) avcodec_receive_packet() argument 411 encode_preinit_video(AVCodecContext *avctx) encode_preinit_video() argument 478 encode_preinit_audio(AVCodecContext *avctx) encode_preinit_audio() argument 563 ff_encode_preinit(AVCodecContext *avctx) ff_encode_preinit() argument 600 ff_encode_alloc_frame(AVCodecContext *avctx, AVFrame *frame) ff_encode_alloc_frame() argument [all...] |
H A D | rawdec.c | 71 static av_cold int raw_init_decoder(AVCodecContext *avctx) in raw_init_decoder() argument 73 RawVideoContext *context = avctx->priv_data; in raw_init_decoder() 78 if ( avctx->codec_tag == MKTAG('r','a','w',' ') in raw_init_decoder() 79 || avctx->codec_tag == MKTAG('N','O','1','6')) in raw_init_decoder() 80 avctx->pix_fmt = avpriv_pix_fmt_find(PIX_FMT_LIST_MOV, in raw_init_decoder() 81 avctx->bits_per_coded_sample); in raw_init_decoder() 82 else if (avctx->codec_tag == MKTAG('W', 'R', 'A', 'W')) in raw_init_decoder() 83 avctx->pix_fmt = avpriv_pix_fmt_find(PIX_FMT_LIST_AVI, in raw_init_decoder() 84 avctx->bits_per_coded_sample); in raw_init_decoder() 85 else if (avctx in raw_init_decoder() 132 flip(AVCodecContext *avctx, AVFrame *frame) flip() argument 166 raw_decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt) raw_decode() argument 474 raw_close_decoder(AVCodecContext *avctx) raw_close_decoder() argument [all...] |
H A D | avcodec.c | 115 int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options) in avcodec_open2() argument 121 if (avcodec_is_open(avctx)) in avcodec_open2() 124 if (!codec && !avctx->codec) { in avcodec_open2() 125 av_log(avctx, AV_LOG_ERROR, "No codec provided to avcodec_open2()\n"); in avcodec_open2() 128 if (codec && avctx->codec && codec != avctx->codec) { in avcodec_open2() 129 av_log(avctx, AV_LOG_ERROR, "This AVCodecContext was allocated for %s, " in avcodec_open2() 130 "but %s passed to avcodec_open2()\n", avctx->codec->name, codec->name); in avcodec_open2() 134 codec = avctx->codec; in avcodec_open2() 137 if ((avctx in avcodec_open2() 377 avcodec_flush_buffers(AVCodecContext *avctx) avcodec_flush_buffers() argument 440 avcodec_close(AVCodecContext *avctx) avcodec_close() argument [all...] |
H A D | nvenc.c | 39 #define CHECK_CU(x) FF_CUDA_CHECK_DL(avctx, dl_fn->cuda_dl, x) 139 static int nvenc_print_error(AVCodecContext *avctx, NVENCSTATUS err, in nvenc_print_error() argument 147 NvencContext *ctx = avctx->priv_data; in nvenc_print_error() 154 av_log(avctx, AV_LOG_ERROR, "%s: %s (%d): %s\n", error_string, desc, err, details); in nvenc_print_error() 223 static void nvenc_print_driver_requirement(AVCodecContext *avctx, int level) in nvenc_print_driver_requirement() argument 276 av_log(avctx, level, "The minimum required Nvidia driver for nvenc is %s or newer\n", minver); in nvenc_print_driver_requirement() 279 static av_cold int nvenc_load_libraries(AVCodecContext *avctx) in nvenc_load_libraries() argument 281 NvencContext *ctx = avctx->priv_data; in nvenc_load_libraries() 287 ret = cuda_load_functions(&dl_fn->cuda_dl, avctx); in nvenc_load_libraries() 291 ret = nvenc_load_functions(&dl_fn->nvenc_dl, avctx); in nvenc_load_libraries() 323 nvenc_push_context(AVCodecContext *avctx) nvenc_push_context() argument 334 nvenc_pop_context(AVCodecContext *avctx) nvenc_pop_context() argument 346 nvenc_open_session(AVCodecContext *avctx) nvenc_open_session() argument 372 nvenc_check_codec_support(AVCodecContext *avctx) nvenc_check_codec_support() argument 408 nvenc_check_cap(AVCodecContext *avctx, NV_ENC_CAPS cap) nvenc_check_cap() argument 425 nvenc_check_capabilities(AVCodecContext *avctx) nvenc_check_capabilities() argument 574 nvenc_check_device(AVCodecContext *avctx, int idx) nvenc_check_device() argument 649 nvenc_setup_device(AVCodecContext *avctx) nvenc_setup_device() argument 760 set_constqp(AVCodecContext *avctx) set_constqp() argument 793 set_vbr(AVCodecContext *avctx) set_vbr() argument 855 set_lossless(AVCodecContext *avctx) set_lossless() argument 869 nvenc_override_rate_control(AVCodecContext *avctx) nvenc_override_rate_control() argument 900 nvenc_recalc_surfaces(AVCodecContext *avctx) nvenc_recalc_surfaces() argument 939 nvenc_setup_rate_control(AVCodecContext *avctx) nvenc_setup_rate_control() argument 1093 nvenc_setup_h264_config(AVCodecContext *avctx) nvenc_setup_h264_config() argument 1205 nvenc_setup_hevc_config(AVCodecContext *avctx) nvenc_setup_hevc_config() argument 1311 nvenc_setup_codec_config(AVCodecContext *avctx) nvenc_setup_codec_config() argument 1324 compute_dar(AVCodecContext *avctx, int *dw, int *dh) compute_dar() argument 1338 nvenc_setup_encoder(AVCodecContext *avctx) nvenc_setup_encoder() argument 1532 nvenc_alloc_surface(AVCodecContext *avctx, int idx) nvenc_alloc_surface() argument 1588 nvenc_setup_surfaces(AVCodecContext *avctx) nvenc_setup_surfaces() argument 1629 nvenc_setup_extradata(AVCodecContext *avctx) nvenc_setup_extradata() argument 1662 ff_nvenc_encode_close(AVCodecContext *avctx) ff_nvenc_encode_close() argument 1741 ff_nvenc_encode_init(AVCodecContext *avctx) ff_nvenc_encode_init() argument 1799 nvenc_copy_frame(AVCodecContext *avctx, NvencSurface *nv_surface, NV_ENC_LOCK_INPUT_BUFFER *lock_buffer_params, const AVFrame *frame) nvenc_copy_frame() argument 1829 nvenc_find_free_reg_resource(AVCodecContext *avctx) nvenc_find_free_reg_resource() argument 1863 nvenc_register_frame(AVCodecContext *avctx, const AVFrame *frame) nvenc_register_frame() argument 1917 nvenc_upload_frame(AVCodecContext *avctx, const AVFrame *frame, NvencSurface *nvenc_frame) nvenc_upload_frame() argument 1979 nvenc_codec_specific_pic_params(AVCodecContext *avctx, NV_ENC_PIC_PARAMS *params, NV_ENC_SEI_PAYLOAD *sei_data, int sei_count) nvenc_codec_specific_pic_params() argument 2026 nvenc_set_timestamp(AVCodecContext *avctx, NV_ENC_LOCK_BITSTREAM *params, AVPacket *pkt) nvenc_set_timestamp() argument 2040 process_output_surface(AVCodecContext *avctx, AVPacket *pkt, NvencSurface *tmpoutsurf) process_output_surface() argument 2161 output_ready(AVCodecContext *avctx, int flush) output_ready() argument 2173 prepare_sei_data_array(AVCodecContext *avctx, const AVFrame *frame) prepare_sei_data_array() argument 2271 reconfig_encoder(AVCodecContext *avctx, const AVFrame *frame) reconfig_encoder() argument 2363 nvenc_send_frame(AVCodecContext *avctx, const AVFrame *frame) nvenc_send_frame() argument 2469 ff_nvenc_receive_packet(AVCodecContext *avctx, AVPacket *pkt) ff_nvenc_receive_packet() argument 2520 ff_nvenc_encode_flush(AVCodecContext *avctx) ff_nvenc_encode_flush() argument [all...] |
H A D | decode.c | 52 static int apply_param_change(AVCodecContext *avctx, const AVPacket *avpkt) in apply_param_change() argument 64 if (!(avctx->codec->capabilities & AV_CODEC_CAP_PARAM_CHANGE)) { in apply_param_change() 65 av_log(avctx, AV_LOG_ERROR, "This decoder does not support parameter " in apply_param_change() 84 av_log(avctx, AV_LOG_ERROR, "Invalid channel count"); in apply_param_change() 88 avctx->channels = val; in apply_param_change() 94 avctx->channel_layout = bytestream_get_le64(&data); in apply_param_change() 104 av_log(avctx, AV_LOG_ERROR, "Invalid sample rate"); in apply_param_change() 108 avctx->sample_rate = val; in apply_param_change() 114 avctx->width = bytestream_get_le32(&data); in apply_param_change() 115 avctx in apply_param_change() 170 decode_bsfs_init(AVCodecContext *avctx) decode_bsfs_init() argument 205 ff_decode_get_packet(AVCodecContext *avctx, AVPacket *pkt) ff_decode_get_packet() argument 277 decode_simple_internal(AVCodecContext *avctx, AVFrame *frame, int64_t *discarded_samples) decode_simple_internal() argument 507 decode_simple_receive_frame(AVCodecContext *avctx, AVFrame *frame) decode_simple_receive_frame() argument 523 decode_receive_frame_internal(AVCodecContext *avctx, AVFrame *frame) decode_receive_frame_internal() argument 576 avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt) avcodec_send_packet() argument 612 apply_cropping(AVCodecContext *avctx, AVFrame *frame) apply_cropping() argument 639 avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame) avcodec_receive_frame() argument 736 recode_subtitle(AVCodecContext *avctx, AVPacket **outpkt, AVPacket *inpkt, AVPacket *buf_pkt) recode_subtitle() argument 816 avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, AVPacket *avpkt) avcodec_decode_subtitle2() argument 888 avcodec_default_get_format(struct AVCodecContext *avctx, const enum AVPixelFormat *fmt) avcodec_default_get_format() argument 951 ff_decode_get_hw_frames_ctx(AVCodecContext *avctx, enum AVHWDeviceType dev_type) ff_decode_get_hw_frames_ctx() argument 1002 avcodec_get_hw_frames_parameters(AVCodecContext *avctx, AVBufferRef *device_ref, enum AVPixelFormat hw_pix_fmt, AVBufferRef **out_frames_ref) avcodec_get_hw_frames_parameters() argument 1051 hwaccel_init(AVCodecContext *avctx, const AVCodecHWConfigInternal *hw_config) hwaccel_init() argument 1088 hwaccel_uninit(AVCodecContext *avctx) hwaccel_uninit() argument 1100 ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt) ff_get_format() argument 1247 ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame) ff_decode_frame_props() argument 1345 validate_avframe_allocation(AVCodecContext *avctx, AVFrame *frame) validate_avframe_allocation() argument 1403 ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) ff_get_buffer() argument 1484 reget_buffer_internal(AVCodecContext *avctx, AVFrame *frame, int flags) reget_buffer_internal() argument 1521 ff_reget_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) ff_reget_buffer() argument 1529 ff_decode_preinit(AVCodecContext *avctx) ff_decode_preinit() argument [all...] |
H A D | librav1e.c | 111 static int get_stats(AVCodecContext *avctx, int eos) in get_stats() argument 113 librav1eContext *ctx = avctx->priv_data; in get_stats() 134 avctx->stats_out = av_malloc(b64_size); in get_stats() 135 if (!avctx->stats_out) { in get_stats() 140 av_base64_encode(avctx->stats_out, b64_size, ctx->pass_data, ctx->pass_pos); in get_stats() 150 static int set_stats(AVCodecContext *avctx) in set_stats() argument 152 librav1eContext *ctx = avctx->priv_data; in set_stats() 165 static av_cold int librav1e_encode_close(AVCodecContext *avctx) in librav1e_encode_close() argument 167 librav1eContext *ctx = avctx->priv_data; in librav1e_encode_close() 185 static av_cold int librav1e_encode_init(AVCodecContext *avctx) in librav1e_encode_init() argument 433 librav1e_receive_packet(AVCodecContext *avctx, AVPacket *pkt) librav1e_receive_packet() argument [all...] |
H A D | mfenc.c | 59 static int mf_choose_output_type(AVCodecContext *avctx); 60 static int mf_setup_context(AVCodecContext *avctx); 66 static int mf_wait_events(AVCodecContext *avctx) in mf_wait_events() argument 68 MFContext *c = avctx->priv_data; in mf_wait_events() 78 av_log(avctx, AV_LOG_ERROR, "IMFMediaEventGenerator_GetEvent() failed: %s\n", in mf_wait_events() 105 static AVRational mf_get_tb(AVCodecContext *avctx) in mf_get_tb() argument 107 if (avctx->time_base.num > 0 && avctx->time_base.den > 0) in mf_get_tb() 108 return avctx->time_base; in mf_get_tb() 112 static LONGLONG mf_to_mf_time(AVCodecContext *avctx, int64_ argument 119 mf_sample_set_pts(AVCodecContext *avctx, IMFSample *sample, int64_t av_pts) mf_sample_set_pts() argument 126 mf_from_mf_time(AVCodecContext *avctx, LONGLONG stime) mf_from_mf_time() argument 131 mf_sample_get_pts(AVCodecContext *avctx, IMFSample *sample) mf_sample_get_pts() argument 140 mf_enca_output_type_get(AVCodecContext *avctx, IMFMediaType *type) mf_enca_output_type_get() argument 180 mf_encv_output_type_get(AVCodecContext *avctx, IMFMediaType *type) mf_encv_output_type_get() argument 203 mf_output_type_get(AVCodecContext *avctx) mf_output_type_get() argument 233 mf_sample_to_avpacket(AVCodecContext *avctx, IMFSample *sample, AVPacket *avpkt) mf_sample_to_avpacket() argument 288 mf_a_avframe_to_sample(AVCodecContext *avctx, const AVFrame *frame) mf_a_avframe_to_sample() argument 305 mf_v_avframe_to_sample(AVCodecContext *avctx, const AVFrame *frame) mf_v_avframe_to_sample() argument 352 mf_avframe_to_sample(AVCodecContext *avctx, const AVFrame *frame) mf_avframe_to_sample() argument 369 mf_send_sample(AVCodecContext *avctx, IMFSample *sample) mf_send_sample() argument 407 mf_receive_sample(AVCodecContext *avctx, IMFSample **out_sample) mf_receive_sample() argument 489 mf_receive_packet(AVCodecContext *avctx, AVPacket *avpkt) mf_receive_packet() argument 534 mf_enca_output_score(AVCodecContext *avctx, IMFMediaType *type) mf_enca_output_score() argument 574 mf_enca_output_adjust(AVCodecContext *avctx, IMFMediaType *type) mf_enca_output_adjust() argument 584 mf_enca_input_score(AVCodecContext *avctx, IMFMediaType *type) mf_enca_input_score() argument 608 mf_enca_input_adjust(AVCodecContext *avctx, IMFMediaType *type) mf_enca_input_adjust() argument 634 mf_encv_output_score(AVCodecContext *avctx, IMFMediaType *type) mf_encv_output_score() argument 650 mf_encv_output_adjust(AVCodecContext *avctx, IMFMediaType *type) mf_encv_output_adjust() argument 712 mf_encv_input_score(AVCodecContext *avctx, IMFMediaType *type) mf_encv_input_score() argument 721 mf_encv_input_adjust(AVCodecContext *avctx, IMFMediaType *type) mf_encv_input_adjust() argument 734 mf_choose_output_type(AVCodecContext *avctx) mf_choose_output_type() argument 823 mf_choose_input_type(AVCodecContext *avctx) mf_choose_input_type() argument 911 mf_negotiate_types(AVCodecContext *avctx) mf_negotiate_types() argument 938 mf_setup_context(AVCodecContext *avctx) mf_setup_context() argument 966 mf_unlock_async(AVCodecContext *avctx) mf_unlock_async() argument 1045 mf_init_encoder(AVCodecContext *avctx) mf_init_encoder() argument 1157 mf_load_library(AVCodecContext *avctx) mf_load_library() argument 1181 mf_close(AVCodecContext *avctx) mf_close() argument 1209 mf_init(AVCodecContext *avctx) mf_init() argument [all...] |
H A D | libopusenc.c | 88 static void libopus_write_header(AVCodecContext *avctx, int stream_count, in libopus_write_header() argument 93 uint8_t *p = avctx->extradata; in libopus_write_header() 94 int channels = avctx->ch_layout.nb_channels; in libopus_write_header() 99 bytestream_put_le16(&p, avctx->initial_padding * 48000 / avctx->sample_rate); /* Lookahead samples at 48kHz */ in libopus_write_header() 100 bytestream_put_le32(&p, avctx->sample_rate); /* Original sample rate */ in libopus_write_header() 112 static int libopus_configure_encoder(AVCodecContext *avctx, OpusMSEncoder *enc, in libopus_configure_encoder() argument 117 if (avctx->global_quality) { in libopus_configure_encoder() 118 av_log(avctx, AV_LOG_ERROR, in libopus_configure_encoder() 124 ret = opus_multistream_encoder_ctl(enc, OPUS_SET_BITRATE(avctx in libopus_configure_encoder() 181 libopus_check_max_channels(AVCodecContext *avctx, int max_channels) libopus_check_max_channels() argument 192 libopus_check_vorbis_layout(AVCodecContext *avctx, int mapping_family) libopus_check_vorbis_layout() argument 213 libopus_validate_layout_and_get_channel_map( AVCodecContext *avctx, int mapping_family, const uint8_t ** channel_map_result) libopus_validate_layout_and_get_channel_map() argument 258 libopus_encode_init(AVCodecContext *avctx) libopus_encode_init() argument 455 libopus_encode(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) libopus_encode() argument 535 libopus_encode_close(AVCodecContext *avctx) libopus_encode_close() argument [all...] |
H A D | pcm-bluray.c | 51 * @param avctx the codec context 54 static int pcm_bluray_parse_header(AVCodecContext *avctx, in pcm_bluray_parse_header() argument 67 if (avctx->debug & FF_DEBUG_PICT_INFO) in pcm_bluray_parse_header() 68 ff_dlog(avctx, "pcm_bluray_parse_header: header = %02x%02x%02x%02x\n", in pcm_bluray_parse_header() 72 avctx->bits_per_coded_sample = bits_per_samples[header[3] >> 6]; in pcm_bluray_parse_header() 73 if (!(avctx->bits_per_coded_sample == 16 || avctx->bits_per_coded_sample == 24)) { in pcm_bluray_parse_header() 74 av_log(avctx, AV_LOG_ERROR, "unsupported sample depth (%d)\n", avctx->bits_per_coded_sample); in pcm_bluray_parse_header() 77 avctx in pcm_bluray_parse_header() 125 pcm_bluray_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) pcm_bluray_decode_frame() argument [all...] |
H A D | vaapi_encode.c | 41 static int vaapi_encode_make_packed_header(AVCodecContext *avctx, in vaapi_encode_make_packed_header() argument 45 VAAPIEncodeContext *ctx = avctx->priv_data; in vaapi_encode_make_packed_header() 64 av_log(avctx, AV_LOG_ERROR, "Failed to create parameter buffer " in vaapi_encode_make_packed_header() 75 av_log(avctx, AV_LOG_ERROR, "Failed to create data buffer " in vaapi_encode_make_packed_header() 82 av_log(avctx, AV_LOG_DEBUG, "Packed header buffer (%d) is %#x/%#x " in vaapi_encode_make_packed_header() 87 static int vaapi_encode_make_param_buffer(AVCodecContext *avctx, in vaapi_encode_make_param_buffer() argument 91 VAAPIEncodeContext *ctx = avctx->priv_data; in vaapi_encode_make_param_buffer() 104 av_log(avctx, AV_LOG_ERROR, "Failed to create parameter buffer " in vaapi_encode_make_param_buffer() 110 av_log(avctx, AV_LOG_DEBUG, "Param buffer (%d) is %#x.\n", in vaapi_encode_make_param_buffer() 115 static int vaapi_encode_make_misc_param_buffer(AVCodecContext *avctx, in vaapi_encode_make_misc_param_buffer() argument 138 vaapi_encode_wait(AVCodecContext *avctx, VAAPIEncodePicture *pic) vaapi_encode_wait() argument 183 vaapi_encode_make_row_slice(AVCodecContext *avctx, VAAPIEncodePicture *pic) vaapi_encode_make_row_slice() argument 238 vaapi_encode_make_tile_slice(AVCodecContext *avctx, VAAPIEncodePicture *pic) vaapi_encode_make_tile_slice() argument 265 vaapi_encode_issue(AVCodecContext *avctx, VAAPIEncodePicture *pic) vaapi_encode_issue() argument 653 vaapi_encode_output(AVCodecContext *avctx, VAAPIEncodePicture *pic, AVPacket *pkt) vaapi_encode_output() argument 722 vaapi_encode_discard(AVCodecContext *avctx, VAAPIEncodePicture *pic) vaapi_encode_discard() argument 739 vaapi_encode_alloc(AVCodecContext *avctx) vaapi_encode_alloc() argument 763 vaapi_encode_free(AVCodecContext *avctx, VAAPIEncodePicture *pic) vaapi_encode_free() argument 794 vaapi_encode_add_ref(AVCodecContext *avctx, VAAPIEncodePicture *pic, VAAPIEncodePicture *target, int is_ref, int in_dpb, int prev) vaapi_encode_add_ref() argument 824 vaapi_encode_remove_refs(AVCodecContext *avctx, VAAPIEncodePicture *pic, int level) vaapi_encode_remove_refs() argument 854 vaapi_encode_set_b_pictures(AVCodecContext *avctx, VAAPIEncodePicture *start, VAAPIEncodePicture *end, VAAPIEncodePicture *prev, int current_depth, VAAPIEncodePicture **last) vaapi_encode_set_b_pictures() argument 918 vaapi_encode_pick_next(AVCodecContext *avctx, VAAPIEncodePicture **pic_out) vaapi_encode_pick_next() argument 1054 vaapi_encode_clear_old(AVCodecContext *avctx) vaapi_encode_clear_old() argument 1092 vaapi_encode_check_frame(AVCodecContext *avctx, const AVFrame *frame) vaapi_encode_check_frame() argument 1118 vaapi_encode_send_frame(AVCodecContext *avctx, AVFrame *frame) vaapi_encode_send_frame() argument 1185 ff_vaapi_encode_receive_packet(AVCodecContext *avctx, AVPacket *pkt) ff_vaapi_encode_receive_packet() argument 1280 vaapi_encode_add_global_param(AVCodecContext *avctx, int type, void *buffer, size_t size) vaapi_encode_add_global_param() argument 1332 vaapi_encode_profile_entrypoint(AVCodecContext *avctx) vaapi_encode_profile_entrypoint() argument 1553 vaapi_encode_init_rate_control(AVCodecContext *avctx) vaapi_encode_init_rate_control() argument 1883 vaapi_encode_init_max_frame_size(AVCodecContext *avctx) vaapi_encode_init_max_frame_size() argument 1940 vaapi_encode_init_gop_structure(AVCodecContext *avctx) vaapi_encode_init_gop_structure() argument 2061 vaapi_encode_init_row_slice_structure(AVCodecContext *avctx, uint32_t slice_structure) vaapi_encode_init_row_slice_structure() argument 2106 vaapi_encode_init_tile_slice_structure(AVCodecContext *avctx, uint32_t slice_structure) vaapi_encode_init_tile_slice_structure() argument 2167 vaapi_encode_init_slice_structure(AVCodecContext *avctx) vaapi_encode_init_slice_structure() argument 2258 vaapi_encode_init_packed_headers(AVCodecContext *avctx) vaapi_encode_init_packed_headers() argument 2318 vaapi_encode_init_quality(AVCodecContext *avctx) vaapi_encode_init_quality() argument 2365 vaapi_encode_init_roi(AVCodecContext *avctx) vaapi_encode_init_roi() argument 2401 AVCodecContext *avctx = opaque; vaapi_encode_free_output_buffer() local 2415 AVCodecContext *avctx = opaque; vaapi_encode_alloc_output_buffer() local 2449 vaapi_encode_create_recon_frames(AVCodecContext *avctx) vaapi_encode_create_recon_frames() argument 2537 ff_vaapi_encode_init(AVCodecContext *avctx) ff_vaapi_encode_init() argument 2739 ff_vaapi_encode_close(AVCodecContext *avctx) ff_vaapi_encode_close() argument [all...] |
H A D | libopencore-amr.c | 37 static int amr_decode_fix_avctx(AVCodecContext *avctx) in amr_decode_fix_avctx() argument 39 const int is_amr_wb = 1 + (avctx->codec_id == AV_CODEC_ID_AMR_WB); in amr_decode_fix_avctx() 41 if (!avctx->sample_rate) in amr_decode_fix_avctx() 42 avctx->sample_rate = 8000 * is_amr_wb; in amr_decode_fix_avctx() 44 if (avctx->ch_layout.nb_channels > 1) { in amr_decode_fix_avctx() 45 avpriv_report_missing_feature(avctx, "multi-channel AMR"); in amr_decode_fix_avctx() 49 av_channel_layout_uninit(&avctx->ch_layout); in amr_decode_fix_avctx() 50 avctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; in amr_decode_fix_avctx() 51 avctx->sample_fmt = AV_SAMPLE_FMT_S16; in amr_decode_fix_avctx() 73 static av_cold int amr_nb_decode_init(AVCodecContext *avctx) in amr_nb_decode_init() argument 90 amr_nb_decode_close(AVCodecContext *avctx) amr_nb_decode_close() argument 99 amr_nb_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) amr_nb_decode_frame() argument 197 amr_nb_encode_init(AVCodecContext *avctx) amr_nb_encode_init() argument 227 amr_nb_encode_close(AVCodecContext *avctx) amr_nb_encode_close() argument 236 amr_nb_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) amr_nb_encode_frame() argument 319 amr_wb_decode_init(AVCodecContext *avctx) amr_wb_decode_init() argument 332 amr_wb_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) amr_wb_decode_frame() argument 367 amr_wb_decode_close(AVCodecContext *avctx) amr_wb_decode_close() argument [all...] |
H A D | dxva2_internal.h | 97 #define DXVA_SHARED_CONTEXT(avctx) ((FFDXVASharedContext *)((avctx)->internal->hwaccel_priv_data)) 99 #define DXVA_CONTEXT(avctx) (AVDXVAContext *)((avctx)->hwaccel_context ? (avctx)->hwaccel_context : (&(DXVA_SHARED_CONTEXT(avctx)->ctx))) 105 #define DXVA_CONTEXT_WORKAROUND(avctx, ctx) (ff_dxva2_is_d3d11(avctx) ? ctx->d3d11va.workaround : ctx->dxva2.workaround) 106 #define DXVA_CONTEXT_COUNT(avctx, ctx) (ff_dxva2_is_d3d11(avctx) [all...] |
H A D | crystalhd.c | 95 AVCodecContext *avctx; member 148 av_log(priv->avctx, AV_LOG_TRACE, "\tYBuffSz: %u\n", output->YbuffSz); in print_frame_info() 149 av_log(priv->avctx, AV_LOG_TRACE, "\tYBuffDoneSz: %u\n", in print_frame_info() 151 av_log(priv->avctx, AV_LOG_TRACE, "\tUVBuffDoneSz: %u\n", in print_frame_info() 153 av_log(priv->avctx, AV_LOG_TRACE, "\tTimestamp: %"PRIu64"\n", in print_frame_info() 155 av_log(priv->avctx, AV_LOG_TRACE, "\tPicture Number: %u\n", in print_frame_info() 157 av_log(priv->avctx, AV_LOG_TRACE, "\tWidth: %u\n", in print_frame_info() 159 av_log(priv->avctx, AV_LOG_TRACE, "\tHeight: %u\n", in print_frame_info() 161 av_log(priv->avctx, AV_LOG_TRACE, "\tChroma: 0x%03x\n", in print_frame_info() 163 av_log(priv->avctx, AV_LOG_TRAC in print_frame_info() 273 flush(AVCodecContext *avctx) flush() argument 285 uninit(AVCodecContext *avctx) uninit() argument 307 init(AVCodecContext *avctx) init() argument 428 copy_frame(AVCodecContext *avctx, BC_DTS_PROC_OUT *output, AVFrame *frame, int *got_frame) copy_frame() argument 562 receive_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame) receive_frame() argument 657 crystalhd_decode_packet(AVCodecContext *avctx, const AVPacket *avpkt) crystalhd_decode_packet() argument 707 crystalhd_receive_frame(AVCodecContext *avctx, AVFrame *frame) crystalhd_receive_frame() argument [all...] |
H A D | lclenc.c | 56 AVCodecContext *avctx; member 67 static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, in encode_frame() argument 70 LclEncContext *c = avctx->priv_data; in encode_frame() 74 int max_size = deflateBound(zstream, avctx->width * avctx->height * 3); in encode_frame() 76 if ((ret = ff_alloc_packet(avctx, pkt, max_size)) < 0) in encode_frame() 79 if(avctx->pix_fmt != AV_PIX_FMT_BGR24){ in encode_frame() 80 av_log(avctx, AV_LOG_ERROR, "Format not supported!\n"); in encode_frame() 86 av_log(avctx, AV_LOG_ERROR, "Deflate reset error: %d\n", zret); in encode_frame() 92 for(i = avctx in encode_frame() 113 encode_init(AVCodecContext *avctx) encode_init() argument 145 encode_end(AVCodecContext *avctx) encode_end() argument [all...] |
H A D | msrle.c | 43 AVCodecContext *avctx; member 51 static av_cold int msrle_decode_init(AVCodecContext *avctx) in msrle_decode_init() argument 53 MsrleContext *s = avctx->priv_data; in msrle_decode_init() 56 s->avctx = avctx; in msrle_decode_init() 58 switch (avctx->bits_per_coded_sample) { in msrle_decode_init() 60 avctx->pix_fmt = AV_PIX_FMT_MONOWHITE; in msrle_decode_init() 64 avctx->pix_fmt = AV_PIX_FMT_PAL8; in msrle_decode_init() 67 avctx->pix_fmt = AV_PIX_FMT_BGR24; in msrle_decode_init() 70 av_log(avctx, AV_LOG_ERRO in msrle_decode_init() 85 msrle_decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt) msrle_decode_frame() argument 145 msrle_decode_flush(AVCodecContext *avctx) msrle_decode_flush() argument 152 msrle_decode_end(AVCodecContext *avctx) msrle_decode_end() argument [all...] |
H A D | libx265.c | 82 static av_cold int libx265_encode_close(AVCodecContext *avctx) in libx265_encode_close() argument 84 libx265Context *ctx = avctx->priv_data; in libx265_encode_close() 95 static av_cold int libx265_param_parse_float(AVCodecContext *avctx, in libx265_param_parse_float() argument 98 libx265Context *ctx = avctx->priv_data; in libx265_param_parse_float() 103 av_log(avctx, AV_LOG_ERROR, "Invalid value %2.2f for param \"%s\".\n", value, key); in libx265_param_parse_float() 110 static av_cold int libx265_param_parse_int(AVCodecContext *avctx, in libx265_param_parse_int() argument 113 libx265Context *ctx = avctx->priv_data; in libx265_param_parse_int() 118 av_log(avctx, AV_LOG_ERROR, "Invalid value %d for param \"%s\".\n", value, key); in libx265_param_parse_int() 125 static av_cold int libx265_encode_init(AVCodecContext *avctx) in libx265_encode_init() argument 127 libx265Context *ctx = avctx in libx265_encode_init() 502 libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic, int *got_packet) libx265_encode_frame() argument [all...] |
H A D | audiotoolboxdec.c | 161 static int ffat_update_ctx(AVCodecContext *avctx) in ffat_update_ctx() argument 163 ATDecodeContext *at = avctx->priv_data; in ffat_update_ctx() 170 avctx->sample_rate = format.mSampleRate; in ffat_update_ctx() 171 av_channel_layout_uninit(&avctx->ch_layout); in ffat_update_ctx() 172 av_channel_layout_default(&avctx->ch_layout, format.mChannelsPerFrame); in ffat_update_ctx() 173 avctx->frame_size = format.mFramesPerPacket; in ffat_update_ctx() 179 format.mSampleRate = avctx->sample_rate; in ffat_update_ctx() 180 format.mChannelsPerFrame = avctx->ch_layout.nb_channels; in ffat_update_ctx() 206 av_channel_layout_uninit(&avctx->ch_layout); in ffat_update_ctx() 207 av_channel_layout_from_mask(&avctx in ffat_update_ctx() 231 ffat_get_magic_cookie(AVCodecContext *avctx, UInt32 *cookie_size) ffat_get_magic_cookie() argument 271 ffat_usable_extradata(AVCodecContext *avctx) ffat_usable_extradata() argument 281 ffat_set_extradata(AVCodecContext *avctx) ffat_set_extradata() argument 303 ffat_create_decoder(AVCodecContext *avctx, const AVPacket *pkt) ffat_create_decoder() argument 410 ffat_init_decoder(AVCodecContext *avctx) ffat_init_decoder() argument 432 AVCodecContext *avctx = inctx; ffat_decode_callback() local 476 ffat_copy_samples(AVCodecContext *avctx, AVFrame *frame) ffat_copy_samples() argument 486 ffat_decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) ffat_decode() argument 564 ffat_decode_flush(AVCodecContext *avctx) ffat_decode_flush() argument 572 ffat_close_decoder(AVCodecContext *avctx) ffat_close_decoder() argument [all...] |
H A D | pthread.c | 46 * @param avctx The context. 48 static void validate_thread_parameters(AVCodecContext *avctx) in validate_thread_parameters() argument 50 int frame_threading_supported = (avctx->codec->capabilities & AV_CODEC_CAP_FRAME_THREADS) in validate_thread_parameters() 52 && !(avctx->flags & AV_CODEC_FLAG_TRUNCATED) in validate_thread_parameters() 54 && !(avctx->flags & AV_CODEC_FLAG_LOW_DELAY) in validate_thread_parameters() 55 && !(avctx->flags2 & AV_CODEC_FLAG2_CHUNKS); in validate_thread_parameters() 56 if (avctx->thread_count == 1) { in validate_thread_parameters() 57 avctx->active_thread_type = 0; in validate_thread_parameters() 58 } else if (frame_threading_supported && (avctx->thread_type & FF_THREAD_FRAME)) { in validate_thread_parameters() 59 avctx in validate_thread_parameters() 74 ff_thread_init(AVCodecContext *avctx) ff_thread_init() argument 86 ff_thread_free(AVCodecContext *avctx) ff_thread_free() argument [all...] |
H A D | qsvenc.c | 175 static void dump_video_param(AVCodecContext *avctx, QSVEncContext *q, in dump_video_param() argument 195 av_log(avctx, AV_LOG_VERBOSE, "profile: %s; level: %"PRIu16"\n", in dump_video_param() 196 print_profile(avctx->codec_id, info->CodecProfile), info->CodecLevel); in dump_video_param() 198 av_log(avctx, AV_LOG_VERBOSE, "GopPicSize: %"PRIu16"; GopRefDist: %"PRIu16"; GopOptFlag: ", in dump_video_param() 201 av_log(avctx, AV_LOG_VERBOSE, "closed "); in dump_video_param() 203 av_log(avctx, AV_LOG_VERBOSE, "strict "); in dump_video_param() 204 av_log(avctx, AV_LOG_VERBOSE, "; IdrInterval: %"PRIu16"\n", info->IdrInterval); in dump_video_param() 206 av_log(avctx, AV_LOG_VERBOSE, "TargetUsage: %"PRIu16"; RateControlMethod: %s\n", in dump_video_param() 215 av_log(avctx, AV_LOG_VERBOSE, in dump_video_param() 219 av_log(avctx, AV_LOG_VERBOS in dump_video_param() 347 dump_video_vp9_param(AVCodecContext *avctx, QSVEncContext *q, mfxExtBuffer **coding_opts) dump_video_vp9_param() argument 420 dump_video_mjpeg_param(AVCodecContext *avctx, QSVEncContext *q) dump_video_mjpeg_param() argument 432 select_rc_mode(AVCodecContext *avctx, QSVEncContext *q) select_rc_mode() argument 502 check_enc_param(AVCodecContext *avctx, QSVEncContext *q) check_enc_param() argument 533 init_video_param_jpeg(AVCodecContext *avctx, QSVEncContext *q) init_video_param_jpeg() argument 600 init_video_param(AVCodecContext *avctx, QSVEncContext *q) init_video_param() argument 983 qsv_retrieve_enc_jpeg_params(AVCodecContext *avctx, QSVEncContext *q) qsv_retrieve_enc_jpeg_params() argument 1003 qsv_retrieve_enc_vp9_params(AVCodecContext *avctx, QSVEncContext *q) qsv_retrieve_enc_vp9_params() argument 1057 qsv_retrieve_enc_params(AVCodecContext *avctx, QSVEncContext *q) qsv_retrieve_enc_params() argument 1175 qsv_init_opaque_alloc(AVCodecContext *avctx, QSVEncContext *q) qsv_init_opaque_alloc() argument 1212 qsvenc_init_session(AVCodecContext *avctx, QSVEncContext *q) qsvenc_init_session() argument 1254 ff_qsv_enc_init(AVCodecContext *avctx, QSVEncContext *q) ff_qsv_enc_init() argument 1551 print_interlace_msg(AVCodecContext *avctx, QSVEncContext *q) print_interlace_msg() argument 1563 set_roi_encode_ctrl(AVCodecContext *avctx, const AVFrame *frame, mfxEncodeCtrl *enc_ctrl) set_roi_encode_ctrl() argument 1624 update_qp(AVCodecContext *avctx, QSVEncContext *q, const AVFrame *frame) update_qp() argument 1660 update_parameters(AVCodecContext *avctx, QSVEncContext *q, const AVFrame *frame) update_parameters() argument 1701 encode_frame(AVCodecContext *avctx, QSVEncContext *q, const AVFrame *frame) encode_frame() argument 1814 ff_qsv_encode(AVCodecContext *avctx, QSVEncContext *q, AVPacket *pkt, const AVFrame *frame, int *got_packet) ff_qsv_encode() argument 1880 ff_qsv_enc_close(AVCodecContext *avctx, QSVEncContext *q) ff_qsv_enc_close() argument [all...] |
H A D | dpx.c | 153 static int decode_frame(AVCodecContext *avctx, AVFrame *p, in decode_frame() argument 174 av_log(avctx, AV_LOG_ERROR, "Packet too small for DPX header\n"); in decode_frame() 188 av_log(avctx, AV_LOG_ERROR, "DPX marker not found\n"); in decode_frame() 194 av_log(avctx, AV_LOG_ERROR, "Invalid data start offset\n"); in decode_frame() 204 av_log(avctx, AV_LOG_WARNING, "Unknown header format version %s.\n", in decode_frame() 211 avpriv_report_missing_feature(avctx, "Encryption"); in decode_frame() 212 av_log(avctx, AV_LOG_WARNING, "The image is encrypted and may " in decode_frame() 221 if ((ret = ff_set_dimensions(avctx, w, h)) < 0) in decode_frame() 232 avctx->bits_per_raw_sample = in decode_frame() 239 avpriv_report_missing_feature(avctx, "Encodin in decode_frame() [all...] |
H A D | libspeexdec.c | 41 static av_cold int libspeex_decode_init(AVCodecContext *avctx) in libspeex_decode_init() argument 43 LibSpeexContext *s = avctx->priv_data; in libspeex_decode_init() 46 int spx_mode, channels = avctx->ch_layout.nb_channels; in libspeex_decode_init() 48 if (avctx->extradata && avctx->extradata_size >= 80) { in libspeex_decode_init() 49 header = speex_packet_to_header(avctx->extradata, in libspeex_decode_init() 50 avctx->extradata_size); in libspeex_decode_init() 52 av_log(avctx, AV_LOG_WARNING, "Invalid Speex header\n"); in libspeex_decode_init() 54 if (avctx->codec_tag == MKTAG('S', 'P', 'X', 'N')) { in libspeex_decode_init() 56 if (!avctx in libspeex_decode_init() 127 libspeex_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) libspeex_decode_frame() argument 177 libspeex_decode_close(AVCodecContext *avctx) libspeex_decode_close() argument 187 libspeex_decode_flush(AVCodecContext *avctx) libspeex_decode_flush() argument [all...] |
H A D | libvpxenc.c | 191 static av_cold void log_encoder_error(AVCodecContext *avctx, const char *desc) in log_encoder_error() argument 193 VPxContext *ctx = avctx->priv_data; in log_encoder_error() 197 av_log(avctx, AV_LOG_ERROR, "%s: %s\n", desc, error); in log_encoder_error() 199 av_log(avctx, AV_LOG_ERROR, " Additional information: %s\n", detail); in log_encoder_error() 202 static av_cold void dump_enc_cfg(AVCodecContext *avctx, in dump_enc_cfg() argument 209 av_log(avctx, level, "vpx_codec_enc_cfg\n"); in dump_enc_cfg() 210 av_log(avctx, level, "generic settings\n" in dump_enc_cfg() 229 av_log(avctx, level, "rate control settings\n" in dump_enc_cfg() 239 av_log(avctx, level, "quantizer settings\n" in dump_enc_cfg() 243 av_log(avctx, leve in dump_enc_cfg() 356 codecctl_int(AVCodecContext *avctx, enum vp8e_enc_control_id id, int val) codecctl_int() argument 389 codecctl_intp(AVCodecContext *avctx, enum vp8e_enc_control_id id, int *val) codecctl_intp() argument 422 vpx_free(AVCodecContext *avctx) vpx_free() argument 706 set_pix_fmt(AVCodecContext *avctx, vpx_codec_caps_t codec_caps, struct vpx_codec_enc_cfg *enccfg, vpx_codec_flags_t *flags, vpx_img_fmt_t *img_fmt) set_pix_fmt() argument 779 set_colorspace(AVCodecContext *avctx) set_colorspace() argument 806 set_color_range(AVCodecContext *avctx) set_color_range() argument 827 set_vp8_defaults(AVCodecContext *avctx, struct vpx_codec_enc_cfg *enccfg) set_vp8_defaults() argument 852 set_vp9_defaults(AVCodecContext *avctx, struct vpx_codec_enc_cfg *enccfg) set_vp9_defaults() argument 871 set_vpx_defaults(AVCodecContext *avctx, struct vpx_codec_enc_cfg *enccfg) set_vpx_defaults() argument 884 vpx_init(AVCodecContext *avctx, const struct vpx_codec_iface *iface) vpx_init() argument 1238 storeframe(AVCodecContext *avctx, struct FrameListData *cx_frame, struct FrameListData *alpha_cx_frame, AVPacket *pkt) storeframe() argument 1302 queue_frames(AVCodecContext *avctx, struct vpx_codec_ctx *encoder, struct FrameListData **frame_list, AVPacket *pkt_out) queue_frames() argument 1393 set_roi_map(AVCodecContext *avctx, const AVFrameSideData *sd, int frame_width, int frame_height, vpx_roi_map_t *roi_map, int block_size, int segment_cnt) set_roi_map() argument 1500 vp9_encode_set_roi(AVCodecContext *avctx, int frame_width, int frame_height, const AVFrameSideData *sd) vp9_encode_set_roi() argument 1550 vp8_encode_set_roi(AVCodecContext *avctx, int frame_width, int frame_height, const AVFrameSideData *sd) vp8_encode_set_roi() argument 1572 realloc_alpha_uv(AVCodecContext *avctx, int width, int height) realloc_alpha_uv() argument 1600 vpx_encode(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) vpx_encode() argument 1928 vp8_init(AVCodecContext *avctx) vp8_init() argument 1960 vp9_init(AVCodecContext *avctx) vp9_init() argument [all...] |
H A D | libopenh264enc.c | 120 static av_cold int svc_encode_close(AVCodecContext *avctx) in svc_encode_close() argument 122 SVCContext *s = avctx->priv_data; in svc_encode_close() 127 av_log(avctx, AV_LOG_WARNING, "%d frames skipped\n", s->skipped); in svc_encode_close() 131 static av_cold int svc_encode_init(AVCodecContext *avctx) in svc_encode_init() argument 133 SVCContext *s = avctx->priv_data; in svc_encode_init() 140 if ((err = ff_libopenh264_check_version(avctx)) < 0) in svc_encode_init() 144 av_log(avctx, AV_LOG_ERROR, "Unable to create encoder\n"); in svc_encode_init() 157 (*s->encoder)->SetOption(s->encoder, ENCODER_OPTION_TRACE_CALLBACK_CONTEXT, &avctx); in svc_encode_init() 161 if (avctx->framerate.num > 0 && avctx in svc_encode_init() 383 svc_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet) svc_encode_frame() argument [all...] |
H A D | audiotoolboxenc.c | 91 static void ffat_update_ctx(AVCodecContext *avctx) in ffat_update_ctx() argument 93 ATDecodeContext *at = avctx->priv_data; in ffat_update_ctx() 110 avctx->initial_padding = prime_info.leadingFrames; in ffat_update_ctx() 118 avctx->frame_size = out_format.mFramesPerPacket; in ffat_update_ctx() 119 if (out_format.mBytesPerPacket && avctx->codec_id == AV_CODEC_ID_ILBC) in ffat_update_ctx() 120 avctx->block_align = out_format.mBytesPerPacket; in ffat_update_ctx() 123 at->frame_size = avctx->frame_size; in ffat_update_ctx() 124 if (avctx->codec_id == AV_CODEC_ID_PCM_MULAW || in ffat_update_ctx() 125 avctx->codec_id == AV_CODEC_ID_PCM_ALAW) { in ffat_update_ctx() 127 avctx in ffat_update_ctx() 145 get_ilbc_mode(AVCodecContext *avctx) get_ilbc_mode() argument 231 ffat_init_encoder(AVCodecContext *avctx) ffat_init_encoder() argument 456 AVCodecContext *avctx = inctx; ffat_encode_callback() local 494 ffat_encode(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) ffat_encode() argument 565 ffat_encode_flush(AVCodecContext *avctx) ffat_encode_flush() argument 573 ffat_close_encoder(AVCodecContext *avctx) ffat_close_encoder() argument [all...] |
H A D | pnm.c | 65 int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s) in ff_pnm_decode_header() argument 88 avctx->pix_fmt = AV_PIX_FMT_GBRPF32; in ff_pnm_decode_header() 90 avctx->pix_fmt = AV_PIX_FMT_GRAYF32; in ff_pnm_decode_header() 92 avctx->pix_fmt = AV_PIX_FMT_GBRPF32; in ff_pnm_decode_header() 95 avctx->pix_fmt = AV_PIX_FMT_GRAYF32; in ff_pnm_decode_header() 98 avctx->pix_fmt = AV_PIX_FMT_MONOWHITE; in ff_pnm_decode_header() 100 if (avctx->codec_id == AV_CODEC_ID_PGMYUV) in ff_pnm_decode_header() 101 avctx->pix_fmt = AV_PIX_FMT_YUV420P; in ff_pnm_decode_header() 103 avctx->pix_fmt = AV_PIX_FMT_GRAY8; in ff_pnm_decode_header() 105 avctx in ff_pnm_decode_header() [all...] |