Home
last modified time | relevance | path

Searched refs:FrameBuffer (Results 1 – 25 of 94) sorted by relevance

1234

/external/tflite-support/tensorflow_lite_support/cc/task/vision/utils/
Dframe_buffer_common_utils.cc37 std::unique_ptr<FrameBuffer> CreateFromNV12RawBuffer( in CreateFromNV12RawBuffer()
38 const uint8* input, FrameBuffer::Dimension dimension, in CreateFromNV12RawBuffer()
39 FrameBuffer::Orientation orientation, const absl::Time timestamp) { in CreateFromNV12RawBuffer()
40 const std::vector<FrameBuffer::Plane> planes_nv12 = { in CreateFromNV12RawBuffer()
43 return FrameBuffer::Create(planes_nv12, dimension, FrameBuffer::Format::kNV12, in CreateFromNV12RawBuffer()
48 std::unique_ptr<FrameBuffer> CreateFromNV21RawBuffer( in CreateFromNV21RawBuffer()
49 const uint8* input, FrameBuffer::Dimension dimension, in CreateFromNV21RawBuffer()
50 FrameBuffer::Orientation orientation, const absl::Time timestamp) { in CreateFromNV21RawBuffer()
51 FrameBuffer::Plane input_plane = {/*buffer=*/input, in CreateFromNV21RawBuffer()
53 return FrameBuffer::Create({input_plane}, dimension, in CreateFromNV21RawBuffer()
[all …]
Dframe_buffer_utils.h36 int GetBufferByteSize(FrameBuffer::Dimension dimension,
37 FrameBuffer::Format format);
42 FrameBuffer::Orientation from_orientation,
43 FrameBuffer::Orientation to_orientation,
44 FrameBuffer::Dimension from_dimension);
49 FrameBuffer::Orientation from_orientation,
50 FrameBuffer::Orientation to_orientation,
51 FrameBuffer::Dimension from_dimension);
57 FrameBuffer::Orientation from_orientation,
58 FrameBuffer::Orientation to_orientation,
[all …]
Dframe_buffer_common_utils.h40 int GetFrameBufferByteSize(FrameBuffer::Dimension dimension,
41 FrameBuffer::Format format);
44 tflite::support::StatusOr<int> GetPixelStrides(FrameBuffer::Format format);
48 const FrameBuffer& buffer);
55 tflite::support::StatusOr<FrameBuffer::Dimension> GetUvPlaneDimension(
56 FrameBuffer::Dimension dimension, FrameBuffer::Format format);
59 FrameBuffer::Dimension GetCropDimension(int x0, int x1, int y0, int y1);
66 absl::Status ValidateBufferPlaneMetadata(const FrameBuffer& buffer);
69 absl::Status ValidateBufferFormat(const FrameBuffer& buffer);
73 absl::Status ValidateBufferFormats(const FrameBuffer& buffer1,
[all …]
Dlibyuv_frame_buffer_utils.cc45 absl::Status ConvertFromNv12(const FrameBuffer& buffer, in ConvertFromNv12()
46 FrameBuffer* output_buffer) { in ConvertFromNv12()
47 ASSIGN_OR_RETURN(FrameBuffer::YuvData yuv_data, in ConvertFromNv12()
48 FrameBuffer::GetYuvDataFromFrameBuffer(buffer)); in ConvertFromNv12()
50 case FrameBuffer::Format::kRGB: { in ConvertFromNv12()
66 case FrameBuffer::Format::kRGBA: { in ConvertFromNv12()
81 case FrameBuffer::Format::kYV12: in ConvertFromNv12()
82 case FrameBuffer::Format::kYV21: { in ConvertFromNv12()
83 ASSIGN_OR_RETURN(FrameBuffer::YuvData output_data, in ConvertFromNv12()
84 FrameBuffer::GetYuvDataFromFrameBuffer(*output_buffer)); in ConvertFromNv12()
[all …]
Dframe_buffer_utils.cc47 static int GetOrientationIndex(FrameBuffer::Orientation orientation) { in GetOrientationIndex()
95 FrameBuffer::Dimension frame_dimension) { in RotateBoundingBox()
134 const FrameBuffer::Dimension& frame_dimension, in RotateCoordinates()
158 int GetBufferByteSize(FrameBuffer::Dimension dimension, in GetBufferByteSize()
159 FrameBuffer::Format format) { in GetBufferByteSize()
175 FrameBuffer::Orientation from_orientation, in OrientBoundingBox()
176 FrameBuffer::Orientation to_orientation, in OrientBoundingBox()
177 FrameBuffer::Dimension from_dimension) { in OrientBoundingBox()
186 FrameBuffer::Dimension to_dimension = from_dimension; in OrientBoundingBox()
203 FrameBuffer::Orientation from_orientation, in OrientAndDenormalizeBoundingBox()
[all …]
Dframe_buffer_utils_interface.h40 virtual absl::Status Crop(const FrameBuffer& buffer, int x0, int y0, int x1,
41 int y1, FrameBuffer* output_buffer) = 0;
49 virtual absl::Status Resize(const FrameBuffer& buffer,
50 FrameBuffer* output_buffer) = 0;
60 virtual absl::Status Rotate(const FrameBuffer& buffer, int angle_deg,
61 FrameBuffer* output_buffer) = 0;
67 virtual absl::Status FlipHorizontally(const FrameBuffer& buffer,
68 FrameBuffer* output_buffer) = 0;
74 virtual absl::Status FlipVertically(const FrameBuffer& buffer,
75 FrameBuffer* output_buffer) = 0;
[all …]
Dlibyuv_frame_buffer_utils.h44 absl::Status Crop(const FrameBuffer& buffer, int x0, int y0, int x1, int y1,
45 FrameBuffer* output_buffer) override;
48 absl::Status Resize(const FrameBuffer& buffer,
49 FrameBuffer* output_buffer) override;
54 absl::Status Rotate(const FrameBuffer& buffer, int angle_deg,
55 FrameBuffer* output_buffer) override;
58 absl::Status FlipHorizontally(const FrameBuffer& buffer,
59 FrameBuffer* output_buffer) override;
62 absl::Status FlipVertically(const FrameBuffer& buffer,
63 FrameBuffer* output_buffer) override;
[all …]
/external/tflite-support/tensorflow_lite_support/cc/task/vision/core/
Dframe_buffer.cc27 bool IsSupportedYuvFormat(FrameBuffer::Format format) { in IsSupportedYuvFormat()
28 return format == FrameBuffer::Format::kNV21 || in IsSupportedYuvFormat()
29 format == FrameBuffer::Format::kNV12 || in IsSupportedYuvFormat()
30 format == FrameBuffer::Format::kYV12 || in IsSupportedYuvFormat()
31 format == FrameBuffer::Format::kYV21; in IsSupportedYuvFormat()
35 StatusOr<FrameBuffer::YuvData> GetYuvDataFromOnePlaneFrameBuffer( in GetYuvDataFromOnePlaneFrameBuffer()
36 const FrameBuffer& source) { in GetYuvDataFromOnePlaneFrameBuffer()
42 FrameBuffer::YuvData result; in GetYuvDataFromOnePlaneFrameBuffer()
52 if (source.format() == FrameBuffer::Format::kNV21) { in GetYuvDataFromOnePlaneFrameBuffer()
62 } else if (source.format() == FrameBuffer::Format::kNV12) { in GetYuvDataFromOnePlaneFrameBuffer()
[all …]
Dbase_vision_task_api.h47 : public tflite::task::core::BaseTaskApi<OutputType, const FrameBuffer&,
51 : tflite::task::core::BaseTaskApi<OutputType, const FrameBuffer&, in BaseVisionTaskApi()
69 using tflite::task::core::BaseTaskApi<OutputType, const FrameBuffer&,
115 const FrameBuffer& frame_buffer, in Preprocess()
144 std::unique_ptr<FrameBuffer> preprocessed_frame_buffer; in Preprocess()
151 FrameBuffer::Dimension to_buffer_dimension = {input_specs_->image_width, in Preprocess()
154 GetBufferByteSize(to_buffer_dimension, FrameBuffer::Format::kRGB); in Preprocess()
158 FrameBuffer::Plane preprocessed_plane = { in Preprocess()
162 preprocessed_frame_buffer = FrameBuffer::Create( in Preprocess()
163 {preprocessed_plane}, to_buffer_dimension, FrameBuffer::Format::kRGB, in Preprocess()
[all …]
Dframe_buffer.h75 class FrameBuffer {
162 static std::unique_ptr<FrameBuffer> Create(const std::vector<Plane>& planes, in Create()
166 return absl::make_unique<FrameBuffer>(planes, dimension, format, in Create()
173 static std::unique_ptr<FrameBuffer> Create(std::vector<Plane>&& planes, in Create()
177 return absl::make_unique<FrameBuffer>(std::move(planes), dimension, format, in Create()
185 static std::unique_ptr<FrameBuffer> Create(const std::vector<Plane>& planes, in Create()
188 return absl::make_unique<FrameBuffer>(planes, dimension, format, in Create()
196 static std::unique_ptr<FrameBuffer> Create(std::vector<Plane>&& planes, in Create()
199 return absl::make_unique<FrameBuffer>(std::move(planes), dimension, format, in Create()
207 const FrameBuffer& source);
[all …]
/external/tflite-support/tensorflow_lite_support/java/src/native/task/vision/
Djni_utils.cc56 FrameBuffer::Orientation ConvertToFrameBufferOrientation(JNIEnv* env, in ConvertToFrameBufferOrientation()
60 return FrameBuffer::Orientation::kTopLeft; in ConvertToFrameBufferOrientation()
62 return FrameBuffer::Orientation::kTopRight; in ConvertToFrameBufferOrientation()
64 return FrameBuffer::Orientation::kBottomRight; in ConvertToFrameBufferOrientation()
66 return FrameBuffer::Orientation::kBottomLeft; in ConvertToFrameBufferOrientation()
68 return FrameBuffer::Orientation::kLeftTop; in ConvertToFrameBufferOrientation()
70 return FrameBuffer::Orientation::kRightTop; in ConvertToFrameBufferOrientation()
72 return FrameBuffer::Orientation::kRightBottom; in ConvertToFrameBufferOrientation()
74 return FrameBuffer::Orientation::kLeftBottom; in ConvertToFrameBufferOrientation()
80 return FrameBuffer::Orientation::kTopLeft; in ConvertToFrameBufferOrientation()
/external/deqp-deps/amber/src/vulkan/
Dframe_buffer.cc29 FrameBuffer::FrameBuffer( in FrameBuffer() function in amber::vulkan::FrameBuffer
41 FrameBuffer::~FrameBuffer() { in ~FrameBuffer()
48 Result FrameBuffer::Initialize(VkRenderPass render_pass) { in Initialize()
121 void FrameBuffer::ChangeFrameLayout(CommandBuffer* command, in ChangeFrameLayout()
133 void FrameBuffer::ChangeFrameToDrawLayout(CommandBuffer* command) { in ChangeFrameToDrawLayout()
143 void FrameBuffer::ChangeFrameToProbeLayout(CommandBuffer* command) { in ChangeFrameToProbeLayout()
152 void FrameBuffer::ChangeFrameToWriteLayout(CommandBuffer* command) { in ChangeFrameToWriteLayout()
161 void FrameBuffer::TransferImagesToHost(CommandBuffer* command) { in TransferImagesToHost()
169 void FrameBuffer::CopyImagesToBuffers() { in CopyImagesToBuffers()
187 void FrameBuffer::TransferImagesToDevice(CommandBuffer* command) { in TransferImagesToDevice()
[all …]
Dframe_buffer.h31 class FrameBuffer {
33 FrameBuffer(
39 ~FrameBuffer();
/external/webrtc/modules/video_coding/
Dframe_buffer2.cc51 FrameBuffer::FrameBuffer(Clock* clock, in FrameBuffer() function in webrtc::video_coding::FrameBuffer
70 FrameBuffer::~FrameBuffer() { in ~FrameBuffer()
74 void FrameBuffer::NextFrame( in NextFrame()
96 void FrameBuffer::StartWaitForNextFrameOnQueue() { in StartWaitForNextFrameOnQueue()
126 int64_t FrameBuffer::FindNextFrame(int64_t now_ms) { in FindNextFrame()
220 EncodedFrame* FrameBuffer::GetNextFrame() { in GetNextFrame()
301 bool FrameBuffer::HasBadRenderTiming(const EncodedFrame& frame, in HasBadRenderTiming()
330 void FrameBuffer::SetProtectionMode(VCMVideoProtection mode) { in SetProtectionMode()
336 void FrameBuffer::Start() { in Start()
342 void FrameBuffer::Stop() { in Stop()
[all …]
Dframe_buffer2.h45 class FrameBuffer {
49 FrameBuffer(Clock* clock,
53 virtual ~FrameBuffer();
196 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FrameBuffer);
/external/swiftshader/src/Main/
DFrameBuffer.cpp32 FrameBuffer::Cursor FrameBuffer::cursor = {};
33 bool FrameBuffer::topLeftOrigin = false;
35 FrameBuffer::FrameBuffer(int width, int height, bool fullscreen, bool topLeftOrigin) in FrameBuffer() function in sw::FrameBuffer
55 FrameBuffer *parameters = this; in FrameBuffer()
60 FrameBuffer::~FrameBuffer() in ~FrameBuffer()
71 void FrameBuffer::setCursorImage(sw::Surface *cursorImage) in setCursorImage()
88 void FrameBuffer::setCursorOrigin(int x0, int y0) in setCursorOrigin()
94 void FrameBuffer::setCursorPosition(int x, int y) in setCursorPosition()
100 void FrameBuffer::copy(sw::Surface *source) in copy()
150 void FrameBuffer::copyLocked() in copyLocked()
[all …]
DFrameBuffer.hpp40 class [[clang::lto_visibility_public]] FrameBuffer class
43 FrameBuffer(int width, int height, bool fullscreen, bool topLeftOrigin);
45 virtual ~FrameBuffer() = 0;
DFrameBufferWin.cpp19 …wHandle, int width, int height, bool fullscreen, bool topLeftOrigin) : FrameBuffer(width, height, … in FrameBufferWin()
75 sw::FrameBuffer *createFrameBuffer(void *display, HWND window, int width, int height) in createFrameBuffer()
/external/tflite-support/tensorflow_lite_support/cc/task/vision/
Dimage_segmenter.cc307 const FrameBuffer& frame_buffer) { in Segment()
316 const FrameBuffer& frame_buffer, const BoundingBox& /*roi*/) { in Postprocess()
332 FrameBuffer::Orientation tensor_orientation = frame_buffer.orientation(); in Postprocess()
334 FrameBuffer::Dimension tensor_dimension = {output_width_, output_height_}; in Postprocess()
338 FrameBuffer::Orientation mask_orientation = in Postprocess()
339 FrameBuffer::Orientation::kTopLeft; in Postprocess()
342 FrameBuffer::Dimension mask_dimension(tensor_dimension); in Postprocess()
344 FrameBuffer::Orientation::kTopLeft)) { in Postprocess()
Dimage_classifier.h97 const FrameBuffer& frame_buffer);
111 const FrameBuffer& frame_buffer, const BoundingBox& roi);
125 const FrameBuffer& frame_buffer, const BoundingBox& roi) override;
Dobject_detector.h118 const FrameBuffer& frame_buffer);
124 const FrameBuffer& frame_buffer, const BoundingBox& roi) override;
Dimage_segmenter.h114 const FrameBuffer& frame_buffer);
121 const FrameBuffer& frame_buffer, const BoundingBox& roi) override;
/external/deqp/external/vulkancts/modules/vulkan/descriptor_indexing/
DvktDescriptorSetsIndexingTests.hpp48 struct FrameBuffer;
52 typedef de::SharedPtr<FrameBuffer> FrameBufferSp;
86 struct FrameBuffer struct
93 FrameBuffer (void) in FrameBuffer() argument
99 FrameBuffer (const FrameBuffer&) {} in FrameBuffer() argument
/external/webrtc/video/
Dvideo_stream_decoder_impl.cc146 video_coding::FrameBuffer::ReturnReason res) mutable { in StartNextDecode()
154 video_coding::FrameBuffer::ReturnReason result) { in OnNextFrameCallback()
156 case video_coding::FrameBuffer::kFrameFound: { in OnNextFrameCallback()
191 case video_coding::FrameBuffer::kTimeout: { in OnNextFrameCallback()
202 case video_coding::FrameBuffer::kStopped: { in OnNextFrameCallback()
/external/libgav1/libgav1/examples/
Dgav1_decode_cv_pixel_buffer_pool.h36 libgav1::FrameBuffer* frame_buffer);
63 libgav1::FrameBuffer* frame_buffer);

1234