summaryrefslogtreecommitdiffstats
blob: bb1da2a0c170a3a7a9f646eb477e70e1badd7803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * Copyright (c) 2012 Yoann Blein
 * Licensed under the simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

#pragma once

#include <stdint.h>

namespace Swift {
	class ReferencePictureSelection {
		public:
			ReferencePictureSelection();

			void receivedRPSI(int rpsi_picture_id);

			void receivedSLI();

			int encodeFlags(int picture_id);

			void refFrameSent(int picture_id);

		private:
			bool update_golden_next_;
			bool established_golden_;
			bool received_ack_;
			int last_sent_ref_picture_id_;
			int established_ref_picture_id_;
			bool send_refresh;
	};
}