• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/media/video/cx18/

Lines Matching refs:stream_buf_size

513 	cx->stream_buf_size[CX18_ENC_STREAM_TYPE_TS] = enc_ts_bufsize;
514 cx->stream_buf_size[CX18_ENC_STREAM_TYPE_MPG] = enc_mpg_bufsize;
515 cx->stream_buf_size[CX18_ENC_STREAM_TYPE_IDX] = enc_idx_bufsize;
516 cx->stream_buf_size[CX18_ENC_STREAM_TYPE_YUV] = enc_yuv_bufsize;
517 cx->stream_buf_size[CX18_ENC_STREAM_TYPE_VBI] = vbi_active_samples * 36;
518 cx->stream_buf_size[CX18_ENC_STREAM_TYPE_PCM] = enc_pcm_bufsize;
519 cx->stream_buf_size[CX18_ENC_STREAM_TYPE_RAD] = 0; /* control no data */
521 /* Ensure stream_buffers & stream_buf_size are valid */
525 cx->stream_buf_size[i] <= 0) { /* User said buf size 0 */
528 cx->stream_buf_size[i] = 0;
532 * YUV is a special case where the stream_buf_size needs to be
536 * IDX is a special case where the stream_buf_size should be
542 cx->stream_buf_size[i] *= 1024;
543 cx->stream_buf_size[i] -=
544 (cx->stream_buf_size[i] % CX18_UNIT_ENC_YUV_BUFSIZE);
546 if (cx->stream_buf_size[i] < CX18_UNIT_ENC_YUV_BUFSIZE)
547 cx->stream_buf_size[i] =
550 cx->stream_buf_size[i] *= 1024;
551 cx->stream_buf_size[i] -=
552 (cx->stream_buf_size[i] % CX18_UNIT_ENC_IDX_BUFSIZE);
554 if (cx->stream_buf_size[i] < CX18_UNIT_ENC_IDX_BUFSIZE)
555 cx->stream_buf_size[i] =
559 * YUV and IDX are special cases where the stream_buf_size is
561 * VBI is a special case where the stream_buf_size is fixed
570 / cx->stream_buf_size[i];
575 * cx->stream_buf_size[i]/(1024 * 1024);
578 /* All other streams have stream_buf_size in kB here */
582 / cx->stream_buf_size[i];
587 * cx->stream_buf_size[i] / 1024;
590 cx->stream_buf_size[i] *= 1024;
594 cx->stream_buffers[i], cx->stream_buf_size[i]);