Changeset 7c4f6bbad346b1fab9bb86f6a2da3919c1171507

Show
Ignore:
Timestamp:
11/23/05 03:27:58 (3 years ago)
Author:
Jean-Paul Saman <jpsaman@videolan.org>
git-committer:
Jean-Paul Saman <jpsaman@videolan.org> 1132712878 +0000
git-parent:

[73ac7f80bd6fa79c59c509f0efaadddcece42316]

git-author:
Jean-Paul Saman <jpsaman@videolan.org> 1132712878 +0000
Message:

Digital Video (Firewire/IEEE1394/I-Link) input for Camcorders

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • AUTHORS

    rb98d05e r7c4f6bb  
    333333D: HD1000 port  
    334334D: OSD menu 
     335D: Digital Video (Firewire/IEEE1394/I-Link) 
    335336S: Netherlands 
    336337 
  • configure.ac

    r3796e3b r7c4f6bb  
    14861486fi 
    14871487 
     1488dnl 
     1489dnl dv module: digital video module check for libraw1394 
     1490dnl 
     1491AC_ARG_ENABLE(dv, 
     1492[  --enable-dv             dv input module (default disabled)]) 
     1493if test "{enable_dv}" != "no" 
     1494then 
     1495  AC_ARG_WITH(dv-raw1394, 
     1496  [    --with-dv-raw1394=PATH   libraw1394 headers and libraries]) 
     1497  AC_ARG_WITH(dv-raw1394-tree, 
     1498  [    --with-dv-raw1394=PATH   libraw1394 tree for static linking]) 
     1499 
     1500  if test -z "${with_dv_raw1394}" -a "${with_dv_raw1394}" != "" 
     1501  then 
     1502    AC_MSG_CHECKING(for raw1394 headers in ${with_dv_raw1394}) 
     1503    if test -f ${with_dv_raw1394}/include/libraw1394/raw1394.h 
     1504    then 
     1505      dnl  Use ${with_dv_raw1394}/include/libraw1394/raw1394.h 
     1506      AC_MSG_RESULT(yes) 
     1507      VLC_ADD_PLUGINS([access_dv]) 
     1508      VLC_ADD_LDFLAGS([access_dv],[-L${with_dv_raw1394}/lib -lraw1394 -lpthread]) 
     1509      VLC_ADD_CPPFLAGS([access_dv],[-I${with_dv_raw1394}/include]) 
     1510    else 
     1511      dnl  No libraw1394 could be found, sorry 
     1512      AC_MSG_RESULT(no) 
     1513      AC_MSG_ERROR([cannot find ${with_dv_raw1394}/include/libraw1394/raw1394.h]) 
     1514    fi 
     1515  else 
     1516    AC_CHECK_HEADERS(libraw1394/raw1394.h, 
     1517    [ VLC_ADD_PLUGINS([access_dv]) 
     1518        VLC_ADD_LDFLAGS([access_dv],[-lraw1394 -lavc1394]) 
     1519    ],[ 
     1520        if test -n "${enable_dv}" 
     1521        then 
     1522          AC_MSG_ERROR([cannot find libraw1394 headers]) 
     1523        fi 
     1524    ]) 
     1525  fi 
     1526 
     1527  dnl Check for static linking of libraw1394 
     1528  if test -z "${with_dv_raw1394_tree}" -a "${with_dv_raw1394_tree}" != "" 
     1529  then 
     1530    AC_MSG_CHECKING(for libraw1394.a in ${with_dv_raw1394_tree}) 
     1531    real_dv_raw1394_tree="`cd ${with_dv_raw1394_tree} 2>/dev/null && pwd`" 
     1532    if test -z "${real_dv_raw1394_tree}" 
     1533    then 
     1534      dnl  The given directory can't be found 
     1535      AC_MSG_RESULT(no) 
     1536      AC_MSG_ERROR([cannot cd to ${real_dv_raw1394_tree}]) 
     1537    fi 
     1538    if test -f "${real_dv_raw1394_tree}/src/.libs/libraw1394.a" 
     1539    then 
     1540      dnl  Use a custom libraw1394 
     1541      AC_MSG_RESULT(${real_dv_raw1394_tree}/src/.libs/libraw1394.a) 
     1542      VLC_ADD_BUILTINS([access_dv]) 
     1543      VLC_ADD_LDFLAGS([access_dv],[-L${real_dv_raw1394_tree}/src/.libs -lraw1394]) 
     1544      VLC_ADD_CPPFLAGS([access_dv],[-I${real_dv_raw1394_tree}]) 
     1545    else 
     1546      dnl  The given libraw1394 wasn't built 
     1547      AC_MSG_RESULT(no) 
     1548      AC_MSG_ERROR([cannot find ${real_dv_raw1394_tree}/src/.libs/libraw1394.a, make sure you compiled libraw1394 in ${with_dv_raw1394_tree}]) 
     1549    fi 
     1550  fi 
     1551 
     1552  dnl 
     1553  dnl Check for libavc1394 
     1554  dnl 
     1555 
     1556  AC_ARG_WITH(dv-avc1394, 
     1557  [    --with-dv-avc1394=PATH   libavc1394 headers and libraries]) 
     1558  AC_ARG_WITH(dv-avc1394-tree, 
     1559  [    --with-dv-avc1394=PATH   libavc1394 tree for static linking]) 
     1560 
     1561  if test -z "${with_dv_avc1394}" -a "${with_dv_avc1394}" != "" 
     1562  then 
     1563    AC_MSG_CHECKING(for avc1394 headers in ${with_dv_avc1394}) 
     1564    if test -f ${with_dv_avc1394}/include/libavc1394/avc1394.h 
     1565    then 
     1566      dnl  Use ${with_dv_avc1394}/include/libavc1394/avc1394.h 
     1567      AC_MSG_RESULT(yes) 
     1568      VLC_ADD_LDFLAGS([access_dv],[-L${with_dv_avc1394}/lib -lavc1394 -lrom1394 -lpthread]) 
     1569      VLC_ADD_CPPFLAGS([access_dv],[-I${with_avc1394}/include]) 
     1570    else 
     1571      dnl  No libavc1394 could be found, sorry 
     1572      AC_MSG_RESULT(no) 
     1573      AC_MSG_ERROR([cannot find ${with_dv_avc1394}/include/libavc1394/avc1394.h]) 
     1574    fi 
     1575  else 
     1576    AC_CHECK_HEADERS(libavc1394/avc1394.h, 
     1577    [ VLC_ADD_LDFLAGS([access_dv],[-lavc1394 -lrom1394 -lpthread]) 
     1578    ],[ 
     1579        if test -n "${enable_dv}" 
     1580        then 
     1581          AC_MSG_ERROR([cannot find libavc1394 headers]) 
     1582        fi 
     1583    ]) 
     1584  fi 
     1585 
     1586  dnl Check for static linking of libavc1394 
     1587  if test -z "${with_dv_avc1394_tree}" -a "${with_dv_avc1394_tree}" != "" 
     1588  then 
     1589    AC_MSG_CHECKING(for libavc1394.a in ${with_dv_avc1394_tree}) 
     1590    real_dv_avc1394_tree="`cd ${with_dv_avc1394_tree} 2>/dev/null && pwd`" 
     1591    if test -z "${real_dv_avc1394_tree}" 
     1592    then 
     1593      dnl  The given directory can't be found 
     1594      AC_MSG_RESULT(no) 
     1595      AC_MSG_ERROR([cannot cd to ${real_dv_avc1394_tree}]) 
     1596    fi 
     1597    if test -f "${real_dv_avc1394_tree}/src/.libs/libavc1394.a" 
     1598    then 
     1599      dnl  Use a custom libavc1394 
     1600      AC_MSG_RESULT(${real_dv_avc1394_tree}/src/.libs/libavc1394.a) 
     1601      VLC_ADD_LDFLAGS([access_dv],[-L${real_dv_avc1394_tree}/src/.libs -lavc1394 -lrom1394 -lpthread]) 
     1602      VLC_ADD_CPPFLAGS([access_dv],[-I${real_dv_avc1394_tree}]) 
     1603    else 
     1604      dnl  The given libavc1394 wasn't built 
     1605      AC_MSG_RESULT(no) 
     1606      AC_MSG_ERROR([cannot find ${real_dv_avc1394_tree}/src/.libs/libavc1394.a, make sure you compiled libavc1394 in ${with_dv_avc1394_tree}]) 
     1607    fi 
     1608  fi 
     1609fi 
    14881610 
    14891611dnl 
  • modules/LIST

    r036c9c5 r7c4f6bb  
    1313 
    1414 * access_directory: Access module to read files in a directory 
     15 
     16 * access_dv: Raw1394 Digital Video (Firewire/IEEE1394/I-Link) access module 
    1517   
    1618 * access_fake: Fake access to use for mosaic and other special streaming setups 
  • modules/access/Modules.am

    ra52270a r7c4f6bb  
    11SOURCES_access_file = file.c 
    22SOURCES_access_directory = directory.c 
     3SOURCES_access_dv = dv.c 
    34SOURCES_access_udp = udp.c 
    45SOURCES_access_tcp = tcp.c