NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
nvrm_surface_fusa.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009-2025 NVIDIA Corporation. All rights reserved.
3  *
4  * NVIDIA Corporation and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA Corporation is strictly prohibited.
9  */
10 
11 #ifndef INCLUDED_nvrm_surface_fusa_H
12 #define INCLUDED_nvrm_surface_fusa_H
13 
22 #include "nvcolor.h"
23 #include "nvrm_stream.h"
24 
25 #if NV_IS_SAFETY
26 #include "nvrm_memmgr_safe.h"
27 #else
28 #include "nvrm_memmgr.h"
29 #endif
30 
31 #if defined(__cplusplus)
32 extern "C" {
33 #endif
34 
398 
403 typedef enum
404 {
419 
423 typedef enum
424 {
441 
443 #define NvYuvChromaLocation_BT601 NvYuvChromaLocation_0_0
444 #define NvYuvChromaLocation_MPEG2 NvYuvChromaLocation_0_1
445 #define NvYuvChromaLocation_MPEG1 NvYuvChromaLocation_1_1
446 #define NvYuvChromaLocation_JPEG NvYuvChromaLocation_1_1
447 
452 typedef enum
453 {
454  /* Display scan formats */
457 
458  /* Force compiler to use 32bit integers as storage type */
461 
465 #define NVRM_MAX_SURFACES 3
466 
467 
475 typedef enum
476 {
483 
484 #if !(NV_IS_SAFETY)
492 #endif
493 
498 
500  /* Force compiler to use 32bit integers as storage type */
503 
504 
507 #if !(NV_IS_SAFETY)
508 #define NVRM_SURFACE_FLAG_VPR (1ULL << 0U)
510 #endif
511 #define NVRM_SURFACE_FLAG_COMPRESSIBLE (1ULL << 1U)
513 #if !(NV_IS_SAFETY)
514 #define NVRM_SURFACE_FLAG_FORCE_TEGRA_RAW_SWIZZLING (1ULL << 2U)
517 #endif
518 #define NVRM_SURFACE_FLAG_SIZE_VALIDATED (1ULL << 63U)
520 #define NVRM_SURFACE_FLAG_NO_FORCE_PAGE_ALIGNMENT (1ULL << 3U)
522 
524 
553 typedef struct NvRmSurfaceRec
554 {
556  NvU32 Width;
558  NvU32 Height;
559 
561  NvColorFormat ColorFormat;
562 
565 
571  NvU32 Pitch;
572 
577 
582  NvU32 Offset;
583 
589 
593 
596 
606 
608  NvU64 Flags;
609 
613  NvU64 Size;
614 
615 #if !(NV_IS_SAFETY)
622 
629 
636 #endif
637 
644 #if defined(NV_ANDROID) || defined(NV_HOS)
645  NvU32 Dummy;
647  NV_ALIGN_POINTER(void*, pBase);
648 #else
649  void* pBase;
650 #endif
651 
652 } NvRmSurface;
653 
654 
655 
656 
657  // Trick to make enum anonymous but still accessible via Doxygen
658 #define NvRmSurfaceUnitSupport
659 
663 {
664  NvRmSurfaceUnitSupport_3D = 1 << 0, //< 3D engine support
665  NvRmSurfaceUnitSupport_2D = 1 << 1, //< 2D engine support
666  NvRmSurfaceUnitSupport_Display = 1 << 2, //< Display engine support
669  NvRmSurfaceUnitSupport_VI = 1 << 5, //< Camera engine Video Input support
670  NvRmSurfaceUnitSupport_CSI = 1 << 6, //< Camera engine Camera Serial Interface support
671  NvRmSurfaceUnitSupport_ISP = 1 << 7, //< Camera engine Image Signal Processor support
672 
673  // Camera engines share the same pitch alignment
676  // Support all units known to NvRmSurface
681 };
682 
685 typedef enum
686 {
697 
707 typedef enum
708 {
711 
715 
718 #define NVRM_SURFACE_FORCE_BLOCK_HEIGHT_LOG2_DONT_FORCE 0xFFFFFFFFU
719 
724 typedef enum
725 {
728 
734 
740 
746 
755 
764 
772 
782 
790 
791 #if !(NV_IS_SAFETY)
797 
809 #endif
810 
816 
822 
831 
836 
837 
843 #define NVRM_SURFACECONTAINER_MAX_SURFACES 3U
844 
851 typedef enum
852 {
855 
858 
861 
865 
866 
929  NvU32 const width,
930  NvU32 const height,
931  NvColorFormat const colorFormat,
932  NvU32 const * const attributes);
933 
1005  NvRmSurface *Surfaces,
1006  NvU32 NumSurfaces,
1007  NvU32 Width,
1008  NvU32 Height,
1009  NvYuvColorFormat YuvFormat,
1010  const NvColorFormat *ColorFormats,
1011  const NvU32 *Attributes);
1012 
1013 
1044  NvRmSurface const* const* pSurf,
1045  NvU32 numSurfaces);
1046 
1118  NvRmMemHandle const hMem,
1119  NvU32 const offset,
1120  void* const mappedPtr);
1121 
1141 
1176  NvU32 const unitSupport,
1177  NvU32* const pitchAlign);
1178 
1213 NvError NvRmSurfaceGetAlignment(NvRmSurface const* const pSurf,
1214  NvU32* const pAlignment);
1215 
1267 NvError NvRmSurfaceGetCoordOffset(NvRmSurface const* const pSurf,
1268  NvU32 const x,
1269  NvU32 const y,
1270  NvU32* const pOffset);
1271 
1334 NvError NvRmSurfaceWrite(NvRmSurface const * const pSurf,
1335  NvU32 const x,
1336  NvU32 const y,
1337  NvU32 const width,
1338  NvU32 const height,
1339  void const * const pSrcPixels);
1340 
1404 NvError NvRmSurfaceRead(NvRmSurface const * const pSurf,
1405  NvU32 const x,
1406  NvU32 const y,
1407  NvU32 const width,
1408  NvU32 const height,
1409  void* const pDstPixels);
1410 
1411 
1418 {
1421 
1424 
1428 
1433 
1444 static inline NvU32 NvRmSurfaceLayoutToRelocType(NvRmSurfaceLayout const layout)
1445 {
1446  enum NvRmStreamRelocTypeRec relocType;
1447 
1448  switch (layout)
1449  {
1451  relocType = NvRmStreamRelocType_Blocklinear;
1452  break;
1454  default:
1455  // emulate old failure behavior
1456  relocType = NvRmStreamRelocType_Pitch;
1457  break;
1458  }
1459 
1460  return (NvU32)relocType;
1461 }
1462 
1463 #if defined(__cplusplus)
1464 }
1465 #endif
1466 
1468 #endif
NvRmSurfaceRec::Offset
NvU32 Offset
The offset where the surface starts within that allocation.
Definition: nvrm_surface_fusa.h:582
NvRmSurfaceAttribute_NoForcePageAlignment
@ NvRmSurfaceAttribute_NoForcePageAlignment
If this is true, sets the NVRM_SURFACE_FLAG_NO_FORCE_PAGE_ALIGNMENT flag.
Definition: nvrm_surface_fusa.h:830
NvRmSurfaceContainerRec::ContainerType
NvRmSurfaceContainerType ContainerType
This defines the container type: NvRmSurfaceContainerType.
Definition: nvrm_surface_fusa.h:1423
NvYuvChromaLocation
NvYuvChromaLocation
Defines the chroma subsampling location.
Definition: nvrm_surface_fusa.h:423
NvRmSurfaceCompression_GpuOnly
@ NvRmSurfaceCompression_GpuOnly
GPU compression enabled, CDEs cannot be used.
Definition: nvrm_surface_fusa.h:693
nvrm_memmgr.h
NvRmSurfaceRec::DisplayScanFormat
NvDisplayScanFormat DisplayScanFormat
The display scan format of the surface - progressive/interlaced.
Definition: nvrm_surface_fusa.h:595
nvrm_stream.h
NvRmSurfaceLayout_Pitch
@ NvRmSurfaceLayout_Pitch
Pitch: Address formula is:
Definition: nvrm_surface_fusa.h:482
NvRmSurfaceRec::Width
NvU32 Width
The width of the surface.
Definition: nvrm_surface_fusa.h:556
NvRmSurfaceContainerRec::Surfaces
NvRmSurface Surfaces[NVRM_SURFACECONTAINER_MAX_SURFACES]
An array of Surfaces.
Definition: nvrm_surface_fusa.h:1420
NvError
NvError
The NvError enumeration contains ALL return / error codes.
Definition: nverror.h:43
NvRmSurfaceAttribute_Pitch
@ NvRmSurfaceAttribute_Pitch
Force the surface's Pitch to the provided value.
Definition: nvrm_surface_fusa.h:771
nvrm_memmgr_safe.h
NvRmSurfaceAttribute_Size
@ NvRmSurfaceAttribute_Size
Force the surface's size to the given size.
Definition: nvrm_surface_fusa.h:781
NvYuvChromaLocation_2_2
@ NvYuvChromaLocation_2_2
Definition: nvrm_surface_fusa.h:439
NvYuvColorFormat_YUV422R
@ NvYuvColorFormat_YUV422R
Vertical sub-sampling.
Definition: nvrm_surface_fusa.h:413
NvRmSurfaceLayout_Force32
@ NvRmSurfaceLayout_Force32
Definition: nvrm_surface_fusa.h:501
NvRmSurfaceUnitSupport_NVENC
@ NvRmSurfaceUnitSupport_NVENC
Definition: nvrm_surface_fusa.h:668
NvRmSurfaceContainerAllocType_NonContiguous
@ NvRmSurfaceContainerAllocType_NonContiguous
Non-contiguous allocation.
Definition: nvrm_surface_fusa.h:713
NvRmSurfaceAttribute_ChromaLocType
@ NvRmSurfaceAttribute_ChromaLocType
Defines the chroma subsampling location.
Definition: nvrm_surface_fusa.h:821
NvRmSurfaceCompression_Enabled
@ NvRmSurfaceCompression_Enabled
GPU compression enabled, CDEs can be used (alias true).
Definition: nvrm_surface_fusa.h:691
NvRmSurface
struct NvRmSurfaceRec NvRmSurface
An exposed (not opaque) structure representing a surface.
NvRmSurfaceWrite
NvError NvRmSurfaceWrite(NvRmSurface const *const pSurf, NvU32 const x, NvU32 const y, NvU32 const width, NvU32 const height, void const *const pSrcPixels)
Writes a subregion of a surface.
NvRmSurfaceGetYuvColorFormat
NvYuvColorFormat NvRmSurfaceGetYuvColorFormat(NvRmSurface const *const *pSurf, NvU32 numSurfaces)
Returns the YUV color format from an array of the N surfaces used to represent the YUV planes.
NvRmSurfaceContainerRec::YuvChromaLocation
NvYuvChromaLocation YuvChromaLocation
This defines the chroma subsampling location: NvYuvChromaLocation.
Definition: nvrm_surface_fusa.h:1431
NvRmSurfaceSetup
NvError NvRmSurfaceSetup(NvRmSurface *const pSurf, NvU32 const width, NvU32 const height, NvColorFormat const colorFormat, NvU32 const *const attributes)
Sets up an NvRmSurface.
NvRmSurfaceGetDefaultLayout
NvRmSurfaceLayout NvRmSurfaceGetDefaultLayout(void)
Returns the system-wide default surface layout on the current platform.
NvRmStreamRelocType_Pitch
@ NvRmStreamRelocType_Pitch
Definition: nvrm_stream.h:372
NvRmSurfaceUnitSupport
NvRmSurfaceUnitSupport
Defines engine/unit support.
Definition: nvrm_surface_fusa.h:662
NvRmSurfaceUnitSupport_PVA
@ NvRmSurfaceUnitSupport_PVA
Definition: nvrm_surface_fusa.h:667
NvRmSurfaceRec::CdeHorizontalCompbitsOffset
NvU32 CdeHorizontalCompbitsOffset
Offset, within the main surface allocation, of the CDE compbits for HW engines that traverse the surf...
Definition: nvrm_surface_fusa.h:621
NvRmSurfaceRec::Flags
NvU64 Flags
Flags, See NVRM_SURFACE_FLAG_* NvRmSurfaceFlags.
Definition: nvrm_surface_fusa.h:608
NvRmSurfaceUnitSupport_All
@ NvRmSurfaceUnitSupport_All
Definition: nvrm_surface_fusa.h:677
NvRmSurfaceCompression_Disabled
@ NvRmSurfaceCompression_Disabled
Compression disabled (alias false).
Definition: nvrm_surface_fusa.h:688
NvYuvColorFormat_YUV444
@ NvYuvColorFormat_YUV444
No sub-sampling.
Definition: nvrm_surface_fusa.h:415
NvRmSurfaceRec::CdeVerticalCompbitsOffset
NvU32 CdeVerticalCompbitsOffset
Offset, within the main surface allocation, of the CDE compbits for HW engines that traverse the surf...
Definition: nvrm_surface_fusa.h:628
NvYuvChromaLocation_0_0
@ NvYuvChromaLocation_0_0
Cosited chroma location.
Definition: nvrm_surface_fusa.h:428
NvRmSurfaceRec::CdeScatterBufferOffset
NvU32 CdeScatterBufferOffset
Offset, within the main surface allocation, of a buffer containing data for supporting CDE decompress...
Definition: nvrm_surface_fusa.h:635
NvRmSurfaceSetDeviceMemory
NvError NvRmSurfaceSetDeviceMemory(NvRmSurface *const pSurf, NvRmMemHandle const hMem, NvU32 const offset, void *const mappedPtr)
Binds a surface to a region of device memory.
NvRmSurfaceAttribute_Last
@ NvRmSurfaceAttribute_Last
Provides the number of attributes.
Definition: nvrm_surface_fusa.h:834
NvRmMultiplanarSurfaceSetup
NvError NvRmMultiplanarSurfaceSetup(NvRmSurface *Surfaces, NvU32 NumSurfaces, NvU32 Width, NvU32 Height, NvYuvColorFormat YuvFormat, const NvColorFormat *ColorFormats, const NvU32 *Attributes)
Sets up a set of NvRmSurfaces describing a multiplanar surface.
NVRM_SURFACECONTAINER_MAX_SURFACES
#define NVRM_SURFACECONTAINER_MAX_SURFACES
Maximum number of surfaces which can be stored in the NvRmSurfaceContainer.
Definition: nvrm_surface_fusa.h:843
NvRmSurfaceAttribute_None
@ NvRmSurfaceAttribute_None
Must terminate the attribute list.
Definition: nvrm_surface_fusa.h:727
NvRmSurfaceUnitSupport_ISP
@ NvRmSurfaceUnitSupport_ISP
Definition: nvrm_surface_fusa.h:671
NvRmSurfaceAttribute
NvRmSurfaceAttribute
Define attribute types that can be passed into the attribute list accepted by NvRmSurfaceSetup.
Definition: nvrm_surface_fusa.h:724
NvRmSurfaceContainerType
NvRmSurfaceContainerType
Defines a container type for NvRmSurfaceContainer Depending of the format or how different color comp...
Definition: nvrm_surface_fusa.h:851
NvYuvChromaLocation_0_1
@ NvYuvChromaLocation_0_1
Cosited horizontally and centered vertically, typical for MPEG2.
Definition: nvrm_surface_fusa.h:430
NvRmSurfaceAttribute_OptimizeForDisplay
@ NvRmSurfaceAttribute_OptimizeForDisplay
Optimize surface for display consumption.
Definition: nvrm_surface_fusa.h:754
NvRmSurfaceAttribute_Layout
@ NvRmSurfaceAttribute_Layout
Memory Layout to use for the surface.
Definition: nvrm_surface_fusa.h:733
NvRmSurfaceUnitSupport_Camera
@ NvRmSurfaceUnitSupport_Camera
Definition: nvrm_surface_fusa.h:674
NvRmSurfaceUnitSupport_Display
@ NvRmSurfaceUnitSupport_Display
Definition: nvrm_surface_fusa.h:666
NvRmSurfaceAttribute_Compression
@ NvRmSurfaceAttribute_Compression
Selects the level of compression support desired for the surface.
Definition: nvrm_surface_fusa.h:789
NvRmSurfaceGetCoordOffset
NvError NvRmSurfaceGetCoordOffset(NvRmSurface const *const pSurf, NvU32 const x, NvU32 const y, NvU32 *const pOffset)
Returns the byte offset of a given pixel coordinate relative to the start of the surface.
NvRmSurfaceAttribute_ForceTegraRawSwizzling
@ NvRmSurfaceAttribute_ForceTegraRawSwizzling
If this is true, sets the NVRM_SURFACE_FLAG_FORCE_TEGRA_RAW_SWIZZLING flag.
Definition: nvrm_surface_fusa.h:808
NvRmMemHandle
struct NvRmMemRec * NvRmMemHandle
Definition: nvrm_memmgr_safe.h:160
NvYuvColorFormat_YUV420
@ NvYuvColorFormat_YUV420
Horizontal and vertical sub-sampling.
Definition: nvrm_surface_fusa.h:409
NvRmSurfaceUnitSupport_2D
@ NvRmSurfaceUnitSupport_2D
Definition: nvrm_surface_fusa.h:665
NvRmSurfaceRec::ColorFormat
NvColorFormat ColorFormat
The color format of the surface, e.g., ::NvColorFormat_A8R8G8B8.
Definition: nvrm_surface_fusa.h:561
NvRmSurfaceContainerType_Single
@ NvRmSurfaceContainerType_Single
Single plane container.
Definition: nvrm_surface_fusa.h:854
NvYuvChromaLocation_0_2
@ NvYuvChromaLocation_0_2
Less common locations.
Definition: nvrm_surface_fusa.h:434
NvYuvChromaLocation_1_0
@ NvYuvChromaLocation_1_0
Definition: nvrm_surface_fusa.h:435
NvYuvColorFormat_YUV422
@ NvYuvColorFormat_YUV422
Horizontal sub-sampling.
Definition: nvrm_surface_fusa.h:411
NvRmSurfaceGetPitchAlignment
NvError NvRmSurfaceGetPitchAlignment(NvRmSurfaceLayout const layout, NvU32 const unitSupport, NvU32 *const pitchAlign)
Returns the pitch alignment requirement in bytes.
NvRmSurfaceContainerType_Stereo
@ NvRmSurfaceContainerType_Stereo
Stereo format container.
Definition: nvrm_surface_fusa.h:863
NvRmSurfaceLayout_Blocklinear
@ NvRmSurfaceLayout_Blocklinear
BlockLinear: Surface is stored in a hardware defined, opaque "blocklinear" organization.
Definition: nvrm_surface_fusa.h:497
NvRmSurfaceRec::Layout
NvRmSurfaceLayout Layout
The layout of the surface, usually, NvRmSurfaceLayout_Blocklinear.
Definition: nvrm_surface_fusa.h:564
NvRmSurfaceGetAlignment
NvError NvRmSurfaceGetAlignment(NvRmSurface const *const pSurf, NvU32 *const pAlignment)
Returns the alignment in bytes that the surface's memory will need to be allocated with.
NvRmSurfaceContainerType_Planar
@ NvRmSurfaceContainerType_Planar
Planar format, separate surfaces contain different planes.
Definition: nvrm_surface_fusa.h:860
NvYuvColorFormat_Unspecified
@ NvYuvColorFormat_Unspecified
Placeholder error value.
Definition: nvrm_surface_fusa.h:407
NvRmSurfaceRec::SecondFieldOffset
NvU32 SecondFieldOffset
For interlaced surfaces, SecondFieldOffset represents the offset of all of the odd lines relative to ...
Definition: nvrm_surface_fusa.h:605
NvYuvChromaLocation_Unspecified
@ NvYuvChromaLocation_Unspecified
Chroma subsampling location is unknown or not specifed.
Definition: nvrm_surface_fusa.h:426
NvRmSurfaceAttribute_Vpr
@ NvRmSurfaceAttribute_Vpr
If this is true, sets the NVRM_SURFACE_FLAG_VPR flag.
Definition: nvrm_surface_fusa.h:796
NvDisplayScanFormat_Progressive
@ NvDisplayScanFormat_Progressive
Definition: nvrm_surface_fusa.h:455
NvDisplayScanFormat_Force32
@ NvDisplayScanFormat_Force32
Definition: nvrm_surface_fusa.h:459
NvRmStreamRelocTypeRec
NvRmStreamRelocTypeRec
Supported Reloc types.
Definition: nvrm_stream.h:370
NV_ALIGN_POINTER
#define NV_ALIGN_POINTER(t, f)
Declares a 64-bit aligned pointer.
Definition: nvcommon.h:83
NvRmSurfaceLayout_Tiled
@ NvRmSurfaceLayout_Tiled
Tiled: Surface is stored in 1024-byte blocks that are 64 bytes wide and 16 rows tall,...
Definition: nvrm_surface_fusa.h:491
NvRmSurfaceContainerRec::YuvColorFormat
NvYuvColorFormat YuvColorFormat
Color format of the data stored in the surfaces array Applicable for YUV formats only.
Definition: nvrm_surface_fusa.h:1427
NvRmSurfaceRec::Size
NvU64 Size
Size of the surface, in bytes, including all necessary padding and metadata.
Definition: nvrm_surface_fusa.h:613
NvRmSurfaceUnitSupport_VI
@ NvRmSurfaceUnitSupport_VI
Definition: nvrm_surface_fusa.h:669
NvRmSurfaceContainer
struct NvRmSurfaceContainerRec NvRmSurfaceContainer
Common container struct to represent all surface types.
NvRmStreamRelocType_Blocklinear
@ NvRmStreamRelocType_Blocklinear
Definition: nvrm_stream.h:373
NvRmSurfaceContainerRec
Common container struct to represent all surface types.
Definition: nvrm_surface_fusa.h:1417
NvRmSurfaceContainerAllocType_Contiguous
@ NvRmSurfaceContainerAllocType_Contiguous
Contiguous allocation.
Definition: nvrm_surface_fusa.h:710
NvYuvChromaLocation_1_2
@ NvYuvChromaLocation_1_2
Definition: nvrm_surface_fusa.h:436
NvRmSurfaceAttribute_DisplayScanFormat
@ NvRmSurfaceAttribute_DisplayScanFormat
The scanout format of displayable surfaces.
Definition: nvrm_surface_fusa.h:745
NvYuvColorFormat
NvYuvColorFormat
Defines the different color formats in the YUV color space.
Definition: nvrm_surface_fusa.h:403
NvDisplayScanFormat
NvDisplayScanFormat
Defines the different display scan formats in the video planes.
Definition: nvrm_surface_fusa.h:452
NvRmSurfaceAttribute_UnitSupport
@ NvRmSurfaceAttribute_UnitSupport
A bitmask of HW units that will access the surface.
Definition: nvrm_surface_fusa.h:739
NvRmSurfaceRec::Kind
NvRmMemKind Kind
The "kind" of the surface.
Definition: nvrm_surface_fusa.h:588
NvRmSurfaceRec
An exposed (not opaque) structure representing a surface.
Definition: nvrm_surface_fusa.h:553
NvRmMemKind
NvRmMemKind
Definition: nvrm_memmgr_safe.h:191
NvRmSurfaceUnitSupport_3D
@ NvRmSurfaceUnitSupport_3D
Definition: nvrm_surface_fusa.h:664
NvRmSurfaceRec::BlockHeightLog2
NvU32 BlockHeightLog2
The log2(block_height_in_number_of_gobs) of the surface.
Definition: nvrm_surface_fusa.h:592
NvRmSurfaceRec::Height
NvU32 Height
The height of the surface.
Definition: nvrm_surface_fusa.h:558
NvRmSurfaceAttribute_AllocType
@ NvRmSurfaceAttribute_AllocType
Defines the allocation type inside NvRmSurfaceContainer.
Definition: nvrm_surface_fusa.h:815
NvRmSurfaceCompression
NvRmSurfaceCompression
Defines general surface compression support.
Definition: nvrm_surface_fusa.h:685
NvRmSurfaceLayout_Num
@ NvRmSurfaceLayout_Num
Definition: nvrm_surface_fusa.h:499
NvRmSurfaceLayoutToRelocType
static NvU32 NvRmSurfaceLayoutToRelocType(NvRmSurfaceLayout const layout)
Convert surface layout into NvHost reloc type.
Definition: nvrm_surface_fusa.h:1444
NvDisplayScanFormat_Interlaced
@ NvDisplayScanFormat_Interlaced
Definition: nvrm_surface_fusa.h:456
NvRmSurfaceRec::hMem
NvRmMemHandle hMem
If the surface is backed by an RM memory alloc, the handle of that memory alloc and the offset where ...
Definition: nvrm_surface_fusa.h:576
NvRmSurfaceRec::pBase
void * pBase
If the surface is not backed by an RM alloc, the pointer to the storage.
Definition: nvrm_surface_fusa.h:649
NvRmSurfaceLayout
NvRmSurfaceLayout
The possible layouts that a surface can presently have.
Definition: nvrm_surface_fusa.h:475
NvRmSurfaceRec::Pitch
NvU32 Pitch
The pitch of the surface in bytes.
Definition: nvrm_surface_fusa.h:571
NvYuvChromaLocation_2_0
@ NvYuvChromaLocation_2_0
Definition: nvrm_surface_fusa.h:437
NvRmSurfaceUnitSupport_CSI
@ NvRmSurfaceUnitSupport_CSI
Definition: nvrm_surface_fusa.h:670
NvRmSurfaceCompression_Default
@ NvRmSurfaceCompression_Default
Use per-platform default, modifiable with config properties.
Definition: nvrm_surface_fusa.h:695
NvYuvChromaLocation_2_1
@ NvYuvChromaLocation_2_1
Definition: nvrm_surface_fusa.h:438
NvRmSurfaceContainerAllocType
NvRmSurfaceContainerAllocType
Defines an allocation type for semiplanar and planar formats inside the container.
Definition: nvrm_surface_fusa.h:707
NvRmSurfaceAttribute_ForceBlockHeightLog2
@ NvRmSurfaceAttribute_ForceBlockHeightLog2
Force the surface's BlockHeightLog2 to the provided value.
Definition: nvrm_surface_fusa.h:763
NvRmSurfaceContainerType_SemiPlanar
@ NvRmSurfaceContainerType_SemiPlanar
SemiPlanar format container.
Definition: nvrm_surface_fusa.h:857
NvYuvColorFormat_Force32
@ NvYuvColorFormat_Force32
Ensures this enum occupies at least 32 bits.
Definition: nvrm_surface_fusa.h:417
NvYuvChromaLocation_1_1
@ NvYuvChromaLocation_1_1
Centered horizontally and vertically, typical for MPEG1 and JPEG.
Definition: nvrm_surface_fusa.h:432
NvRmSurfaceRead
NvError NvRmSurfaceRead(NvRmSurface const *const pSurf, NvU32 const x, NvU32 const y, NvU32 const width, NvU32 const height, void *const pDstPixels)
Reads a subregion of a surface.