1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| import os
function_names = [ "av_buffer_create", "av_buffer_get_opaque", "av_dict_get", "av_dict_set", "av_frame_alloc", "av_frame_free", "av_frame_unref", "av_free", "av_get_bytes_per_sample", "av_get_cpu_flags", "av_image_check_size", "av_log_set_level", "av_malloc", "av_max_alloc", "av_new_packet", "av_packet_alloc", "av_packet_copy_props", "av_packet_free", "av_packet_get_side_data", "av_packet_unref", "av_read_frame", "av_rescale_q", "av_samples_get_buffer_size", "av_seek_frame", "av_stream_get_first_dts", "av_stream_get_side_data", "av_strerror", "avcodec_align_dimensions", "avcodec_alloc_context3", "avcodec_descriptor_get", "avcodec_find_decoder", "avcodec_flush_buffers", "avcodec_free_context", "avcodec_open2", "avcodec_parameters_to_context", "avcodec_receive_frame", "avcodec_send_packet", "avformat_alloc_context", "avformat_close_input", "avformat_find_stream_info", "avformat_free_context", "avformat_open_input", "avio_alloc_context", ] print("START \n") for fn in function_names: print(f'extern "C" __declspec(dllexport) int {fn}()\n{{\n return 0;\n}}')
print("Done!")
|