Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 46156 Details for
Bug 74666
kdemultimedia-3.3.2 fails to compile on ppc64
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
cdromAccess_Linux.cpp
cdromAccess_Linux.cpp (text/plain), 2.60 KB, created by
Markus Rothe (RETIRED)
on 2004-12-16 12:14:52 UTC
(
hide
)
Description:
cdromAccess_Linux.cpp
Filename:
MIME Type:
Creator:
Markus Rothe (RETIRED)
Created:
2004-12-16 12:14:52 UTC
Size:
2.60 KB
patch
obsolete
>/* > system dependent wrapper for access to cdrom (Linux) > Copyright (C) 1999 Martin Vogt > > This program is free software; you can redistribute it and/or modify > it under the terms of the GNU Library General Public License as published by > the Free Software Foundation. > > For more information look at the file COPYRIGHT in this package > > */ > > >#include "cdromToc.h" >#include "cdromRawAccess.h" >#include <asm/types.h> >#include <linux/cdrom.h> >#include <sys/ioctl.h> > >#include <iostream> > >using namespace std; > >/** > here you find an example how to port the access method > to your system. >*/ > > >int CDRomToc::getStartEnd(FILE* file,int& startToc,int& endToc) { > struct cdrom_tochdr tochdr; > int fd=fileno(file); > if (ioctl(fd, CDROMREADTOCHDR, &tochdr) == -1) { > perror("ioctl cdromreadtochdr"); > return false; > } > > startToc=tochdr.cdth_trk0; > endToc=tochdr.cdth_trk1; > return true; >} > > >int CDRomToc::readToc(FILE* file,int num,int& min,int& sec, int& frame) { > struct cdrom_tocentry tocent; > int fd=fileno(file); > tocent.cdte_track = num; > tocent.cdte_format = CDROM_MSF; > if (ioctl(fd, CDROMREADTOCENTRY, &tocent) == -1 ) { > perror("ioctl cdromreadtocentry"); > return false; > } > min=tocent.cdte_addr.msf.minute; > sec=tocent.cdte_addr.msf.second; > frame=tocent.cdte_addr.msf.frame; > return true; >} > > >int CDRomToc::readLeadOut(FILE* file,int& min,int& sec, int& frame) { > struct cdrom_tocentry tocent; > int fd=fileno(file); > tocent.cdte_track = CDROM_LEADOUT; > tocent.cdte_format = CDROM_MSF; > if (ioctl(fd, CDROMREADTOCENTRY, &tocent) == -1 ) { > perror("ioctl cdromreadLeadoutn"); > return false; > } > min=tocent.cdte_addr.msf.minute; > sec=tocent.cdte_addr.msf.second; > frame=tocent.cdte_addr.msf.frame; > return true; >} > > > >int CDRomRawAccess::readDirect(int minute,int second, int frame) { > > // this comes from smpeg > // smpeg is an mpeg I player from lokigames www.lokigames.com > > struct cdrom_msf *msf; > int fd=fileno(cdfile); > > msf = (struct cdrom_msf*) data; > msf->cdmsf_min0 = minute; > msf->cdmsf_sec0 = second; > msf->cdmsf_frame0 = frame; > if (ioctl(fd, CDROMREADMODE2, msf) == -1) { > perror("ioctl cdromreadmode2"); > cout << "min:"<<minute > << " sec:"<<second > << " frame:"<<frame<<endl; > return false; > } else { > //cout << "read success ****************"<<endl; > } > > char* subheader=data+sizeof(int); > > > if ((subheader[1]==1) && > (((subheader[2]==0x62) && > (subheader[3]==0x0f)) || ((subheader[2]==0x64) && > (subheader[3]==0x7f)))) { > lData=true; > dataStart=sizeof(int)+4; > } else { > lData=false; > } > > len=2324; > > > return true; >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 74666
:
46151
|
46152
|
46153
|
46154
|
46155
| 46156 |
46162
|
46163
|
46164
|
46165