comparison dec_video.c @ 4995:d26babb53d8d

DivX5linux support working (only tested with divx3 and divx4 upto now, will try getting divx5 damples now)
author atmos4
date Sat, 09 Mar 2002 00:12:49 +0000
parents b0e1dc1bba4b
children 5f82ade9c677
comparison
equal deleted inserted replaced
4994:e74227031a12 4995:d26babb53d8d
582 #ifdef NEW_DECORE 582 #ifdef NEW_DECORE
583 dec_param.output_format=DEC_USER; 583 dec_param.output_format=DEC_USER;
584 #else 584 #else
585 dec_param.color_depth = 32; 585 dec_param.color_depth = 32;
586 #endif 586 #endif
587 #ifdef DECORE_DIVX5
588 /* codec_version should be 311, 400 or 500 according
589 * to DivX version used in video, let's hope 500 is
590 * compatible with all DivX4 content, otherwise we
591 * should find some logic to also choose between
592 * 400 and 500 - Atmos
593 */
594 dec_param.codec_version = (sh_video->format==mmioFOURCC('D','I','V','3'))?311:500;
595 dec_param.build_number = 0;
596 #endif
587 dec_param.x_dim = sh_video->bih->biWidth; 597 dec_param.x_dim = sh_video->bih->biWidth;
588 dec_param.y_dim = sh_video->bih->biHeight; 598 dec_param.y_dim = sh_video->bih->biHeight;
589 decore(0x123, DEC_OPT_INIT, &dec_param, NULL); 599 decore(0x123, DEC_OPT_INIT, &dec_param, NULL);
590 dec_set.postproc_level = divx_quality; 600 dec_set.postproc_level = divx_quality;
591 decore(0x123, DEC_OPT_SETPP, &dec_set, NULL); 601 decore(0x123, DEC_OPT_SETPP, &dec_set, NULL);
615 case IMGFMT_BGR32: dec_param.output_format=DEC_RGB32_INV;bits=32;break; 625 case IMGFMT_BGR32: dec_param.output_format=DEC_RGB32_INV;bits=32;break;
616 default: 626 default:
617 mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Unsupported out_fmt: 0x%X\n",out_fmt); 627 mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Unsupported out_fmt: 0x%X\n",out_fmt);
618 return 0; 628 return 0;
619 } 629 }
630 #ifdef DECORE_DIVX5
631 dec_param.codec_version = (sh_video->format==mmioFOURCC('D','I','V','3'))?311:500;
632 dec_param.build_number = 0;
633 #endif
620 dec_param.x_dim = sh_video->bih->biWidth; 634 dec_param.x_dim = sh_video->bih->biWidth;
621 dec_param.y_dim = sh_video->bih->biHeight; 635 dec_param.y_dim = sh_video->bih->biHeight;
622 decore(0x123, DEC_OPT_INIT, &dec_param, NULL); 636 decore(0x123, DEC_OPT_INIT, &dec_param, NULL);
623 dec_set.postproc_level = divx_quality; 637 dec_set.postproc_level = divx_quality;
624 decore(0x123, DEC_OPT_SETPP, &dec_set, NULL); 638 decore(0x123, DEC_OPT_SETPP, &dec_set, NULL);