Mercurial > libavcodec.hg
comparison libpostproc/postprocess.c @ 152:561ec01a1a78 libavcodec
QP_store==null bugfix and no opendivx bugfix
| author | michael |
|---|---|
| date | Sun, 11 Nov 2001 01:18:40 +0000 |
| parents | 668dda5ef46d |
| children | c09459686be3 |
comparison
equal
deleted
inserted
replaced
| 151:ae0516eadae2 | 152:561ec01a1a78 |
|---|---|
| 2748 } | 2748 } |
| 2749 if(!filterNameOk) ppMode.error++; | 2749 if(!filterNameOk) ppMode.error++; |
| 2750 ppMode.error += numOfUnknownOptions; | 2750 ppMode.error += numOfUnknownOptions; |
| 2751 } | 2751 } |
| 2752 | 2752 |
| 2753 #ifdef HAVE_ODIVX_POSTPROCESS | |
| 2753 if(ppMode.lumMode & H_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_Y_H; | 2754 if(ppMode.lumMode & H_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_Y_H; |
| 2754 if(ppMode.lumMode & V_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_Y_V; | 2755 if(ppMode.lumMode & V_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_Y_V; |
| 2755 if(ppMode.chromMode & H_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_C_H; | 2756 if(ppMode.chromMode & H_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_C_H; |
| 2756 if(ppMode.chromMode & V_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_C_V; | 2757 if(ppMode.chromMode & V_DEBLOCK) ppMode.oldMode |= PP_DEBLOCK_C_V; |
| 2757 if(ppMode.lumMode & DERING) ppMode.oldMode |= PP_DERING_Y; | 2758 if(ppMode.lumMode & DERING) ppMode.oldMode |= PP_DERING_Y; |
| 2758 if(ppMode.chromMode & DERING) ppMode.oldMode |= PP_DERING_C; | 2759 if(ppMode.chromMode & DERING) ppMode.oldMode |= PP_DERING_C; |
| 2760 #endif | |
| 2759 | 2761 |
| 2760 return ppMode; | 2762 return ppMode; |
| 2761 } | 2763 } |
| 2762 | 2764 |
| 2763 /** | 2765 /** |
| 2779 postprocess2(src, src_stride, dst, dst_stride, | 2781 postprocess2(src, src_stride, dst, dst_stride, |
| 2780 horizontal_size, vertical_size, QP_store, QP_stride, &ppMode); | 2782 horizontal_size, vertical_size, QP_store, QP_stride, &ppMode); |
| 2781 | 2783 |
| 2782 return; | 2784 return; |
| 2783 */ | 2785 */ |
| 2786 static QP_STORE_T zeroArray[2048/8]; | |
| 2787 if(QP_store==NULL) | |
| 2788 { | |
| 2789 QP_store= zeroArray; | |
| 2790 QP_stride= 0; | |
| 2791 } | |
| 2784 | 2792 |
| 2785 #ifdef HAVE_ODIVX_POSTPROCESS | 2793 #ifdef HAVE_ODIVX_POSTPROCESS |
| 2786 // Note: I could make this shit outside of this file, but it would mean one | 2794 // Note: I could make this shit outside of this file, but it would mean one |
| 2787 // more function call... | 2795 // more function call... |
| 2788 if(use_old_pp){ | 2796 if(use_old_pp){ |
| 2820 unsigned char * dst[], int dst_stride, | 2828 unsigned char * dst[], int dst_stride, |
| 2821 int horizontal_size, int vertical_size, | 2829 int horizontal_size, int vertical_size, |
| 2822 QP_STORE_T *QP_store, int QP_stride, | 2830 QP_STORE_T *QP_store, int QP_stride, |
| 2823 struct PPMode *mode) | 2831 struct PPMode *mode) |
| 2824 { | 2832 { |
| 2833 | |
| 2834 static QP_STORE_T zeroArray[2048/8]; | |
| 2835 if(QP_store==NULL) | |
| 2836 { | |
| 2837 QP_store= zeroArray; | |
| 2838 QP_stride= 0; | |
| 2839 } | |
| 2825 | 2840 |
| 2826 #ifdef HAVE_ODIVX_POSTPROCESS | 2841 #ifdef HAVE_ODIVX_POSTPROCESS |
| 2827 // Note: I could make this shit outside of this file, but it would mean one | 2842 // Note: I could make this shit outside of this file, but it would mean one |
| 2828 // more function call... | 2843 // more function call... |
| 2829 if(use_old_pp){ | 2844 if(use_old_pp){ |
