Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: media/media.gyp

Issue 7003082: Implements RGB to YV12 conversion in YASM. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 # Override to dynamically link the PulseAudio library. 8 # Override to dynamically link the PulseAudio library.
9 'use_pulseaudio%': 0, 9 'use_pulseaudio%': 0,
10 'use_system_yasm%': 0,
10 }, 11 },
11 'targets': [ 12 'targets': [
12 { 13 {
13 'target_name': 'media', 14 'target_name': 'media',
14 'type': '<(component)', 15 'type': '<(component)',
15 'dependencies': [ 16 'dependencies': [
16 'yuv_convert', 17 'yuv_convert',
17 '../base/base.gyp:base', 18 '../base/base.gyp:base',
18 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 19 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
19 '../build/temp_gyp/googleurl.gyp:googleurl', 20 '../build/temp_gyp/googleurl.gyp:googleurl',
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 'Debug': { 374 'Debug': {
374 'xcode_settings': { 375 'xcode_settings': {
375 # gcc on the mac builds horribly unoptimized sse code in debug 376 # gcc on the mac builds horribly unoptimized sse code in debug
376 # mode. Since this is rarely going to be debugged, run with full 377 # mode. Since this is rarely going to be debugged, run with full
377 # optimizations in Debug as well as Release. 378 # optimizations in Debug as well as Release.
378 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 379 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
379 }, 380 },
380 }, 381 },
381 }, 382 },
382 }], 383 }],
384 [ 'target_arch=="ia32" or target_arch=="x64"', {
385 'sources': [
386 'base/simd/convert_rgb_to_yuv_ssse3.asm',
387 ],
388 }],
389 [ 'OS=="win"', {
Alpha Left Google 2011/09/06 17:08:32 I defined an include gypi file that helps to compi
390 'variables': {
391 'object_suffix': 'obj',
392 'yasm_path': '../third_party/yasm/binaries/win/yasm<(EXECUTABLE_SUFF IX)',
393 'yasm_format': '-fwin32',
394 'yasm_flags': [
395 '-DWIN32',
396 '-DMSVC',
397 ],
398 },
399 }],
400 [ 'OS=="mac"', {
401 'dependencies': [
402 '../third_party/yasm/yasm.gyp:yasm#host',
403 ],
404 'variables': {
405 'object_suffix': 'o',
406 'yasm_path': '<(PRODUCT_DIR)/yasm',
407 'yasm_format': '-fmacho',
408 'yasm_flags': [
409 '-DMACHO',
410 ],
411 },
412 }],
413 [ 'OS=="linux"', {
414 'conditions': [
415 [ 'use_system_yasm==0', {
416 'dependencies': [
417 '../third_party/yasm/yasm.gyp:yasm#host',
418 ],
419 }],
420 ],
421 'variables': {
422 'object_suffix': 'o',
423 'conditions': [
424 [ 'use_system_yasm==1', {
425 'yasm_path': '<!(which yasm)',
426 }, {
427 'yasm_path': '<(PRODUCT_DIR)/yasm',
428 }],
429 [ 'target_arch=="ia32"', {
430 'yasm_format': '-felf',
431 'yasm_flags': [
432 '-DX86_32',
433 '-DELF',
434 ],
435 }, {
436 'yasm_format': '-felf64',
437 'yasm_flags': [
438 '-DARCH_X86_64',
439 '-DELF',
440 '-DPIC',
441 ],
442 }],
443 ],
444 },
445 }],
383 ], 446 ],
384 'sources': [ 447 'sources': [
385 'base/yuv_convert_sse2.cc', 448 'base/yuv_convert_sse2.cc',
449 'base/simd/convert_rgb_to_yuv.cc',
450 ],
451 'rules': [
452 {
453 'rule_name': 'assemble',
454 'extension': 'asm',
455 'inputs': [ '<(yasm_path)', ],
456 'outputs': [
457 '<(SHARED_INTERMEDIATE_DIR)/media/<(RULE_INPUT_ROOT).<(object_suffix )',
458 ],
459 'action': [
460 '<(yasm_path)',
461 '<(yasm_format)',
462 '<@(yasm_flags)',
463 '-DCHROMIUM',
464 '-Isimd/',
465 '-o', '<(SHARED_INTERMEDIATE_DIR)/media/<(RULE_INPUT_ROOT).<(object_ suffix)',
466 '<(RULE_INPUT_PATH)',
467 ],
468 'process_outputs_as_sources': 1,
469 'message': 'Building <(RULE_INPUT_ROOT).<(object_suffix)',
470 },
386 ], 471 ],
387 }, 472 },
388 { 473 {
389 'target_name': 'ffmpeg_unittests', 474 'target_name': 'ffmpeg_unittests',
390 'type': 'executable', 475 'type': 'executable',
391 'dependencies': [ 476 'dependencies': [
392 'media', 477 'media',
393 'media_test_support', 478 'media_test_support',
394 '../base/base.gyp:base', 479 '../base/base.gyp:base',
395 '../base/base.gyp:base_i18n', 480 '../base/base.gyp:base_i18n',
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 'base/filter_collection_unittest.cc', 538 'base/filter_collection_unittest.cc',
454 'base/h264_bitstream_converter_unittest.cc', 539 'base/h264_bitstream_converter_unittest.cc',
455 'base/mock_reader.h', 540 'base/mock_reader.h',
456 'base/mock_task.cc', 541 'base/mock_task.cc',
457 'base/mock_task.h', 542 'base/mock_task.h',
458 'base/pipeline_impl_unittest.cc', 543 'base/pipeline_impl_unittest.cc',
459 'base/pts_heap_unittest.cc', 544 'base/pts_heap_unittest.cc',
460 'base/pts_stream_unittest.cc', 545 'base/pts_stream_unittest.cc',
461 'base/run_all_unittests.cc', 546 'base/run_all_unittests.cc',
462 'base/seekable_buffer_unittest.cc', 547 'base/seekable_buffer_unittest.cc',
548 'base/simd/convert_rgb_to_yuv_unittest.cc',
463 'base/state_matrix_unittest.cc', 549 'base/state_matrix_unittest.cc',
464 'base/test_data_util.cc', 550 'base/test_data_util.cc',
465 'base/test_data_util.h', 551 'base/test_data_util.h',
466 'base/video_frame_unittest.cc', 552 'base/video_frame_unittest.cc',
467 'base/video_util_unittest.cc', 553 'base/video_util_unittest.cc',
468 'base/yuv_convert_unittest.cc', 554 'base/yuv_convert_unittest.cc',
469 'ffmpeg/ffmpeg_common_unittest.cc', 555 'ffmpeg/ffmpeg_common_unittest.cc',
470 'filters/adaptive_demuxer_unittest.cc', 556 'filters/adaptive_demuxer_unittest.cc',
471 'filters/audio_renderer_algorithm_ola_unittest.cc', 557 'filters/audio_renderer_algorithm_ola_unittest.cc',
472 'filters/audio_renderer_base_unittest.cc', 558 'filters/audio_renderer_base_unittest.cc',
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 'tools/player_x11/gl_video_renderer.h', 832 'tools/player_x11/gl_video_renderer.h',
747 'tools/player_x11/player_x11.cc', 833 'tools/player_x11/player_x11.cc',
748 'tools/player_x11/x11_video_renderer.cc', 834 'tools/player_x11/x11_video_renderer.cc',
749 'tools/player_x11/x11_video_renderer.h', 835 'tools/player_x11/x11_video_renderer.h',
750 ], 836 ],
751 }, 837 },
752 ], 838 ],
753 }], 839 }],
754 ], 840 ],
755 } 841 }
OLDNEW
« media/base/simd/convert_rgb_to_yuv_ssse3.asm ('K') | « media/base/yuv_convert.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698