• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavformat/

Lines Matching refs:avctx

78 static void read_string(AVFormatContext *avctx, AVIOContext *pb, const char *tag, int size)
93 av_dict_set(&avctx->metadata, tag, value, AV_DICT_DONT_STRDUP_VAL);
96 static void read_uint8(AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt)
100 av_dict_set(&avctx->metadata, tag, value, 0);
103 static void read_uint16(AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt)
107 av_dict_set(&avctx->metadata, tag, value, 0);
110 static void read_uint32(AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt)
114 av_dict_set(&avctx->metadata, tag, value, 0);
117 static void read_uint64(AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt)
121 av_dict_set(&avctx->metadata, tag, value, 0);
124 static int scan_file(AVFormatContext *avctx, AVStream *vst, AVStream *ast, int file)
126 MlvContext *mlv = avctx->priv_data;
142 avpriv_request_sample(avctx, "raw api version");
147 avpriv_request_sample(avctx, "cfa_pattern");
159 read_string(avctx, pb, "info", size);
162 read_string(avctx, pb, "cameraName", 32);
163 read_uint32(avctx, pb, "cameraModel", "0x%"PRIx32);
166 read_string(avctx, pb, "cameraSerial", 32);
170 read_uint16(avctx, pb, "focalLength", "%i");
171 read_uint16(avctx, pb, "focalDist", "%i");
172 read_uint16(avctx, pb, "aperture", "%i");
173 read_uint8(avctx, pb, "stabilizerMode", "%i");
174 read_uint8(avctx, pb, "autofocusMode", "%i");
175 read_uint32(avctx, pb, "flags", "0x%"PRIx32);
176 read_uint32(avctx, pb, "lensID", "%"PRIi32);
177 read_string(avctx, pb, "lensName", 32);
180 read_string(avctx, pb, "lensSerial", 32);
194 read_uint32(avctx, pb, "wb_mode", "%"PRIi32);
195 read_uint32(avctx, pb, "kelvin", "%"PRIi32);
196 read_uint32(avctx, pb, "wbgain_r", "%"PRIi32);
197 read_uint32(avctx, pb, "wbgain_g", "%"PRIi32);
198 read_uint32(avctx, pb, "wbgain_b", "%"PRIi32);
199 read_uint32(avctx, pb, "wbs_gm", "%"PRIi32);
200 read_uint32(avctx, pb, "wbs_ba", "%"PRIi32);
216 av_dict_set(&avctx->metadata, "time", str, 0);
219 av_dict_set(&avctx->metadata, "isoMode", avio_rl32(pb) ? "auto" : "manual", 0);
220 read_uint32(avctx, pb, "isoValue", "%"PRIi32);
221 read_uint32(avctx, pb, "isoAnalog", "%"PRIi32);
222 read_uint32(avctx, pb, "digitalGain", "%"PRIi32);
225 read_uint64(avctx, pb, "shutterValue", "%"PRIi64);
229 read_uint32(avctx, pb, "picStyleId", "%"PRIi32);
230 read_uint32(avctx, pb, "contrast", "%"PRIi32);
231 read_uint32(avctx, pb, "sharpness", "%"PRIi32);
232 read_uint32(avctx, pb, "saturation", "%"PRIi32);
233 read_uint32(avctx, pb, "colortone", "%"PRIi32);
234 read_string(avctx, pb, "picStyleName", 16);
240 av_log(avctx, AV_LOG_INFO, "unsupported tag %c%c%c%c, size %u\n", type&0xFF, (type>>8)&0xFF, (type>>16)&0xFF, (type>>24)&0xFF, size);
247 static int read_header(AVFormatContext *avctx)
249 MlvContext *mlv = avctx->priv_data;
250 AVIOContext *pb = avctx->pb;
265 av_dict_set(&avctx->metadata, "guid", guidstr, 0);
271 vst = avformat_new_stream(avctx, NULL);
276 avpriv_request_sample(avctx, "compression");
296 avpriv_request_sample(avctx, "unknown video class");
302 ast = avformat_new_stream(avctx, NULL);
307 avpriv_request_sample(avctx, "compression");
309 avpriv_request_sample(avctx, "unknown audio class");
336 mlv->pb[100] = avctx->pb;
337 ret = scan_file(avctx, vst, ast, 100);
342 if (strlen(avctx->filename) > 2) {
344 char *filename = av_strdup(avctx->filename);
349 if (avio_open2(&mlv->pb[i], filename, AVIO_FLAG_READ, &avctx->interrupt_callback, NULL) < 0)
352 av_log(avctx, AV_LOG_WARNING, "ignoring %s; bad format or guid mismatch\n", filename);
357 av_log(avctx, AV_LOG_INFO, "scanning %s\n", filename);
358 ret = scan_file(avctx, vst, ast, i);
360 av_log(avctx, AV_LOG_WARNING, "ignoring %s; %s\n", filename, av_err2str(ret));
384 static int read_packet(AVFormatContext *avctx, AVPacket *pkt)
386 MlvContext *mlv = avctx->priv_data;
388 AVStream *st = avctx->streams[mlv->stream_index];
397 av_log(avctx, AV_LOG_ERROR, "could not find index entry for frame %"PRId64"\n", mlv->pts);
431 if (mlv->stream_index == avctx->nb_streams) {
438 static int read_seek(AVFormatContext *avctx, int stream_index, int64_t timestamp, int flags)
440 MlvContext *mlv = avctx->priv_data;
445 if (!avctx->pb->seekable)