• Home
  • Raw
  • Download

Lines Matching refs:mngr

23 gst_pnm_info_mngr_scan (GstPnmInfoMngr * mngr, const guint8 * buf,  in gst_pnm_info_mngr_scan()  argument
28 g_return_val_if_fail (mngr != NULL, GST_PNM_INFO_MNGR_RESULT_FAILED); in gst_pnm_info_mngr_scan()
32 return (mngr->info.fields == in gst_pnm_info_mngr_scan()
36 switch (mngr->state) { in gst_pnm_info_mngr_scan()
41 mngr->state = GST_PNM_INFO_MNGR_STATE_NONE; in gst_pnm_info_mngr_scan()
42 mngr->data_offset += i; in gst_pnm_info_mngr_scan()
43 return gst_pnm_info_mngr_scan (mngr, buf + i, buf_len - i); in gst_pnm_info_mngr_scan()
49 mngr->state = GST_PNM_INFO_MNGR_STATE_NONE; in gst_pnm_info_mngr_scan()
50 mngr->data_offset += i; in gst_pnm_info_mngr_scan()
51 return gst_pnm_info_mngr_scan (mngr, buf + i, buf_len - i); in gst_pnm_info_mngr_scan()
55 mngr->state = GST_PNM_INFO_MNGR_STATE_COMMENT; in gst_pnm_info_mngr_scan()
56 mngr->data_offset += i; in gst_pnm_info_mngr_scan()
57 return gst_pnm_info_mngr_scan (mngr, buf + i, buf_len - i); in gst_pnm_info_mngr_scan()
61 mngr->state = GST_PNM_INFO_MNGR_STATE_WHITE_SPACE; in gst_pnm_info_mngr_scan()
62 mngr->data_offset += i; in gst_pnm_info_mngr_scan()
63 return gst_pnm_info_mngr_scan (mngr, buf + i, buf_len - i); in gst_pnm_info_mngr_scan()
65 if (mngr->info.fields & GST_PNM_INFO_FIELDS_TYPE) in gst_pnm_info_mngr_scan()
67 mngr->state = GST_PNM_INFO_MNGR_STATE_DATA_TYPE; in gst_pnm_info_mngr_scan()
68 mngr->data_offset += i; in gst_pnm_info_mngr_scan()
69 return gst_pnm_info_mngr_scan (mngr, buf + i, buf_len - i); in gst_pnm_info_mngr_scan()
80 if (mngr->info.fields & GST_PNM_INFO_FIELDS_MAX) in gst_pnm_info_mngr_scan()
82 if (mngr->info.fields & GST_PNM_INFO_FIELDS_HEIGHT) { in gst_pnm_info_mngr_scan()
83 mngr->state = GST_PNM_INFO_MNGR_STATE_DATA_MAX; in gst_pnm_info_mngr_scan()
84 return gst_pnm_info_mngr_scan (mngr, buf, buf_len); in gst_pnm_info_mngr_scan()
86 if (mngr->info.fields & GST_PNM_INFO_FIELDS_WIDTH) { in gst_pnm_info_mngr_scan()
87 mngr->state = GST_PNM_INFO_MNGR_STATE_DATA_HEIGHT; in gst_pnm_info_mngr_scan()
88 return gst_pnm_info_mngr_scan (mngr, buf, buf_len); in gst_pnm_info_mngr_scan()
90 mngr->state = GST_PNM_INFO_MNGR_STATE_DATA_WIDTH; in gst_pnm_info_mngr_scan()
91 return gst_pnm_info_mngr_scan (mngr, buf, buf_len); in gst_pnm_info_mngr_scan()
98 mngr->info.type = GST_PNM_TYPE_BITMAP; in gst_pnm_info_mngr_scan()
99 mngr->info.encoding = GST_PNM_ENCODING_ASCII; in gst_pnm_info_mngr_scan()
102 mngr->info.type = GST_PNM_TYPE_GRAYMAP; in gst_pnm_info_mngr_scan()
103 mngr->info.encoding = GST_PNM_ENCODING_ASCII; in gst_pnm_info_mngr_scan()
106 mngr->info.type = GST_PNM_TYPE_PIXMAP; in gst_pnm_info_mngr_scan()
107 mngr->info.encoding = GST_PNM_ENCODING_ASCII; in gst_pnm_info_mngr_scan()
110 mngr->info.type = GST_PNM_TYPE_BITMAP; in gst_pnm_info_mngr_scan()
111 mngr->info.encoding = GST_PNM_ENCODING_RAW; in gst_pnm_info_mngr_scan()
114 mngr->info.type = GST_PNM_TYPE_GRAYMAP; in gst_pnm_info_mngr_scan()
115 mngr->info.encoding = GST_PNM_ENCODING_RAW; in gst_pnm_info_mngr_scan()
118 mngr->info.type = GST_PNM_TYPE_PIXMAP; in gst_pnm_info_mngr_scan()
119 mngr->info.encoding = GST_PNM_ENCODING_RAW; in gst_pnm_info_mngr_scan()
124 mngr->info.fields |= in gst_pnm_info_mngr_scan()
126 mngr->state = GST_PNM_INFO_MNGR_STATE_WHITE_SPACE; in gst_pnm_info_mngr_scan()
129 mngr->info.width = mngr->info.height = mngr->info.max = 0; in gst_pnm_info_mngr_scan()
130 mngr->data_offset += i; in gst_pnm_info_mngr_scan()
131 return gst_pnm_info_mngr_scan (mngr, buf + i, buf_len - i); in gst_pnm_info_mngr_scan()
138 mngr->info.fields |= GST_PNM_INFO_FIELDS_WIDTH; in gst_pnm_info_mngr_scan()
139 mngr->state = GST_PNM_INFO_MNGR_STATE_WHITE_SPACE; in gst_pnm_info_mngr_scan()
140 mngr->data_offset += i; in gst_pnm_info_mngr_scan()
141 return gst_pnm_info_mngr_scan (mngr, buf + i, buf_len - i); in gst_pnm_info_mngr_scan()
146 mngr->info.width *= 10; in gst_pnm_info_mngr_scan()
147 mngr->info.width += buf[i++] - 0x030; in gst_pnm_info_mngr_scan()
148 mngr->data_offset += i; in gst_pnm_info_mngr_scan()
149 return gst_pnm_info_mngr_scan (mngr, buf + i, buf_len - i); in gst_pnm_info_mngr_scan()
156 mngr->info.fields |= GST_PNM_INFO_FIELDS_HEIGHT; in gst_pnm_info_mngr_scan()
157 mngr->state = GST_PNM_INFO_MNGR_STATE_WHITE_SPACE; in gst_pnm_info_mngr_scan()
158 mngr->data_offset += i; in gst_pnm_info_mngr_scan()
159 if (mngr->info.type == GST_PNM_TYPE_BITMAP) { in gst_pnm_info_mngr_scan()
160 mngr->data_offset += 1; in gst_pnm_info_mngr_scan()
161 mngr->info.fields |= GST_PNM_INFO_FIELDS_MAX; in gst_pnm_info_mngr_scan()
164 return gst_pnm_info_mngr_scan (mngr, buf + i, buf_len - i); in gst_pnm_info_mngr_scan()
169 mngr->info.height *= 10; in gst_pnm_info_mngr_scan()
170 mngr->info.height += buf[i++] - 0x030; in gst_pnm_info_mngr_scan()
171 mngr->data_offset += i; in gst_pnm_info_mngr_scan()
172 return gst_pnm_info_mngr_scan (mngr, buf + i, buf_len - i); in gst_pnm_info_mngr_scan()
181 if (mngr->info.type == GST_PNM_TYPE_GRAYMAP) { in gst_pnm_info_mngr_scan()
182 if ((mngr->info.max > 65535) || (mngr->info.max < 1)) { in gst_pnm_info_mngr_scan()
185 } else if ((mngr->info.max > 255) || (mngr->info.max < 1)) { in gst_pnm_info_mngr_scan()
188 mngr->info.fields |= GST_PNM_INFO_FIELDS_MAX; in gst_pnm_info_mngr_scan()
189 mngr->data_offset += i + 1; in gst_pnm_info_mngr_scan()
195 mngr->info.max *= 10; in gst_pnm_info_mngr_scan()
196 mngr->info.max += buf[i++] - 0x030; in gst_pnm_info_mngr_scan()
197 mngr->data_offset += i; in gst_pnm_info_mngr_scan()
198 return gst_pnm_info_mngr_scan (mngr, buf + i, buf_len - i); in gst_pnm_info_mngr_scan()