mirror of
https://github.com/mpv-player/mpv
synced 2024-09-05 02:48:21 +02:00
move some verbose msg to dbg2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9277 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8222cbcc9b
commit
409f2f0ada
@ -40,7 +40,7 @@ static unsigned int find_best(struct vf_instance_s* vf, unsigned int fmt){
|
|||||||
else return 0;
|
else return 0;
|
||||||
while(*p){
|
while(*p){
|
||||||
ret=vf->next->query_format(vf->next,*p);
|
ret=vf->next->query_format(vf->next,*p);
|
||||||
mp_msg(MSGT_VFILTER,MSGL_V,"[%s] query(%s) -> %d\n",vf->info->name,vo_format_name(*p),ret&3);
|
mp_msg(MSGT_VFILTER,MSGL_DBG2,"[%s] query(%s) -> %d\n",vf->info->name,vo_format_name(*p),ret&3);
|
||||||
if(ret&VFCAP_CSP_SUPPORTED_BY_HW){ best=*p; break;} // no conversion -> bingo!
|
if(ret&VFCAP_CSP_SUPPORTED_BY_HW){ best=*p; break;} // no conversion -> bingo!
|
||||||
if(ret&VFCAP_CSP_SUPPORTED && !best) best=*p; // best with conversion
|
if(ret&VFCAP_CSP_SUPPORTED && !best) best=*p; // best with conversion
|
||||||
++p;
|
++p;
|
||||||
@ -52,6 +52,7 @@ static unsigned int find_best(struct vf_instance_s* vf, unsigned int fmt){
|
|||||||
|
|
||||||
struct vf_priv_s {
|
struct vf_priv_s {
|
||||||
unsigned int fmt;
|
unsigned int fmt;
|
||||||
|
int pal_msg;
|
||||||
};
|
};
|
||||||
|
|
||||||
static int config(struct vf_instance_s* vf,
|
static int config(struct vf_instance_s* vf,
|
||||||
@ -78,7 +79,10 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){
|
|||||||
|
|
||||||
if (!mpi->planes[1])
|
if (!mpi->planes[1])
|
||||||
{
|
{
|
||||||
mp_msg(MSGT_VFILTER,MSGL_V,"[%s] no palette given, assuming builtin grayscale one\n",vf->info->name);
|
if(!vf->priv->pal_msg){
|
||||||
|
mp_msg(MSGT_VFILTER,MSGL_V,"[%s] no palette given, assuming builtin grayscale one\n",vf->info->name);
|
||||||
|
vf->priv->pal_msg=1;
|
||||||
|
}
|
||||||
mpi->planes[1] = (unsigned char*)gray_pal;
|
mpi->planes[1] = (unsigned char*)gray_pal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ static unsigned int find_best_out(vf_instance_t *vf){
|
|||||||
// find the best outfmt:
|
// find the best outfmt:
|
||||||
while(*p){
|
while(*p){
|
||||||
int ret=vf_next_query_format(vf,*p);
|
int ret=vf_next_query_format(vf,*p);
|
||||||
mp_msg(MSGT_VFILTER,MSGL_V,"scale: query(%s) -> %d\n",vo_format_name(*p),ret&3);
|
mp_msg(MSGT_VFILTER,MSGL_DBG2,"scale: query(%s) -> %d\n",vo_format_name(*p),ret&3);
|
||||||
if(ret&VFCAP_CSP_SUPPORTED_BY_HW){ best=*p; break;} // no conversion -> bingo!
|
if(ret&VFCAP_CSP_SUPPORTED_BY_HW){ best=*p; break;} // no conversion -> bingo!
|
||||||
if(ret&VFCAP_CSP_SUPPORTED && !best) best=*p; // best with conversion
|
if(ret&VFCAP_CSP_SUPPORTED && !best) best=*p; // best with conversion
|
||||||
++p;
|
++p;
|
||||||
|
Loading…
Reference in New Issue
Block a user