Split out documentation into subfolders.
[platform/upstream/gstreamer.git] / markdown / pwg / advanced / allocation.md
similarity index 99%
rename from pwg-allocation.md
rename to markdown/pwg/advanced/allocation.md
index b59b786..5190139 100644 (file)
@@ -80,7 +80,7 @@ Below is an example of making a `GstMemory` object and using the
 
 [...]
 
-      
+
 ```
 
 ### Implementing a GstAllocator
@@ -165,7 +165,7 @@ Below is an example of how to create a buffer and access its memory.
 
 [...]
 
-      
+
 ```
 
 ## GstMeta
@@ -212,7 +212,7 @@ region for video frames.
   meta->height = 80;
 [...]
 
-      
+
 ```
 
 An element can then use the metadata on the buffer when rendering the
@@ -238,7 +238,7 @@ frame like this:
 [...]
 
 
-      
+
 ```
 
 ### Implementing new GstMeta
@@ -280,7 +280,7 @@ GType my_example_meta_api_get_type (void);
 #define gst_buffer_get_my_example_meta(b) \
   ((MyExampleMeta*)gst_buffer_get_meta((b),MY_EXAMPLE_META_API_TYPE))
 
-        
+
 ```
 
 The metadata API definition consists of the definition of the structure
@@ -312,7 +312,7 @@ my_example_meta_api_get_type (void)
   return type;
 }
 
-        
+
 ```
 
 As you can see, it simply uses the `gst_meta_api_type_register ()`
@@ -341,7 +341,7 @@ MyExampleMeta * gst_buffer_add_my_example_meta (GstBuffer      *buffer,
                                                 gint            age,
                                                 const gchar    *name);
 
-        
+
 ```
 
 Let's have a look at how these functions are implemented in the
@@ -418,7 +418,7 @@ gst_buffer_add_my_example_meta (GstBuffer   *buffer,
   return meta;
 }
 
-        
+
 ```
 
 `gst_meta_register ()` registers the implementation details, like the
@@ -486,7 +486,7 @@ is not configured will fail.
 
 [...]
 
-      
+
 ```
 
 The configuration of the bufferpool is maintained in a generic
@@ -539,7 +539,7 @@ buffer from the pool, like this:
 
   [...]
 
-      
+
 ```
 
 It is important to check the return value of the acquire function
@@ -639,7 +639,7 @@ Below is an example of the ALLOCATION query.
 
 [...]
 
-      
+
 ```
 
 This particular implementation will make a custom `GstVideoBufferPool`
@@ -661,4 +661,3 @@ influencing the allocation strategy:
 
 Implementors of these methods should modify the given `GstQuery` object
 by updating the pool options and allocation options.
-