Mercurial > mplayer.hg
comparison dec_video.c @ 4944:f896676db962
DivX5 Build support, not usefull because current divx5linux from avifile.sf.net only decodes black/green image
author | atmos4 |
---|---|
date | Wed, 06 Mar 2002 02:22:46 +0000 |
parents | 5f3f768a7596 |
children | b0e1dc1bba4b |
comparison
equal
deleted
inserted
replaced
4943:511e8d8117e9 | 4944:f896676db962 |
---|---|
895 dec_frame.render_flag = drop_frame?0:1; | 895 dec_frame.render_flag = drop_frame?0:1; |
896 | 896 |
897 #ifdef NEW_DECORE | 897 #ifdef NEW_DECORE |
898 dec_frame.bmp=&dec_pic; | 898 dec_frame.bmp=&dec_pic; |
899 dec_pic.y=dec_pic.u=dec_pic.v=NULL; | 899 dec_pic.y=dec_pic.u=dec_pic.v=NULL; |
900 #ifdef DECORE_DIVX5 | |
901 decore(0x123, DEC_OPT_FRAME, &dec_frame, NULL); | |
902 #else | |
900 decore(0x123, (sh_video->format==mmioFOURCC('D','I','V','3'))?DEC_OPT_FRAME_311:DEC_OPT_FRAME, &dec_frame, NULL); | 903 decore(0x123, (sh_video->format==mmioFOURCC('D','I','V','3'))?DEC_OPT_FRAME_311:DEC_OPT_FRAME, &dec_frame, NULL); |
904 #endif | |
901 #else | 905 #else |
902 opendivx_src[0]=NULL; | 906 opendivx_src[0]=NULL; |
903 decore(0x123, 0, &dec_frame, NULL); | 907 decore(0x123, 0, &dec_frame, NULL); |
904 #endif | 908 #endif |
905 | 909 |
941 dec_frame.bitstream = start; | 945 dec_frame.bitstream = start; |
942 dec_frame.render_flag = drop_frame?0:1; | 946 dec_frame.render_flag = drop_frame?0:1; |
943 dec_frame.bmp=sh_video->our_out_buffer; | 947 dec_frame.bmp=sh_video->our_out_buffer; |
944 dec_frame.stride=sh_video->disp_w; | 948 dec_frame.stride=sh_video->disp_w; |
945 // printf("Decoding DivX4 frame\n"); | 949 // printf("Decoding DivX4 frame\n"); |
950 #ifdef DECORE_DIVX5 | |
951 decore(0x123, DEC_OPT_FRAME, &dec_frame, NULL); | |
952 #else | |
946 decore(0x123, (sh_video->format==mmioFOURCC('D','I','V','3'))?DEC_OPT_FRAME_311:DEC_OPT_FRAME, &dec_frame, NULL); | 953 decore(0x123, (sh_video->format==mmioFOURCC('D','I','V','3'))?DEC_OPT_FRAME_311:DEC_OPT_FRAME, &dec_frame, NULL); |
954 #endif | |
947 if(!drop_frame) blit_frame=3; | 955 if(!drop_frame) blit_frame=3; |
948 break; | 956 break; |
949 } | 957 } |
950 #endif | 958 #endif |
951 #ifdef USE_DIRECTSHOW | 959 #ifdef USE_DIRECTSHOW |