Lines Matching refs:codec_id
75 enum CodecID codec_id;
82 .codec_id = CODEC_ID_RAWVIDEO,
87 .codec_id = CODEC_ID_RAWVIDEO,
92 .codec_id = CODEC_ID_RAWVIDEO,
97 .codec_id = CODEC_ID_RAWVIDEO,
102 .codec_id = CODEC_ID_RAWVIDEO,
107 .codec_id = CODEC_ID_RAWVIDEO,
112 .codec_id = CODEC_ID_RAWVIDEO,
117 .codec_id = CODEC_ID_RAWVIDEO,
122 .codec_id = CODEC_ID_RAWVIDEO,
127 .codec_id = CODEC_ID_RAWVIDEO,
132 .codec_id = CODEC_ID_RAWVIDEO,
137 .codec_id = CODEC_ID_RAWVIDEO,
142 .codec_id = CODEC_ID_MJPEG,
147 .codec_id = CODEC_ID_MJPEG,
240 static uint32_t fmt_ff2v4l(enum PixelFormat pix_fmt, enum CodecID codec_id)
245 if ((codec_id == CODEC_ID_NONE ||
246 fmt_conversion_table[i].codec_id == codec_id) &&
256 static enum PixelFormat fmt_v4l2ff(uint32_t v4l2_fmt, enum CodecID codec_id)
262 fmt_conversion_table[i].codec_id == codec_id) {
276 return fmt_conversion_table[i].codec_id;
552 enum CodecID *codec_id)
563 fmt_conversion_table[i].codec_id == s1->video_codec_id) {
573 *codec_id = fmt_v4l2codec(desired_format);
574 assert(*codec_id != CODEC_ID_NONE);
586 enum CodecID codec_id;
618 desired_format = device_try_init(s1, ap, &s->width, &s->height, &codec_id);
621 "codec_id %d, pix_fmt %d.\n", s1->video_codec_id, ap->pix_fmt);
633 st->codec->pix_fmt = fmt_v4l2ff(desired_format, codec_id);
653 st->codec->codec_id = codec_id;