• 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 +defs:code +defs:key

245     const UID key;
283 static int mxf_read_sync(AVIOContext *pb, const uint8_t *key, unsigned size)
288 if (b == key[0])
290 else if (b != key[i])
301 memcpy(klv->key, mxf_klv_key, 4);
302 avio_read(pb, klv->key + 4, 12);
314 if (!memcmp(klv->key + sizeof(mxf_essence_element_key), track->track_number, sizeof(track->track_number)))
363 if (!mxf->aesc && s->key && s->keylen == 16) {
367 av_aes_init(mxf->aesc, s->key, 128, 1);
374 // source klv key
376 avio_read(pb, klv->key, 16);
387 // enc. code
396 av_log(s, AV_LOG_ERROR, "probably incorrect decryption key\n");
816 int code, value, ofs = 0;
820 code = avio_r8(pb);
822 av_dlog(NULL, "pixel layout: code %#x\n", code);
825 layout[ofs++] = code;
829 } while (code != 0); /* SMPTE 377M E.2.46 */
919 static int mxf_match_uid(const UID key, const UID uid, int len)
923 if (i != 7 && key[i] != uid[i])
1355 static int mxf_add_timecode_metadata(AVDictionary **pm, const char *key, AVTimecode *tc)
1358 av_dict_set(pm, key, av_timecode_make_string(tc, buf, 0), 0);
1534 /* HACK: replacing the original key with mxf_encrypted_essence_container
2060 !IS_KLV_KEY(klv.key, mxf_random_index_pack_key) ||
2084 av_log(s, AV_LOG_ERROR, "could not find header partition pack key\n");
2109 PRINT_KEY(s, "read header", klv.key);
2111 if (IS_KLV_KEY(klv.key, mxf_encrypted_triplet_key) ||
2112 IS_KLV_KEY(klv.key, mxf_essence_element_key) ||
2113 IS_KLV_KEY(klv.key, mxf_avid_essence_element_key) ||
2114 IS_KLV_KEY(klv.key, mxf_system_item_key)) {
2152 } else if (!memcmp(klv.key, mxf_header_partition_pack_key, 13) &&
2153 klv.key[13] >= 2 && klv.key[13] <= 4 && mxf->current_partition) {
2163 if (IS_KLV_KEY(klv.key, metadata->key)) {
2165 if (klv.key[5] == 0x53) {
2169 res = metadata->read(mxf, s->pb, 0, klv.length, klv.key, klv.offset);
2331 PRINT_KEY(s, "read packet", klv.key);
2333 if (IS_KLV_KEY(klv.key, mxf_encrypted_triplet_key)) {
2341 if (IS_KLV_KEY(klv.key, mxf_essence_element_key) ||
2342 IS_KLV_KEY(klv.key, mxf_avid_essence_element_key)) {
2352 AV_RB32(klv.key + 12));
2377 if (klv.key[12] == 0x06 && klv.key[13] == 0x01 && klv.key[14] == 0x10) {
2546 /* Must skip Run-In Sequence and search for MXF header partition pack key SMPTE 377M 5.5 */