Lines Matching refs:stream_buf_size
544 cx->stream_buf_size[CX18_ENC_STREAM_TYPE_TS] = enc_ts_bufsize;
545 cx->stream_buf_size[CX18_ENC_STREAM_TYPE_MPG] = enc_mpg_bufsize;
546 cx->stream_buf_size[CX18_ENC_STREAM_TYPE_IDX] = enc_idx_bufsize;
547 cx->stream_buf_size[CX18_ENC_STREAM_TYPE_YUV] = enc_yuv_bufsize;
548 cx->stream_buf_size[CX18_ENC_STREAM_TYPE_VBI] = VBI_ACTIVE_SAMPLES * 36;
549 cx->stream_buf_size[CX18_ENC_STREAM_TYPE_PCM] = enc_pcm_bufsize;
550 cx->stream_buf_size[CX18_ENC_STREAM_TYPE_RAD] = 0; /* control no data */
552 /* Ensure stream_buffers & stream_buf_size are valid */
556 cx->stream_buf_size[i] <= 0) { /* User said buf size 0 */
559 cx->stream_buf_size[i] = 0;
563 * YUV is a special case where the stream_buf_size needs to be
567 * IDX is a special case where the stream_buf_size should be
573 cx->stream_buf_size[i] *= 1024;
574 cx->stream_buf_size[i] -=
575 (cx->stream_buf_size[i] % CX18_UNIT_ENC_YUV_BUFSIZE);
577 if (cx->stream_buf_size[i] < CX18_UNIT_ENC_YUV_BUFSIZE)
578 cx->stream_buf_size[i] =
581 cx->stream_buf_size[i] *= 1024;
582 cx->stream_buf_size[i] -=
583 (cx->stream_buf_size[i] % CX18_UNIT_ENC_IDX_BUFSIZE);
585 if (cx->stream_buf_size[i] < CX18_UNIT_ENC_IDX_BUFSIZE)
586 cx->stream_buf_size[i] =
590 * YUV and IDX are special cases where the stream_buf_size is
592 * VBI is a special case where the stream_buf_size is fixed
601 / cx->stream_buf_size[i];
606 * cx->stream_buf_size[i]/(1024 * 1024);
609 /* All other streams have stream_buf_size in kB here */
613 / cx->stream_buf_size[i];
618 * cx->stream_buf_size[i] / 1024;
621 cx->stream_buf_size[i] *= 1024;
625 cx->stream_buffers[i], cx->stream_buf_size[i]);