Lines Matching refs:frame
48 static int decode(AVCodecContext *dec_ctx, AVFrame *frame,
65 ret = avcodec_receive_frame(dec_ctx, frame);
75 "#format: frame checksums\n"
92 for (int i = 0; i < frame->height; i++)
93 av_hash_update(hash, &frame->data[0][i * frame->linesize[0]], frame->width);
94 for (int i = 0; i < frame->height >> desc->log2_chroma_h; i++)
95 av_hash_update(hash, &frame->data[1][i * frame->linesize[1]], frame->width >> desc->log2_chroma_w);
96 for (int i = 0; i < frame->height >> desc->log2_chroma_h; i++)
97 av_hash_update(hash, &frame->data[2][i * frame->linesize[2]], frame->width >> desc->log2_chroma_w);
102 (frame->width * frame->height + 2 * (frame->height >> desc->log2_chroma_h) * (frame->width >> desc->log2_chroma_w)), sum);
113 AVFrame *frame = NULL;
178 if (!(frame = av_frame_alloc())) {
179 fprintf(stderr, "Could not allocate video frame\n");
208 if ((decret = decode(c, frame, pkt)) < 0) {
220 if ((ret = decode(c, frame, pkt)) < 0) {
225 ret = decode(c, frame, NULL);
232 av_frame_free(&frame);