diff options
author | Kovensky <diogomfranco@gmail.com> | 2012-11-07 11:49:44 -0300 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-08 00:28:59 +0100 |
commit | fae73079310eef9dce9737f2e37ff4b80c8830ee (patch) | |
tree | 4a9c7d9fbc398b237808283df39562e55077a225 /TOOLS/vdpau_functions.py | |
parent | 58f821e096392e27994102f6de6f8f76c63e38e1 (diff) | |
download | mpv-fae73079310eef9dce9737f2e37ff4b80c8830ee.tar.bz2 mpv-fae73079310eef9dce9737f2e37ff4b80c8830ee.tar.xz |
Port several python scripts to Perl
file2string.pl and vdpau_functions.pl are direct ports.
matroska.py was reimplemented as the Parse::Matroska module in CPAN,
and matroska.pl was made a client of Parse::Matroska.
A copy of Parse::Matroska is included in TOOLS/lib, and matroska.pl
looks there first when trying to load the module.
osxbundle.py was not ported since I have no means to verify it.
Python is always available on OSX though, so there is no harm in
removing the check for it on configure.
Diffstat (limited to 'TOOLS/vdpau_functions.py')
-rwxr-xr-x | TOOLS/vdpau_functions.py | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/TOOLS/vdpau_functions.py b/TOOLS/vdpau_functions.py deleted file mode 100755 index 85e6f1d942..0000000000 --- a/TOOLS/vdpau_functions.py +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env python - -# Generate vdpau_template.c - -functions = """ -# get_error_string should be first, because the function lookup loop should -# have it available to print errors for other functions -get_error_string - -bitmap_surface_create -bitmap_surface_destroy -bitmap_surface_put_bits_native -bitmap_surface_query_capabilities -decoder_create -decoder_destroy -decoder_render -device_destroy -generate_csc_matrix GenerateCSCMatrix # CSC completely capitalized -output_surface_create -output_surface_destroy -output_surface_get_bits_native -output_surface_put_bits_indexed -output_surface_put_bits_native -output_surface_render_bitmap_surface -output_surface_render_output_surface -preemption_callback_register -presentation_queue_block_until_surface_idle -presentation_queue_create -presentation_queue_destroy -presentation_queue_display -presentation_queue_get_time -presentation_queue_query_surface_status -presentation_queue_target_create_x11 -presentation_queue_target_destroy -video_mixer_create -video_mixer_destroy -video_mixer_query_feature_support -video_mixer_render -video_mixer_set_attribute_values -video_mixer_set_feature_enables -video_surface_create -video_surface_destroy -video_surface_put_bits_y_cb_cr -""" - -print(""" -/* List the VDPAU functions used by MPlayer. - * Generated by vdpau_functions.py. - * First argument on each line is the VDPAU function type name, - * second macro name needed to get function address, - * third name MPlayer uses for the function. - */ -""") -for line in functions.splitlines(): - parts = line.split('#')[0].strip().split() - if not parts: - continue # empty/comment line - if len(parts) > 1: - mp_name, vdpau_name = parts - else: - mp_name = parts[0] - vdpau_name = ''.join(part.capitalize() for part in mp_name.split('_')) - macro_name = mp_name.upper() - print('VDP_FUNCTION(Vdp%s, VDP_FUNC_ID_%s, %s)' % (vdpau_name, macro_name, mp_name)) |