comparison libpostproc/postprocess.c @ 792:2d1283d511b7 libavcodec

cosmetics ;) prefixing all functions with pp_ to avoid namespace issues
author michael
date Tue, 29 Oct 2002 18:51:52 +0000
parents 4f61ca80b6c1
children 8e9faf69110f
comparison
equal deleted inserted replaced
791:4f61ca80b6c1 792:2d1283d511b7
585 /** 585 /**
586 * returns a PPMode struct which will have a non 0 error variable if an error occured 586 * returns a PPMode struct which will have a non 0 error variable if an error occured
587 * name is the string after "-pp" on the command line 587 * name is the string after "-pp" on the command line
588 * quality is a number from 0 to GET_PP_QUALITY_MAX 588 * quality is a number from 0 to GET_PP_QUALITY_MAX
589 */ 589 */
590 struct PPMode getPPModeByNameAndQuality(char *name, int quality) 590 struct PPMode pp_get_mode_by_name_and_quality(char *name, int quality)
591 { 591 {
592 char temp[GET_MODE_BUFFER_SIZE]; 592 char temp[GET_MODE_BUFFER_SIZE];
593 char *p= temp; 593 char *p= temp;
594 char *filterDelimiters= ",/"; 594 char *filterDelimiters= ",/";
595 char *optionDelimiters= ":"; 595 char *optionDelimiters= ":";
763 763
764 if(verbose>1) printf("pp: lumMode=%X, chromMode=%X\n", ppMode.lumMode, ppMode.chromMode); 764 if(verbose>1) printf("pp: lumMode=%X, chromMode=%X\n", ppMode.lumMode, ppMode.chromMode);
765 return ppMode; 765 return ppMode;
766 } 766 }
767 767
768 void *getPPContext(int width, int height){ 768 void *pp_get_context(int width, int height){
769 PPContext *c= memalign(32, sizeof(PPContext)); 769 PPContext *c= memalign(32, sizeof(PPContext));
770 int i; 770 int i;
771 int mbWidth = (width+15)>>4; 771 int mbWidth = (width+15)>>4;
772 int mbHeight= (height+15)>>4; 772 int mbHeight= (height+15)>>4;
773 773
797 c->frameNum=-1; 797 c->frameNum=-1;
798 798
799 return c; 799 return c;
800 } 800 }
801 801
802 void freePPContext(void *vc){ 802 void pp_free_context(void *vc){
803 PPContext *c = (PPContext*)vc; 803 PPContext *c = (PPContext*)vc;
804 int i; 804 int i;
805 805
806 for(i=0; i<3; i++) free(c->tempBlured[i]); 806 for(i=0; i<3; i++) free(c->tempBlured[i]);
807 for(i=0; i<3; i++) free(c->tempBluredPast[i]); 807 for(i=0; i<3; i++) free(c->tempBluredPast[i]);
842 { 842 {
843 divx_quality=0; 843 divx_quality=0;
844 } 844 }
845 845
846 846
847 void postprocess(uint8_t * src[3], int srcStride[3], 847 void pp_postprocess(uint8_t * src[3], int srcStride[3],
848 uint8_t * dst[3], int dstStride[3], 848 uint8_t * dst[3], int dstStride[3],
849 int width, int height, 849 int width, int height,
850 QP_STORE_T *QP_store, int QPStride, 850 QP_STORE_T *QP_store, int QPStride,
851 PPMode *mode, void *vc, int pict_type) 851 PPMode *mode, void *vc, int pict_type)
852 { 852 {