Lines Matching refs:pixels
46 void* pixels; member
49 Frame(int w, int h, const void* pixels) in Frame()
50 : width(w), height(h), pixels(NULL), isValid(true) { in Frame()
51 this->pixels = ::malloc(w * 4 * h); in Frame()
54 ~Frame() { ::free(pixels); } in ~Frame()
123 const void* pixels) override { in postRecordFrame() argument
124 postFrame(width, height, pixels, true); in postRecordFrame()
129 const void* pixels) override { in postRecordFrameAsync() argument
130 postFrame(width, height, pixels, false); in postRecordFrameAsync()
136 memcpy(mRecFrame->pixels, mRecTmpFrame->pixels, in getRecordFrame()
140 return mRecFrame && mRecFrame->isValid ? mRecFrame->pixels : nullptr; in getRecordFrame()
146 mReadPixelsFunc(mRecFrame->pixels, in getRecordFrameAsync()
151 return mRecFrame && mRecFrame->isValid ? mRecFrame->pixels : nullptr; in getRecordFrameAsync()
177 void postFrame(int width, int height, const void* pixels, bool copy) { in postFrame() argument
181 mRecFrame = new Frame(width, height, pixels); in postFrame()
184 mRecTmpFrame = new Frame(width, height, pixels); in postFrame()
187 memcpy(mRecTmpFrame->pixels, pixels, width * height * 4); in postFrame()