Lines Matching defs:type

32 int ivtv_claim_stream(struct ivtv_open_id *id, int type)
35 struct ivtv_stream *s = &itv->streams[type];
45 if (s->fh == NULL && (type == IVTV_DEC_STREAM_TYPE_VBI ||
46 type == IVTV_ENC_STREAM_TYPE_VBI)) {
55 IVTV_DEBUG_INFO("Stream %d is busy\n", type);
59 if (type == IVTV_DEC_STREAM_TYPE_VBI) {
68 if (type == IVTV_DEC_STREAM_TYPE_MPG) {
70 } else if (type == IVTV_ENC_STREAM_TYPE_MPG &&
97 if ((s->type == IVTV_DEC_STREAM_TYPE_VBI || s->type == IVTV_ENC_STREAM_TYPE_VBI) &&
110 if (s->type == IVTV_DEC_STREAM_TYPE_VBI)
116 if (s->type == IVTV_DEC_STREAM_TYPE_MPG)
118 else if (s->type == IVTV_ENC_STREAM_TYPE_MPG)
133 if (s_vbi->type == IVTV_DEC_STREAM_TYPE_VBI)
202 if (s->type == IVTV_ENC_STREAM_TYPE_MPG) {
217 ivtv_process_vbi_data(itv, buf, s_vbi->dma_pts, s_vbi->type);
238 if (s->type == IVTV_ENC_STREAM_TYPE_MPG)
241 else if (s->type != IVTV_DEC_STREAM_TYPE_VBI) {
243 ivtv_process_vbi_data(itv, buf, s->dma_pts, s->type);
249 if (s->type != IVTV_DEC_STREAM_TYPE_VBI && !test_bit(IVTV_F_S_STREAMING, &s->s_flags)) {
293 if (itv->vbi.insert_mpeg && s->type == IVTV_ENC_STREAM_TYPE_MPG &&
341 if (s->type == IVTV_ENC_STREAM_TYPE_MPG && buf != &itv->vbi.sliced_mpeg_buf)
360 if (s->type == IVTV_DEC_STREAM_TYPE_VBI ||
361 (s->type == IVTV_ENC_STREAM_TYPE_VBI && !ivtv_raw_vbi(itv)))
418 struct ivtv_stream *s = &itv->streams[id->type];
421 if (s->type == IVTV_ENC_STREAM_TYPE_RAD ||
422 s->type == IVTV_DEC_STREAM_TYPE_MPG ||
423 s->type == IVTV_DEC_STREAM_TYPE_YUV ||
424 s->type == IVTV_DEC_STREAM_TYPE_VOUT) {
430 if (ivtv_claim_stream(id, s->type))
434 if (s->type == IVTV_DEC_STREAM_TYPE_VBI) {
448 if (s->type == IVTV_ENC_STREAM_TYPE_MPG &&
483 if (s->type == IVTV_ENC_STREAM_TYPE_MPG &&
497 struct ivtv_stream *s = &itv->streams[id->type];
514 struct ivtv_stream *s = &itv->streams[id->type];
518 if (ivtv_claim_stream(id, s->type)) {
531 if (s->type == IVTV_DEC_STREAM_TYPE_MPG)
540 struct ivtv_stream *s = &itv->streams[id->type];
551 if (s->type != IVTV_DEC_STREAM_TYPE_MPG &&
552 s->type != IVTV_DEC_STREAM_TYPE_YUV &&
553 s->type != IVTV_DEC_STREAM_TYPE_VOUT)
558 if (ivtv_claim_stream(id, s->type))
562 if (s->type == IVTV_DEC_STREAM_TYPE_VOUT) {
570 mode = s->type == IVTV_DEC_STREAM_TYPE_MPG ? OUT_MPG : OUT_YUV;
638 if (s->type == IVTV_DEC_STREAM_TYPE_YUV &&
654 if (s->type == IVTV_DEC_STREAM_TYPE_YUV) {
670 if (s->type == IVTV_DEC_STREAM_TYPE_MPG)
725 struct ivtv_stream *s = &itv->streams[id->type];
760 struct ivtv_stream *s = &itv->streams[id->type];
766 s->type != IVTV_ENC_STREAM_TYPE_RAD &&
799 struct ivtv_stream *s = &itv->streams[id->type];
812 if (id->type == IVTV_ENC_STREAM_TYPE_MPG &&
818 if ((id->type == IVTV_DEC_STREAM_TYPE_VBI ||
819 id->type == IVTV_ENC_STREAM_TYPE_VBI) &&
838 struct ivtv_stream *s = &itv->streams[id->type];
842 if (id->type == IVTV_DEC_STREAM_TYPE_YUV &&
871 struct ivtv_stream *s = &itv->streams[id->type];
878 if (id->type == IVTV_ENC_STREAM_TYPE_RAD &&
911 if (s->type >= IVTV_DEC_STREAM_TYPE_MPG) {
964 if (s->type == IVTV_DEC_STREAM_TYPE_MPG &&
968 if (s->type == IVTV_DEC_STREAM_TYPE_YUV &&
972 if (s->type == IVTV_DEC_STREAM_TYPE_YUV) {
988 item->type = s->type;
993 if (item->type == IVTV_ENC_STREAM_TYPE_RAD &&
1022 if (s->type == IVTV_DEC_STREAM_TYPE_MPG) {
1024 } else if (s->type == IVTV_DEC_STREAM_TYPE_YUV) {