Media Data Processing V2 (VPC Cropping, Pasting, and Resizing)
Description
This sample implements image cropping, resizing, padding, color space conversion (CSC), pyramid, lookup table (LUT) remapping, and histogram analysis.
Principles
The following table lists the key functions involved in this sample.
|
Initialization |
|
|---|---|
|
Device Management |
|
|
Memory Management |
|
|
Data Transfer |
aclrtMemcpy:
Data transfer is not required if your app runs in the board environment. |
|
Media Data Processing V2 |
Directory Structure
The sample directory is organized as follows:
├── common //Directory of the sample code files
│ ├── sample_comm.cpp //Implementation file of common functions
│ ├── sample_comm.h //Header file that declares common functions
│ ├── sample_comm_vpc_*.cpp //Implementation file of functions for implementing image cropping and resizing
├── smoke_vpc //Directory of the sample code files
│ ├── sample_vpc.cpp //Implementation file of the main function
├── CMakeLists.txt //Build script
Parent topic: Samples