mirror of
https://github.com/mpv-player/mpv.git
synced 2026-06-06 20:10:30 +00:00
-afm/-vfm help implemenetd, some cosmetics of ad/vd codec names/comments
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7192 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
@@ -127,6 +127,8 @@ static char help_text[]=
|
||||
#define MSGTR_AvailableAudioOutputDrivers "Available audio output drivers:\n"
|
||||
#define MSGTR_AvailableAudioCodecs "Available audio codecs:\n"
|
||||
#define MSGTR_AvailableVideoCodecs "Available video codecs:\n"
|
||||
#define MSGTR_AvailableAudioFm "\nAvailable (compiled-in) audio codec families/drivers:\n"
|
||||
#define MSGTR_AvailableVideoFm "\nAvailable (compiled-in) video codec families/drivers:\n"
|
||||
#define MSGTR_UsingRTCTiming "Using Linux's hardware RTC timing (%ldHz)\n"
|
||||
#define MSGTR_CannotReadVideoPropertiers "Video: can't read properties\n"
|
||||
#define MSGTR_NoStreamFound "No stream found\n"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
static ad_info_t info =
|
||||
{
|
||||
"Win32 ACM audio decoder",
|
||||
"Win32/ACM decoders",
|
||||
"acm",
|
||||
"Nick Kurshev",
|
||||
"avifile.sf.net",
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
DK3 ADPCM Decoder for MPlayer
|
||||
by Mike Melanson
|
||||
|
||||
"This format number was used by Duck Corp. but not officially
|
||||
registered with Microsoft"
|
||||
|
||||
This file is responsible for decoding audio data encoded with
|
||||
Duck Corp's DK3 ADPCM algorithm. Details about the data format
|
||||
can be found here:
|
||||
@@ -18,11 +21,11 @@
|
||||
|
||||
static ad_info_t info =
|
||||
{
|
||||
"Duck DK3 ADPCM decoder",
|
||||
"Duck Corp. DK3 ADPCM decoder",
|
||||
"dk3adpcm",
|
||||
"Nick Kurshev",
|
||||
"Mike Melanson",
|
||||
"This format number was used by Duck Corp. but not officially registered with Microsoft"
|
||||
""
|
||||
};
|
||||
|
||||
LIBAD_EXTERN(dk3adpcm)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
static ad_info_t info =
|
||||
{
|
||||
"Uncompressed DVD PCM audio decoder",
|
||||
"Uncompressed DVD/VOB LPCM audio decoder",
|
||||
"dvdpcm",
|
||||
"Nick Kurshev",
|
||||
"A'rpi",
|
||||
|
||||
@@ -19,7 +19,7 @@ static ad_info_t info =
|
||||
"faad",
|
||||
"Felix Buenemann",
|
||||
"faad2",
|
||||
"Under development!"
|
||||
"uses libfaad2"
|
||||
};
|
||||
|
||||
LIBAD_EXTERN(faad)
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
static ad_info_t info =
|
||||
{
|
||||
"FFmpeg audio decoders",
|
||||
"FFmpeg/libavcodec audio decoders",
|
||||
"ffmpeg",
|
||||
"Nick Kurshev",
|
||||
"ffmpeg.sf.net",
|
||||
|
||||
@@ -18,7 +18,7 @@ extern int a52_fillbuff(sh_audio_t *sh_audio);
|
||||
|
||||
static ad_info_t info =
|
||||
{
|
||||
"AC3 through SPDIF",
|
||||
"AC3 pass-through SP/DIF",
|
||||
"hwac3",
|
||||
"Nick Kurshev",
|
||||
"???",
|
||||
|
||||
@@ -21,7 +21,7 @@ static uint32_t a52_flags=0;
|
||||
|
||||
static ad_info_t info =
|
||||
{
|
||||
"AC3-liba52",
|
||||
"AC3 decoding with liba52",
|
||||
"liba52",
|
||||
"Nick Kurshev",
|
||||
"Michel LESPINASSE",
|
||||
|
||||
@@ -14,7 +14,7 @@ static ad_info_t info =
|
||||
"libvorbis",
|
||||
"Felix Buenemann, A'rpi",
|
||||
"libvorbis",
|
||||
"buggy"
|
||||
""
|
||||
};
|
||||
|
||||
LIBAD_EXTERN(libvorbis)
|
||||
|
||||
@@ -11,8 +11,8 @@ static ad_info_t info =
|
||||
"Id RoQ File Audio Decoder",
|
||||
"roqaudio",
|
||||
"Nick Kurshev",
|
||||
"Mike Melanson"
|
||||
"RoQA is an internal MPlayer FOURCC"
|
||||
"Mike Melanson",
|
||||
"" //"RoQA is an internal MPlayer FOURCC"
|
||||
};
|
||||
|
||||
LIBAD_EXTERN(roqaudio)
|
||||
|
||||
@@ -26,6 +26,22 @@ int audio_output_channels = 2;
|
||||
|
||||
static ad_functions_t* mpadec;
|
||||
|
||||
void afm_help(){
|
||||
int i;
|
||||
mp_msg(MSGT_DECAUDIO,MSGL_INFO,MSGTR_AvailableAudioFm);
|
||||
mp_msg(MSGT_DECAUDIO,MSGL_INFO," afm: info: (comment)\n");
|
||||
for (i=0; mpcodecs_ad_drivers[i] != NULL; i++)
|
||||
if(mpcodecs_ad_drivers[i]->info->comment && mpcodecs_ad_drivers[i]->info->comment[0])
|
||||
mp_msg(MSGT_DECAUDIO,MSGL_INFO,"%9s %s (%s)\n",
|
||||
mpcodecs_ad_drivers[i]->info->short_name,
|
||||
mpcodecs_ad_drivers[i]->info->name,
|
||||
mpcodecs_ad_drivers[i]->info->comment);
|
||||
else
|
||||
mp_msg(MSGT_DECAUDIO,MSGL_INFO,"%9s %s\n",
|
||||
mpcodecs_ad_drivers[i]->info->short_name,
|
||||
mpcodecs_ad_drivers[i]->info->name);
|
||||
}
|
||||
|
||||
int init_audio(sh_audio_t *sh_audio)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
|
||||
// dec_audio.c:
|
||||
extern void afm_help();
|
||||
extern int init_audio(sh_audio_t *sh_audio);
|
||||
extern int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int maxlen);
|
||||
extern void resync_audio_stream(sh_audio_t *sh_audio);
|
||||
|
||||
@@ -140,6 +140,17 @@ void uninit_video(sh_video_t *sh_video){
|
||||
sh_video->inited=0;
|
||||
}
|
||||
|
||||
void vfm_help(){
|
||||
int i;
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_INFO,MSGTR_AvailableVideoFm);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_INFO," vfm: info: (comment)\n");
|
||||
for (i=0; mpcodecs_vd_drivers[i] != NULL; i++)
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_INFO,"%8s %s (%s)\n",
|
||||
mpcodecs_vd_drivers[i]->info->short_name,
|
||||
mpcodecs_vd_drivers[i]->info->name,
|
||||
mpcodecs_vd_drivers[i]->info->comment);
|
||||
}
|
||||
|
||||
int init_video(sh_video_t *sh_video,char* codecname,char* vfm,int status){
|
||||
unsigned int orig_fourcc=sh_video->bih?sh_video->bih->biCompression:0;
|
||||
sh_video->codec=NULL;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// dec_video.c:
|
||||
extern int video_read_properties(sh_video_t *sh_video);
|
||||
|
||||
extern void vfm_help();
|
||||
|
||||
//extern int init_video(sh_video_t *sh_video, int *pitches);
|
||||
extern int init_video(sh_video_t *sh_video,char* codecname,char* vfm,int status);
|
||||
extern void uninit_video(sh_video_t *sh_video);
|
||||
|
||||
@@ -21,7 +21,7 @@ static vd_info_t info = {
|
||||
"divx4",
|
||||
"A'rpi",
|
||||
"http://www.divx.com",
|
||||
"native codecs"
|
||||
"native binary codec"
|
||||
};
|
||||
|
||||
LIBVD_EXTERN(divx4)
|
||||
|
||||
@@ -29,8 +29,8 @@ static vd_info_t info = {
|
||||
"HuffYUV Video decoder",
|
||||
"huffyuv",
|
||||
"Roberto Togni",
|
||||
"Roberto Togni",
|
||||
"native codec, original win32 by Ben Rudiak-Gould http://www.math.berkeley.edu/~benrg/huffyuv.html"
|
||||
"Roberto Togni, original win32 by Ben Rudiak-Gould http://www.math.berkeley.edu/~benrg/huffyuv.html",
|
||||
"native codec"
|
||||
};
|
||||
|
||||
LIBVD_EXTERN(huffyuv)
|
||||
|
||||
@@ -26,7 +26,7 @@ static vd_info_t info =
|
||||
"libdv",
|
||||
"Alexander Neundorf <neundorf@kde.org>",
|
||||
"http://libdv.sf.net",
|
||||
""
|
||||
"native codec"
|
||||
};
|
||||
|
||||
LIBVD_EXTERN(libdv)
|
||||
|
||||
@@ -10,10 +10,9 @@ static vd_info_t info =
|
||||
{
|
||||
"Null video decoder",
|
||||
"null",
|
||||
0,
|
||||
"A'rpi",
|
||||
"A'rpi",
|
||||
""
|
||||
"no decoding"
|
||||
};
|
||||
|
||||
LIBVD_EXTERN(null)
|
||||
|
||||
@@ -27,7 +27,11 @@ static vd_info_t info = {
|
||||
#else
|
||||
"http://www.projectmayo.org",
|
||||
#endif
|
||||
"native codecs"
|
||||
#ifdef NEW_DECORE
|
||||
"native binary codec"
|
||||
#else
|
||||
"native codec"
|
||||
#endif
|
||||
};
|
||||
|
||||
LIBVD_EXTERN(odivx)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "vd_internal.h"
|
||||
|
||||
static vd_info_t info = {
|
||||
"zlib decoder (avizlib)",
|
||||
"AVIzlib decoder",
|
||||
"zlib",
|
||||
"Alex",
|
||||
"based on vd_ijpg.c",
|
||||
|
||||
@@ -639,6 +639,16 @@ if(!parse_codec_cfg(get_path("codecs.conf"))){
|
||||
printf("\n");
|
||||
exit(0);
|
||||
}
|
||||
if(video_fm && strcmp(video_fm,"help")==0){
|
||||
vfm_help();
|
||||
printf("\n");
|
||||
exit(0);
|
||||
}
|
||||
if(audio_fm && strcmp(audio_fm,"help")==0){
|
||||
afm_help();
|
||||
printf("\n");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
if(!filename && !vcd_track && !dvd_title && !dvd_nav && !tv_param_on){
|
||||
|
||||
Reference in New Issue
Block a user