comparison postprocess.c @ 67:fb2657d1e70d libpostproc

Make the av_class member of PPContext a poiner to constant AVClass. Patch by Diego 'Flameeyes' Petten? flameeyes ? gmail ! com
author benoit
date Mon, 07 Jan 2008 12:44:49 +0000
parents 7737e39e74f3
children d05918aeb89d
comparison
equal deleted inserted replaced
66:7737e39e74f3 67:fb2657d1e70d
980 980
981 static const char * context_to_name(void * ptr) { 981 static const char * context_to_name(void * ptr) {
982 return "postproc"; 982 return "postproc";
983 } 983 }
984 984
985 static AVClass av_codec_context_class = { "Postproc", context_to_name, NULL }; 985 static const AVClass av_codec_context_class = { "Postproc", context_to_name, NULL };
986 986
987 pp_context_t *pp_get_context(int width, int height, int cpuCaps){ 987 pp_context_t *pp_get_context(int width, int height, int cpuCaps){
988 PPContext *c= av_malloc(sizeof(PPContext)); 988 PPContext *c= av_malloc(sizeof(PPContext));
989 int stride= (width+15)&(~15); //assumed / will realloc if needed 989 int stride= (width+15)&(~15); //assumed / will realloc if needed
990 int qpStride= (width+15)/16 + 2; //assumed / will realloc if needed 990 int qpStride= (width+15)/16 + 2; //assumed / will realloc if needed