Mercurial > mplayer.hg
view fibmap_mplayer.c @ 8462:800d77666843
Support the latest development code from XViD dev-api-3 CVS
branch. Still compatible (at compile time) with the stable XViD code.
Adds :
- GMC, global motion compensation (gmc)
- quarter pixel motion estimation (qpel)
- B frames (max_bframes, bquant_ratio, bquant_offset)
- half-resolution U&V encoding (reduced)
- ?? (me_colour)
Based on a patch by Marco "elcabesa" Belli <elcabesa at inwind dot it>.
Also :
* renamed option "br" to "bitrate".
* renamed option "quality" to "me_quality" and defaults to 4 (fast and
still not that bad).
* added option "4mv", was previously silently included in quality 4, 5
and 6.
author | rguyom |
---|---|
date | Sun, 15 Dec 2002 18:35:11 +0000 |
parents | 04b2227ab75a |
children | b48d7fca8c73 |
line wrap: on
line source
/* (C)2001,2002 by LGB (Gábor Lénárt), lgb@lgb.hu Part of MPlayer project, this source is copyrighted according to GNU/GPL. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <sys/types.h> #include <sys/ioctl.h> #include <sys/stat.h> #ifndef FIBMAP #define FIBMAP 1 #endif int main ( int argc , char ** argv ) { int fd,lba=0; if (argc!=2) { fprintf(stderr,"Bad usage.\n"); return 1; } if ((fd = open(argv[1], O_RDONLY)) == -1) { fprintf(stderr,"Cannot open file %s: %s\n", argv[1] ? argv[1] : "(NULL)", strerror(errno)); return 1; } if (ioctl(fd, FIBMAP, &lba) != 0) { fprintf(stderr,"fibmap ioctl: %s (Hint: %s is not suid root?)\n",strerror(errno),argv[0]); close(fd); return 1; } close(fd); printf("%d\n",lba); return 0; }