Lines Matching refs:hash
43 #include "libavutil/hash.h"
63 struct AVHashContext *hash;
77 "#hash: MD5\n"
83 "#stream#, dts, pts, duration, size, hash\n");
87 if ((ret = av_hash_alloc(&hash, "md5")) < 0) {
90 av_hash_init(hash);
93 av_hash_update(hash, &frame->data[0][i * frame->linesize[0]], frame->width);
95 av_hash_update(hash, &frame->data[1][i * frame->linesize[1]], frame->width >> desc->log2_chroma_w);
97 av_hash_update(hash, &frame->data[2][i * frame->linesize[2]], frame->width >> desc->log2_chroma_w);
99 av_hash_final_hex(hash, sum, av_hash_get_size(hash) * 2 + 1);
104 av_hash_freep(&hash);