 blackbird_set_default_params(dev); blackbird_set_default_dnr_params(dev); 
static void blackbird_codec_settings(struct cx8802_dev *dev){	int bitrate_mode = 1;	int bitrate = 7500000;	int bitrate_peak = 7500000;	bitrate_mode = BLACKBIRD_VIDEO_CBR;	bitrate = 4000*1024;	bitrate_peak = 4000*1024;	/* assign stream type */	blackbird_api_cmd(dev, BLACKBIRD_API_SET_STREAM_TYPE, 1, 0, BLACKBIRD_STREAM_PROGRAM);	/* assign output port */	blackbird_api_cmd(dev, BLACKBIRD_API_SET_OUTPUT_PORT, 1, 0, BLACKBIRD_OUTPUT_PORT_STREAMING); /* Host */	/* assign framerate */	blackbird_api_cmd(dev, BLACKBIRD_API_SET_FRAMERATE, 1, 0, BLACKBIRD_FRAMERATE_PAL_25);	/* assign frame size */	blackbird_api_cmd(dev, BLACKBIRD_API_SET_RESOLUTION, 2, 0,			  dev->height, dev->width);	/* assign aspect ratio */	blackbird_api_cmd(dev, BLACKBIRD_API_SET_ASPECT_RATIO, 1, 0, BLACKBIRD_ASPECT_RATIO_4_3);	/* assign bitrates */	blackbird_api_cmd(dev, BLACKBIRD_API_SET_VIDEO_BITRATE, 5, 0,			 bitrate_mode,         /* mode */			 bitrate,              /* bps */			 bitrate_peak / BLACKBIRD_PEAK_RATE_DIVISOR,   /* peak/400 */			 BLACKBIRD_MUX_RATE_DEFAULT /*, 0x70*/);             /* encoding buffer, ckennedy */	/* assign gop properties */	blackbird_api_cmd(dev, BLACKBIRD_API_SET_GOP_STRUCTURE, 2, 0, 15, 3);	/* assign 3 2 pulldown */	blackbird_api_cmd(dev, BLACKBIRD_API_SET_3_2_PULLDOWN, 1, 0, BLACKBIRD_3_2_PULLDOWN_DISABLED);	/* assign audio properties */	/* note: it's not necessary to set the samplerate, the mpeg encoder seems to autodetect/adjust */	/* blackbird_api_cmd(dev, IVTV_API_ASSIGN_AUDIO_PROPERTIES, 1, 0, (2<<2) | (8<<4));	   blackbird_api_cmd(dev, IVTV_API_ASSIGN_AUDIO_PROPERTIES, 1, 0, 0 | (2 << 2) | (14 << 4)); */	blackbird_api_cmd(dev, BLACKBIRD_API_SET_AUDIO_PARAMS, 1, 0,			BLACKBIRD_AUDIO_BITS_44100HZ |			BLACKBIRD_AUDIO_BITS_LAYER_2 |			BLACKBIRD_AUDIO_BITS_LAYER_2_224 |			BLACKBIRD_AUDIO_BITS_STEREO |			/* BLACKBIRD_AUDIO_BITS_BOUND_4 | */			BLACKBIRD_AUDIO_BITS_EMPHASIS_NONE |			BLACKBIRD_AUDIO_BITS_CRC_OFF |			BLACKBIRD_AUDIO_BITS_COPYRIGHT_OFF |			BLACKBIRD_AUDIO_BITS_COPY		);	/* assign gop closure */	blackbird_api_cmd(dev, BLACKBIRD_API_SET_GOP_CLOSURE, 1, 0, BLACKBIRD_GOP_CLOSURE_OFF);	/* assign dnr filter mode */	blackbird_api_cmd(dev, BLACKBIRD_API_SET_DNR_MODE, 2, 0,			BLACKBIRD_DNR_BITS_MANUAL,			BLACKBIRD_MEDIAN_FILTER_DISABLED		);	/* assign dnr filter props*/	blackbird_api_cmd(dev, BLACKBIRD_API_SET_MANUAL_DNR, 2, 0, 0, 0);	/* assign coring levels (luma_h, luma_l, chroma_h, chroma_l) */	blackbird_api_cmd(dev, BLACKBIRD_API_SET_DNR_MEDIAN, 4, 0, 0, 255, 0, 255);	/* assign spatial filter type: luma_t: horiz_only, chroma_t: horiz_only */	blackbird_api_cmd(dev, BLACKBIRD_API_SET_SPATIAL_FILTER, 2, 0,			BLACKBIRD_SPATIAL_FILTER_LUMA_1D_HORIZ,			BLACKBIRD_SPATIAL_FILTER_CHROMA_1D_HORIZ		);	/* assign frame drop rate */	/* blackbird_api_cmd(dev, IVTV_API_ASSIGN_FRAME_DROP_RATE, 1, 0, 0); */}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/31629424132c87f7c8bd79d7ed4d014354a06427/cx88-blackbird.c/clean/drivers/media/video/cx88/cx88-blackbird.c