<commit_before>//
//  capturer.h
//  libndnrtc
//
//  Copyright 2013 Regents of the University of California
//  For licensing details see the LICENSE file.
//
//  Author:  <NAME>
//

#ifndef __libndnrtc__capturer__
#define __libndnrtc__capturer__

#include <boost/thread/mutex.hpp>
#include <boost/thread.hpp>

#include "webrtc.h"
#include "ndnrtc-object.h"
#include "ndnrtc-utils.h"

namespace ndnrtc {
    
    class IRawFrameConsumer
    {
    public:
        virtual void onRawFrame(WebRtcVideoFrame &frame) = 0;
    };
    
    class BaseCapturer : public new_api::NdnRtcComponent {
    public:
        BaseCapturer();
        virtual ~BaseCapturer();
        
        virtual int init();
        virtual int startCapture();
        virtual int stopCapture();
        
        bool isCapturing() { return isCapturing_; }<commit_msg>updated raw frame consumer interface<commit_after>//
//  capturer.h
//  libndnrtc
//
//  Copyright 2013 Regents of the University of California
//  For licensing details see the LICENSE file.
//
//  Author:  <NAME>
//

#ifndef __libndnrtc__capturer__
#define __libndnrtc__capturer__

#include <boost/thread/mutex.hpp>
#include <boost/thread.hpp>

#include "webrtc.h"
#include "ndnrtc-object.h"
#include "ndnrtc-utils.h"

namespace ndnrtc {
    
    class IRawFrameConsumer
    {
    public:
        virtual void onRawFrame(const WebRtcVideoFrame &frame) = 0;
    };
    
    class BaseCapturer : public new_api::NdnRtcComponent {
    public:
        BaseCapturer();
        virtual ~BaseCapturer();
        
        virtual int init();
        virtual int startCapture();
        virtual int stopCapture();
        
        bool isCapturing() { return isCapturing_; }
{'fraction_non_alphanumeric': 0.10439882697947214, 'fraction_numerical': 0.005865102639296188, 'mean_word_length': 2.6926406926406927, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5074275', 'n_tokens_mistral': 552, 'n_tokens_neox': 535, 'n_words': 135}